Mercurial > hg > Members > kono > Cerium
diff example/get_segment/spe/Hello1.cc @ 466:4fa8760e18c2
prohibit global variable in Task....
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 01 Oct 2009 17:33:58 +0900 |
parents | 40af9fc1d428 |
children | 44c0bce54dcf |
line wrap: on
line diff
--- a/example/get_segment/spe/Hello1.cc Wed Sep 30 11:37:15 2009 +0900 +++ b/example/get_segment/spe/Hello1.cc Thu Oct 01 17:33:58 2009 +0900 @@ -1,4 +1,3 @@ -#include <stdio.h> #include "Hello1.h" #include "Func.h" @@ -14,8 +13,8 @@ __asm__ __volatile__("ai %0,$0,0 ### here" : "=r" (pc)); - fprintf(stderr,"[%d] Hello, World Seg 2!!\n", task_id); - fprintf(stderr,"pc=0x%0x 0x%0x\n",pc, (unsigned int)&runTask_Hello1); + smanager->fprintf(smanager->stderr_,"[%d] Hello, World Seg 2!!\n", task_id); + smanager->fprintf(smanager->stderr_,"pc=0x%0x 0x%0x\n",pc, (unsigned int)&runTask_Hello1); return 0; }