# HG changeset patch # User tkaito # Date 1292959271 -32400 # Node ID c0dc96c6f209beb6b092ec5cad9f7c583b851641 # Parent 560d18ef307792e0724781884c11ed5a75649ef7 htask->init fix. diff -r 560d18ef3077 -r c0dc96c6f209 TaskManager/kernel/ppe/HTask.h --- 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)) diff -r 560d18ef3077 -r c0dc96c6f209 TaskManager/kernel/ppe/QueueInfo.h --- 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++;