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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
354
cfd20d609ace add example/get_segment and change spe/DrawSpan.cpp
koba
parents:
diff changeset
1 #include "Func.h"
cfd20d609ace add example/get_segment and change spe/DrawSpan.cpp
koba
parents:
diff changeset
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
cfd20d609ace add example/get_segment and change spe/DrawSpan.cpp
koba
parents:
diff changeset
4
433
19c7c7cb02bf overlay (on going)..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 430
diff changeset
5 SchedExternDynamicTask(Hello,segment1);
19c7c7cb02bf overlay (on going)..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 430
diff changeset
6 SchedExternDynamicTask(Hello1,segment2);
354
cfd20d609ace add example/get_segment and change spe/DrawSpan.cpp
koba
parents:
diff changeset
7
cfd20d609ace add example/get_segment and change spe/DrawSpan.cpp
koba
parents:
diff changeset
8 /**
cfd20d609ace add example/get_segment and change spe/DrawSpan.cpp
koba
parents:
diff changeset
9 * この関数は SpeScheduler から呼ばれるので
cfd20d609ace add example/get_segment and change spe/DrawSpan.cpp
koba
parents:
diff changeset
10 * 必ずこの関数名でお願いします。
cfd20d609ace add example/get_segment and change spe/DrawSpan.cpp
koba
parents:
diff changeset
11 */
cfd20d609ace add example/get_segment and change spe/DrawSpan.cpp
koba
parents:
diff changeset
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
cfd20d609ace add example/get_segment and change spe/DrawSpan.cpp
koba
parents:
diff changeset
14 {
433
19c7c7cb02bf overlay (on going)..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 430
diff changeset
15 SchedRegisterDynamicTask(HELLO_TASK, Hello, segment1);
19c7c7cb02bf overlay (on going)..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 430
diff changeset
16 SchedRegisterDynamicTask(HELLO_TASK1, Hello1, segment2);
19c7c7cb02bf overlay (on going)..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 430
diff changeset
17 scheduler->allocate_code_segment(4,1024);
354
cfd20d609ace add example/get_segment and change spe/DrawSpan.cpp
koba
parents:
diff changeset
18 }