Mercurial > hg > Game > Cerium
comparison TaskManager/Fifo/MainScheduler.cc @ 800:54f0180cea0f draft
run16 word count ( not yet worked. )
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 21 May 2010 07:47:25 +0900 |
parents | 7ba4ad4538b1 |
children | a27c361c436b |
comparison
equal
deleted
inserted
replaced
799:4a0022cd23fc | 800:54f0180cea0f |
---|---|
1 #include <stdlib.h> | 1 #include <stdlib.h> |
2 #include <string.h> | 2 #include <string.h> |
3 #include "MainScheduler.h" | 3 #include "MainScheduler.h" |
4 #include "FifoDmaManager.h" | 4 #include "FifoDmaManager.h" |
5 #include "TaskManagerImpl.h" | |
5 #include "error.h" | 6 #include "error.h" |
6 | 7 |
7 void | 8 void |
8 MainScheduler::init_impl(void) | 9 MainScheduler::init_impl(void) |
9 { | 10 { |
16 * Fifo バージョンだから、まあ普通に malloc でおk | 17 * Fifo バージョンだから、まあ普通に malloc でおk |
17 */ | 18 */ |
18 void | 19 void |
19 MainScheduler::mainMem_alloc(int id, int size) | 20 MainScheduler::mainMem_alloc(int id, int size) |
20 { | 21 { |
21 mainMemList[id] = (memaddr)allocate(size); | 22 mainMemList[id] = (memaddr)manager->allocate(size); |
22 } | 23 } |
23 | 24 |
24 /* end */ | 25 /* end */ |