Mercurial > hg > Members > kono > Cerium
view TaskManager/kernel/ppe/TaskList.h @ 895:bed529c55eda
add alignment of classes in SPU
width and height are automatically set in frame buffer API
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 16 Jul 2010 17:23:49 +0900 |
parents | c7905ead974f |
children | 586b4f825f24 |
line wrap: on
line source
#ifndef INCLUDED_TASKLIST #define INCLUDED_TASKLIST #include "base.h" #include "Task.h" #define TASK_MAX_SIZE 31 class TaskList { // 1024 byte public: BASE_NEW_DELETE(TaskList); int length; // 4 byte TaskList *next; // 4 byte TaskList *prev; // 4 byte TaskList *waiter; // 4 byte int dummy[4]; // 16 byte SimpleTask tasks[TASK_MAX_SIZE]; // 32*TASK_MAX_SIZE void init() { length = 0; waiter=this; } } __attribute__ ((aligned (DEFAULT_ALIGNMENT))); typedef TaskList* TaskListPtr; #endif