Mercurial > hg > Game > Cerium
annotate TaskManager/kernel/schedule/SchedMail.cc @ 1214:44d9b08519e0 draft
sched task fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 22 Jul 2011 15:32:41 +0900 |
parents | a49c02dffe6f |
children | 3f2230d79eba |
rev | line source |
---|---|
42 | 1 #include "SchedMail.h" |
2 #include "SchedTaskList.h" | |
3 #include "SchedExit.h" | |
4 #include "error.h" | |
5 | |
6 SchedTaskBase* | |
403
e2f29e912d0b
clean up and add more info on task_list
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
298
diff
changeset
|
7 SchedMail::next(Scheduler *scheduler, SchedTaskBase *p) |
42 | 8 { |
233 | 9 |
1214 | 10 connector = scheduler->connector; |
11 params_addr = connector->task_list_mail_read(); | |
42 | 12 |
13 __debug("[SchedMail:%s]\n", __FUNCTION__); | |
625
94d82f2c842f
64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
14 |
94d82f2c842f
64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
15 if ((memaddr)params_addr == (memaddr)MY_SPE_COMMAND_EXIT) { |
42 | 16 return new SchedExit(); |
17 } else { | |
972 | 18 int dma_tag_switch = 0; |
19 return new SchedTaskList(params_addr, scheduler, dma_tag_switch); | |
42 | 20 } |
21 } |