comparison 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
comparison
equal deleted inserted replaced
438:b7c226fdea2d 439:13c6740ab15f
1 #include "Func.h" 1 #include "Func.h"
2 #include "Scheduler.h" 2 #include "Scheduler.h"
3 #include "LoadEntry.h" 3 #include "LoadEntry.h"
4 4
5 #if OVLY
6 SchedExternDynamicTask(Hello,segment1); 5 SchedExternDynamicTask(Hello,segment1);
7 SchedExternDynamicTask(Hello1,segment2); 6 SchedExternDynamicTask(Hello1,segment2);
8 #else
9 SchedExternTask(Hello);
10 SchedExternTask(Hello1);
11 #endif
12 7
13 /** 8 /**
14 * この関数は SpeScheduler から呼ばれるので 9 * この関数は SpeScheduler から呼ばれるので
15 * 必ずこの関数名でお願いします。 10 * 必ずこの関数名でお願いします。
16 */ 11 */
17 void 12 void
18 task_init(Scheduler *scheduler) 13 task_init(Scheduler *scheduler)
19 { 14 {
20 #if OVLY
21 SchedRegisterDynamicTask(HELLO_TASK, Hello, segment1); 15 SchedRegisterDynamicTask(HELLO_TASK, Hello, segment1);
22 SchedRegisterDynamicTask(HELLO_TASK1, Hello1, segment2); 16 SchedRegisterDynamicTask(HELLO_TASK1, Hello1, segment2);
23 #else
24 SchedRegisterTask(HELLO_TASK, Hello);
25 SchedRegisterTask(HELLO_TASK1, Hello1);
26 #endif
27 scheduler->allocate_code_segment(4,1024); 17 scheduler->allocate_code_segment(4,1024);
28 } 18 }