Mercurial > hg > Game > Cerium
annotate example/get_segment/spe/spe-main.cc @ 439:13c6740ab15f draft
still overlay...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 25 Sep 2009 00:46:50 +0900 |
parents | e924d6cca813 |
children | 54c49df8dcda |
rev | line source |
---|---|
354 | 1 #include "Func.h" |
2 #include "Scheduler.h" | |
430
4d4443138484
code loading (on going...)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
426
diff
changeset
|
3 #include "LoadEntry.h" |
354 | 4 |
433 | 5 SchedExternDynamicTask(Hello,segment1); |
6 SchedExternDynamicTask(Hello1,segment2); | |
354 | 7 |
8 /** | |
9 * この関数は SpeScheduler から呼ばれるので | |
10 * 必ずこの関数名でお願いします。 | |
11 */ | |
12 void | |
430
4d4443138484
code loading (on going...)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
426
diff
changeset
|
13 task_init(Scheduler *scheduler) |
354 | 14 { |
433 | 15 SchedRegisterDynamicTask(HELLO_TASK, Hello, segment1); |
16 SchedRegisterDynamicTask(HELLO_TASK1, Hello1, segment2); | |
17 scheduler->allocate_code_segment(4,1024); | |
354 | 18 } |