Mercurial > hg > Game > Cerium
annotate TaskManager/kernel/schedule/SchedNop2Ready.cc @ 1413:5b024efa2429 draft
fix free on non copy DMA
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 19 Feb 2012 10:07:27 +0900 |
parents | 195e21a1b63c |
children | f82bb7393c4d |
rev | line source |
---|---|
1142
801d57ae1e29
cut compile CreatePolygonTask on spe side because not enough spe memory. We have to use code loading.
yutaka@localhost.localdomain
parents:
1015
diff
changeset
|
1 //#include <stdio.h> |
42 | 2 #include "SchedNop2Ready.h" |
109 | 3 #include "SchedTaskList.h" |
42 | 4 #include "SchedMail.h" |
5 #include "error.h" | |
6 | |
109 | 7 SchedNop2Ready::SchedNop2Ready(Scheduler *cn) |
42 | 8 { |
109 | 9 scheduler = cn; |
1217 | 10 connector = cn->connector; |
42 | 11 } |
12 | |
13 void | |
14 SchedNop2Ready::exec(void) | |
15 { | |
16 __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); | |
17 | |
18 } | |
19 | |
1015 | 20 void |
21 SchedNop2Ready::write(void) | |
42 | 22 { |
23 __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); | |
1007 | 24 |
1009 | 25 #ifdef MAIL_QUEUE |
1213
a49c02dffe6f
DMA connector reogranization
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1142
diff
changeset
|
26 connector->mail_write_finish_list((memaddr)MY_SPE_STATUS_READY); |
1007 | 27 #else |
1213
a49c02dffe6f
DMA connector reogranization
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1142
diff
changeset
|
28 connector->mail_write((memaddr)MY_SPE_STATUS_READY); |
1007 | 29 #endif |
1015 | 30 |
31 | |
42 | 32 } |
1015 | 33 |
34 SchedTaskBase* | |
35 SchedNop2Ready::next(Scheduler *scheduler,SchedTaskBase *p) | |
36 { | |
37 __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); | |
38 | |
39 | |
40 return new SchedNop(); | |
41 | |
42 } |