Mercurial > hg > Members > kono > Cerium
diff TaskManager/kernel/schedule/SchedTask.cc @ 603:42c94f85c779
long -> memaddr (64 or 32)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 07 Nov 2009 14:13:29 +0900 |
parents | 1733f3cbfa28 |
children | 0decff4e867b |
line wrap: on
line diff
--- a/TaskManager/kernel/schedule/SchedTask.cc Fri Nov 06 21:20:26 2009 +0900 +++ b/TaskManager/kernel/schedule/SchedTask.cc Sat Nov 07 14:13:29 2009 +0900 @@ -356,7 +356,7 @@ return nextSched; } } else { - long nextList = (long)list->next; + memaddr nextList = (memaddr)list->next; if (nextList == 0) { return new SchedNop2Ready(scheduler); @@ -435,7 +435,7 @@ SchedTask::get_input(void *buff, int index) { if (buff != NULL) { - return (void*)((long)buff + inListData->bound[index]); + return (void*)((memaddr)buff + inListData->bound[index]); } else { return NULL; } @@ -466,7 +466,7 @@ SchedTask::get_output(void *buff, int index) { if (buff != NULL) { - return (void*)((long)buff + outListData->bound[index]); + return (void*)((memaddr)buff + outListData->bound[index]); } else { return NULL; } @@ -523,7 +523,7 @@ void SchedTask::wait_task(TaskPtr waitTask) { - waitTask->self = (long)taskGroup; + waitTask->self = (memaddr)taskGroup; scheduler->add_groupTask(taskGroup, waitTask);