Mercurial > hg > Game > Cerium
annotate TaskManager/Fifo/MainScheduler.cc @ 1219:a27c361c436b draft
add ReferencedDmaManager.cc
author | Daichi TOMA <e085740@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 23 Jul 2011 06:17:08 +0900 |
parents | 54f0180cea0f |
children | 424c1f16e704 |
rev | line source |
---|---|
109 | 1 #include <stdlib.h> |
2 #include <string.h> | |
3 #include "MainScheduler.h" | |
800
54f0180cea0f
run16 word count ( not yet worked. )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
647
diff
changeset
|
4 #include "TaskManagerImpl.h" |
1219
a27c361c436b
add ReferencedDmaManager.cc
Daichi TOMA <e085740@ie.u-ryukyu.ac.jp>
parents:
800
diff
changeset
|
5 #include "ReferencedDmaManager.h" |
109 | 6 #include "error.h" |
7 | |
8 void | |
9 MainScheduler::init_impl(void) | |
10 { | |
1219
a27c361c436b
add ReferencedDmaManager.cc
Daichi TOMA <e085740@ie.u-ryukyu.ac.jp>
parents:
800
diff
changeset
|
11 //fifoDmaManager = new FifoDmaManager(); |
a27c361c436b
add ReferencedDmaManager.cc
Daichi TOMA <e085740@ie.u-ryukyu.ac.jp>
parents:
800
diff
changeset
|
12 fifoDmaManager = new ReferencedDmaManager(); |
647
7ba4ad4538b1
MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
645
diff
changeset
|
13 connector = fifoDmaManager; |
109 | 14 } |
15 | |
16 /** | |
321 | 17 * メインメモリ領域を allocate する。 |
18 * Fifo バージョンだから、まあ普通に malloc でおk | |
109 | 19 */ |
20 void | |
21 MainScheduler::mainMem_alloc(int id, int size) | |
22 { | |
800
54f0180cea0f
run16 word count ( not yet worked. )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
647
diff
changeset
|
23 mainMemList[id] = (memaddr)manager->allocate(size); |
109 | 24 } |
25 | |
640
ecf056ddd21a
SimpeTask on Cell worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
635
diff
changeset
|
26 /* end */ |