Mercurial > hg > Members > kono > Cerium
comparison example/get_segment/ppe/Hello.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 | 01b321c86747 |
children | 60aa3f241b10 |
comparison
equal
deleted
inserted
replaced
465:40af9fc1d428 | 466:4fa8760e18c2 |
---|---|
1 #include <stdio.h> | |
2 #include "Hello.h" | 1 #include "Hello.h" |
3 #include "Func.h" | 2 #include "Func.h" |
4 | 3 |
5 /* これは必須 */ | 4 /* これは必須 */ |
6 SchedDefineTask(Hello); | 5 SchedDefineTask(Hello); |
33 smanager->dma_store(ptr, (uint32)next, | 32 smanager->dma_store(ptr, (uint32)next, |
34 SIZE, PP_STORE); | 33 SIZE, PP_STORE); |
35 #endif | 34 #endif |
36 | 35 |
37 | 36 |
38 fprintf(stderr,"sizeof(int) = [%d] sizeof(void*)=[%d]\n", (int)sizeof(int),(int)sizeof(void*)); | 37 smanager->fprintf(smanager->stderr_,"sizeof(int) = [%d] sizeof(void*)=[%d]\n", (int)sizeof(int),(int)sizeof(void*)); |
39 fprintf(stderr,"[%d] Main Mem %0x len %d\n", task_id, (unsigned int)next,(int)SIZE); | 38 smanager->fprintf(smanager->stderr_,"[%d] Main Mem %0x len %d\n", task_id, (unsigned int)next,(int)SIZE); |
40 | 39 |
41 return 0; | 40 return 0; |
42 } | 41 } |