changeset 1089:c0dc96c6f209 draft

htask->init fix.
author tkaito
date Wed, 22 Dec 2010 04:21:11 +0900
parents 560d18ef3077
children c5797afaaff1
files TaskManager/kernel/ppe/HTask.h TaskManager/kernel/ppe/QueueInfo.h
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/HTask.h	Mon Dec 20 22:09:24 2010 +0900
+++ b/TaskManager/kernel/ppe/HTask.h	Wed Dec 22 04:21:11 2010 +0900
@@ -149,6 +149,11 @@
 	post_func = NULL;
 	mimpl     = NULL;
 	cpu_type  = CPU_PPE;
+
+	post_arg1 = NULL;
+	post_arg2 = NULL;
+	from = NULL;
+	param = NULL;
     }
 #define add_param(param) add_param_t((memaddr)(param))
 #define set_param(index,param) set_param_t(index, (memaddr) (param))
--- a/TaskManager/kernel/ppe/QueueInfo.h	Mon Dec 20 22:09:24 2010 +0900
+++ b/TaskManager/kernel/ppe/QueueInfo.h	Wed Dec 22 04:21:11 2010 +0900
@@ -129,7 +129,8 @@
     T* q = (T*)malloc(sizeof(T)*(num+1)+DEFAULT_ALIGNMENT);
 
     // First Queue is previous pool
-    q->waiter = this->waiter; this->waiter = q;
+    q->waiter = this->waiter; 
+    this->waiter = q;
     q = (T*)ROUND_UP_ALIGN((long)q, DEFAULT_ALIGNMENT);
     q++;