Mercurial > hg > Members > kono > Cerium
comparison TaskManager/Cell/spe/CellScheduler.cc @ 141:fc314f28b66e
TileList を作ろうとしたがに動かない。
今はTileList 無しver
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Sat, 29 Nov 2008 01:18:32 +0900 |
parents | 5c194c71eca8 |
children | f8006660a45c 81b25e5d5379 |
comparison
equal
deleted
inserted
replaced
140:861271089c43 | 141:fc314f28b66e |
---|---|
35 CellScheduler::mainMem_alloc(int id, int size) | 35 CellScheduler::mainMem_alloc(int id, int size) |
36 { | 36 { |
37 mainMemList[id] = NULL; | 37 mainMemList[id] = NULL; |
38 | 38 |
39 mainMemNum++; | 39 mainMemNum++; |
40 | |
41 mail_write(MY_SPE_COMMAND_MALLOC); | 40 mail_write(MY_SPE_COMMAND_MALLOC); |
42 mail_write(id); | 41 mail_write(id); |
43 mail_write(size); | 42 mail_write(size); |
44 } | 43 } |
45 | 44 |
47 CellScheduler::mainMem_wait(void) | 46 CellScheduler::mainMem_wait(void) |
48 { | 47 { |
49 uint32 id; | 48 uint32 id; |
50 uint32 addr; | 49 uint32 addr; |
51 | 50 |
52 while (mainMemNum != 0) { | 51 while (mainMemNum > 0) { |
53 id = mail_read(); | 52 id = mail_read(); |
54 addr = mail_read(); | 53 addr = mail_read(); |
55 | 54 |
56 mainMemList[id] = (void*)addr; | 55 mainMemList[id] = (void*)addr; |
57 mainMemNum--; | 56 mainMemNum--; |
58 } | 57 } |
59 } | 58 } |