364
|
1 #include <stdio.h>
|
|
2 #include <stdlib.h>
|
|
3 #include <string.h>
|
|
4 #include "TaskManager.h"
|
|
5 #include "Func.h"
|
|
6
|
|
7 extern void task_init(void);
|
|
8
|
|
9 static int count = 1;
|
|
10
|
|
11 extern TaskManager *manager;
|
|
12
|
|
13 const char *usr_help_str = "Usage: ./hello [-cpu spe_num] [-count N]\n\
|
|
14 -cpu Number of SPE (default 1) \n\
|
|
15 -count Number of task is print \"Hello, World!!\"";
|
|
16
|
|
17 // get のテストとか
|
|
18
|
|
19 int
|
|
20 main(int argc, char *argv[])
|
|
21 {
|
366
|
22 uint32 size = 128;
|
|
23 uint32 count = 64;
|
|
24
|
|
25 MemList* active = createMemList(size, 0);
|
|
26 MemList* freelist = createMemList(size, count);
|
|
27
|
|
28 // 配列!
|
|
29 for (int i = 0; i < count; i++) {
|
|
30 MemorySegment* e;
|
|
31 active->addFirst()
|
|
32 }
|
|
33
|
|
34 return 0;
|
364
|
35 }
|