Mercurial > hg > Game > Cerium
view TaskManager/Fifo/MainScheduler.cc @ 1479:163220e54cc0 draft
remove hard code for TaskLog
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 24 Jul 2012 17:15:15 +0900 |
parents | 5b024efa2429 |
children |
line wrap: on
line source
#include <stdlib.h> #include <string.h> #include "MainScheduler.h" #include "TaskManagerImpl.h" #include "FifoDmaManager.h" #include "ReferencedDmaManager.h" #include "PreRefDmaManager.h" #include "error.h" void MainScheduler::init_impl(int useRefDma) { if (useRefDma & 0x10) { fifoDmaManager = new PreRefDmaManager(); } else if (useRefDma & 0x01) { fifoDmaManager = new FifoDmaManager(); } else { fifoDmaManager = new ReferencedDmaManager(); } connector = fifoDmaManager; } /** * メインメモリ領域を allocate する。 * Fifo バージョンだから、まあ普通に malloc でおk */ void MainScheduler::mainMem_alloc(int id, int size) { mainMemList[id] = (memaddr)manager->allocate(size); } /* end */