Mercurial > hg > Members > kono > Cerium
annotate TaskManager/kernel/schedule/ListData.h @ 602:1733f3cbfa28
64bit mode try... not worked.
author | e075740@nw0740.st.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 06 Nov 2009 21:20:26 +0900 |
parents | 09f33c51a204 |
children | 42c94f85c779 |
rev | line source |
---|---|
109 | 1 #ifndef INCLUDED_LIST_DATA |
2 #define INCLUDED_LIST_DATA | |
3 | |
301
bcb81858aa62
remove deprecated source. not work.
tkaito@localhost.localdomain
parents:
109
diff
changeset
|
4 #include "base.h" |
109 | 5 |
6 #define MAX_LIST_DMA_SIZE 8 | |
7 | |
8 class ListElement { | |
9 public: | |
10 BASE_NEW_DELETE(ListElement); | |
11 | |
12 int size; | |
602
1733f3cbfa28
64bit mode try... not worked.
e075740@nw0740.st.ie.u-ryukyu.ac.jp
parents:
366
diff
changeset
|
13 long addr; |
109 | 14 }; |
15 | |
16 typedef ListElement* ListElementPtr; | |
17 | |
18 class ListData { | |
19 public: | |
20 BASE_NEW_DELETE(ListData); | |
21 | |
22 int length; // The number of data (4) | |
23 int size; // Total size of data (4) | |
24 int a[2]; // for alignment | |
25 int bound[MAX_LIST_DMA_SIZE]; // (4 * MAX_LIST_DMA_SIZE) | |
26 ListElement element[MAX_LIST_DMA_SIZE]; // (8 * MAX_LIST_DMA_SIZE) | |
27 | |
28 void clear(void) { | |
29 length = 0; | |
30 size = 0; | |
31 } | |
32 }; | |
33 | |
34 typedef ListData* ListDataPtr; | |
35 | |
36 #endif |