Mercurial > hg > Members > kono > Cerium
comparison TaskManager/kernel/ppe/HTaskInfo.cc @ 713:f725c6455d19
remove SIMPLE_TASK conditional
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 16 Dec 2009 15:27:46 +0900 |
parents | e4d2b823903c |
children | c42cab5ad4c3 |
comparison
equal
deleted
inserted
replaced
712:4661eaa48b77 | 713:f725c6455d19 |
---|---|
62 } | 62 } |
63 q->next = q->prev = NULL; | 63 q->next = q->prev = NULL; |
64 q->waiter = NULL; | 64 q->waiter = NULL; |
65 | 65 |
66 q->command = cmd; | 66 q->command = cmd; |
67 #ifndef SIMPLE_TASK | |
68 q->inData.clear(); | |
69 q->outData.clear(); | |
70 q->param_count = 0; | |
71 #else | |
72 q->param_index = 0; | 67 q->param_index = 0; |
73 q->in_index = 0; | 68 q->in_index = 0; |
74 q->out_index = 0; | 69 q->out_index = 0; |
75 #endif | |
76 q->self = (memaddr) q; | 70 q->self = (memaddr) q; |
77 | 71 |
78 q->post_func = NULL; | 72 q->post_func = NULL; |
79 q->mimpl = NULL; | 73 q->mimpl = NULL; |
80 q->cpu_type = CPU_PPE; | 74 q->cpu_type = CPU_PPE; |
86 } | 80 } |
87 | 81 |
88 HTaskPtr | 82 HTaskPtr |
89 HTaskInfo::create(int cmd, memaddr rbuf, int rs, memaddr wbuf, int ws) | 83 HTaskInfo::create(int cmd, memaddr rbuf, int rs, memaddr wbuf, int ws) |
90 { | 84 { |
91 #ifdef SIMPLE_TASK | |
92 HTaskPtr task = create(cmd); | 85 HTaskPtr task = create(cmd); |
93 task->set_input(rbuf, rs); | 86 task->set_input(rbuf, rs); |
94 task->set_output(wbuf, ws); | 87 task->set_output(wbuf, ws); |
95 return task; | 88 return task; |
96 #else | |
97 fprintf(stderr, "TaskManager is not SIMPLE_TASK mode\n"); | |
98 return 0; | |
99 #endif | |
100 } | 89 } |
101 | 90 |
102 | 91 |
103 void | 92 void |
104 HTaskInfo::free_(HTaskPtr q) | 93 HTaskInfo::free_(HTaskPtr q) |