Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Cell/spe/CellScheduler.cc @ 59:16f9f6251f49
*** empty log message ***
author | gongo |
---|---|
date | Sat, 16 Feb 2008 19:57:23 +0900 |
parents | |
children | 6bc72fde6615 |
rev | line source |
---|---|
59 | 1 #include <malloc.h> |
2 #include "CellScheduler.h" | |
3 #include "CellDmaManager.h" | |
4 #include "error.h" | |
5 | |
6 void | |
7 CellScheduler::init(MailManager *m) | |
8 { | |
9 connector = new CellDmaManager; | |
10 | |
11 for (int i = 0; i < 2; i++) { | |
12 listBuf[i] = (TaskListPtr)memalign(DEFAULT_ALIGNMENT, | |
13 sizeof(TaskListPtr)); | |
14 readBuf[i] = memalign(DEFAULT_ALIGNMENT, DMA_MAX_SIZE); | |
15 writeBuf[i] = memalign(DEFAULT_ALIGNMENT, DMA_MAX_SIZE); | |
16 } | |
17 } |