Mercurial > hg > Members > kono > Cerium
annotate TaskManager/kernel/schedule/SchedTaskList.cc @ 708:56487849ea2d
cleean up SchedTasks.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Dec 2009 10:49:30 +0900 |
parents | 6d497c098455 |
children | 8ab63ded2c3f |
rev | line source |
---|---|
109 | 1 #include <stdlib.h> |
2 #include <string.h> | |
42 | 3 #include "SchedTaskList.h" |
4 #include "SchedTask.h" | |
704
6d497c098455
Compatibility mode works.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
683
diff
changeset
|
5 #include "SysFunc.h" |
6d497c098455
Compatibility mode works.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
683
diff
changeset
|
6 #include "SchedTaskArray.h" |
6d497c098455
Compatibility mode works.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
683
diff
changeset
|
7 #include "SchedTaskArrayLoad.h" |
42 | 8 #include "SchedNop2Ready.h" |
9 #include "DmaManager.h" | |
10 #include "error.h" | |
11 | |
184 | 12 /** |
13 * SchedTaskList を返す | |
14 * | |
15 * @param[in] next_list 次の実行する TaskList のアドレス | |
16 * @param[in] next_list がメインメモリのアドレスか、 | |
17 * SPE で生成されたアドレスかのフラグ | |
18 * SPE で生成されている場合、DMA の必要は無い | |
19 * 0: メインメモリ, 1: SPE | |
20 */ | |
21 | |
625
60aa3f241b10
64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
619
diff
changeset
|
22 SchedTaskList::SchedTaskList(memaddr addr, Scheduler *sched) |
42 | 23 { |
24 params_addr = addr; | |
184 | 25 list = NULL; |
109 | 26 scheduler = sched; |
708 | 27 cur_index = 0; |
109 | 28 |
42 | 29 } |
30 | |
109 | 31 |
42 | 32 void |
403
8611780d479f
clean up and add more info on task_list
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
233
diff
changeset
|
33 SchedTaskList::read() |
42 | 34 { |
35 __debug("[SchedTaskList:%s]\n", __FUNCTION__); | |
36 | |
184 | 37 list = scheduler->get_curListBuf(); |
38 scheduler->dma_load(list, params_addr, | |
39 sizeof(TaskList), DMA_READ_TASKLIST); | |
42 | 40 } |
41 | |
708 | 42 void |
43 SchedTaskList::exec() {} | |
44 | |
45 void | |
46 SchedTaskList::write() | |
42 | 47 { |
48 __debug("[SchedTaskList:%s]\n", __FUNCTION__); | |
49 | |
233 | 50 scheduler->dma_wait(DMA_READ_TASKLIST); |
42 | 51 } |
88 | 52 |
708 | 53 |
403
8611780d479f
clean up and add more info on task_list
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
233
diff
changeset
|
54 /* end */ |