comparison example/get_segment/spe/spe-main.cc @ 460:433892ba596b draft

fix Scheduler.h
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 29 Sep 2009 11:51:25 +0900
parents 6c63423a7dea
children ca987c0beb11
comparison
equal deleted inserted replaced
459:5f52612a224d 460:433892ba596b
20 createTask_Hello(scheduler); 20 createTask_Hello(scheduler);
21 scheduler->allocate_code_segment(1024,4); 21 scheduler->allocate_code_segment(1024,4);
22 print_ovly_table(); 22 print_ovly_table();
23 } 23 }
24 24
25 typedef unsigned int u32;
26 extern unsigned long long _EAR_;
27 25
28 /* 26 /*
29 extern struct tbl1 { 27 extern struct tbl1 {
30 u32 vma; 28 u32 vma;
31 u32 size; 29 u32 size;
32 u32 file_offset; 30 u32 file_offset;
33 u32 buf; 31 u32 buf;
34 } _ovly_table; 32 } _ovly_table;
35 */ 33 */
36 34
37 #if 0 35 #ifdef NO_OVERLAY
38 unsigned long long _EAR_ = 0; 36 void
39 struct tbl _ovly_table; 37 print_ovly_table() {}
40 #endif 38 #else
41 39
40 typedef unsigned int u32;
41 extern unsigned long long _EAR_;
42 void 42 void
43 print_ovly_table() 43 print_ovly_table()
44 { 44 {
45 int i; 45 int i;
46 struct tbl *ov; 46 struct tbl *ov;
55 ov[i].vma, 55 ov[i].vma,
56 ov[i].size, ov[i].file_offset, 56 ov[i].size, ov[i].file_offset,
57 (adr) + ov[i].file_offset); 57 (adr) + ov[i].file_offset);
58 } 58 }
59 } 59 }
60 #endif
60 61
61 /* end */ 62 /* end */