diff TaskManager/kernel/ppe/HTask.h @ 945:9ed1c4a877ca draft

sort example fix ( simple task accepts one param and more compatible with old task)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 01 Aug 2010 19:29:27 +0900
parents fc6cfaae6de7
children 5f0135ca75ee
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/HTask.h	Sat Jul 31 21:40:30 2010 +0900
+++ b/TaskManager/kernel/ppe/HTask.h	Sun Aug 01 19:29:27 2010 +0900
@@ -91,8 +91,12 @@
 	t->set_param_t(param_index++, param);
     }
     void set_param_t(int index, memaddr param) {
-	Task *t = (Task*)rbuf;
-	t->set_param_t(index, param);
+	if (command==TaskArray1) {
+	    Task *t = (Task*)rbuf;
+	    t->set_param_t(index, param);
+	} else {
+	    this->param = param;
+	}
     }
 
     void no_auto_free() {