Mercurial > hg > Members > kono > Cerium
view example/get_segment/spe/spe-main.cc @ 439:95c0457a7d31
still overlay...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 25 Sep 2009 00:46:50 +0900 |
parents | fd44dbd049aa |
children | 7bae2117f239 |
line wrap: on
line source
#include "Func.h" #include "Scheduler.h" #include "LoadEntry.h" SchedExternDynamicTask(Hello,segment1); SchedExternDynamicTask(Hello1,segment2); /** * この関数は SpeScheduler から呼ばれるので * 必ずこの関数名でお願いします。 */ void task_init(Scheduler *scheduler) { SchedRegisterDynamicTask(HELLO_TASK, Hello, segment1); SchedRegisterDynamicTask(HELLO_TASK1, Hello1, segment2); scheduler->allocate_code_segment(4,1024); }