annotate TaskManager/Fifo/MainScheduler.cc @ 841:8d702fc5d77a draft

dynamic loading demo bug fix
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Wed, 02 Jun 2010 01:39:15 +0900
parents 54f0180cea0f
children a27c361c436b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #include <stdlib.h>
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #include <string.h>
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3 #include "MainScheduler.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 #include "FifoDmaManager.h"
800
54f0180cea0f run16 word count ( not yet worked. )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
5 #include "TaskManagerImpl.h"
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 #include "error.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 void
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9 MainScheduler::init_impl(void)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 {
647
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 645
diff changeset
11 fifoDmaManager = new FifoDmaManager();
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 645
diff changeset
12 connector = fifoDmaManager;
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15 /**
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
16 * メインメモリ領域を allocate する。
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
17 * Fifo バージョンだから、まあ普通に malloc でおk
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18 */
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19 void
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 MainScheduler::mainMem_alloc(int id, int size)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 {
800
54f0180cea0f run16 word count ( not yet worked. )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
22 mainMemList[id] = (memaddr)manager->allocate(size);
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24
640
ecf056ddd21a SimpeTask on Cell worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 635
diff changeset
25 /* end */