Mercurial > hg > Members > kono > Cerium
diff example/get_segment/spe/Hello.cc @ 465:40af9fc1d428
fix get_segement
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 30 Sep 2009 11:37:15 +0900 |
parents | 01b321c86747 |
children | 4fa8760e18c2 |
line wrap: on
line diff
--- a/example/get_segment/spe/Hello.cc Wed Sep 30 10:12:26 2009 +0900 +++ b/example/get_segment/spe/Hello.cc Wed Sep 30 11:37:15 2009 +0900 @@ -8,13 +8,13 @@ static int run(SchedTask *smanager, void *rbuf, void *wbuf) { - int task_id = get_param(0); + int task_id = smanager->get_param(0); unsigned int pc; __asm__ __volatile__("ai %0,$0,0 ### here" : "=r" (pc)); fprintf(stderr,"[%d] Hello, World!! Seg1 \n", task_id); - fprintf(stderr,"pc=0x%0x 0x%0x\n",pc, (unsigned int)&createTask_Hello); + fprintf(stderr,"pc=0x%0x 0x%0x\n",pc, (unsigned int)&runTask_Hello); return 0; }