comparison 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
comparison
equal deleted inserted replaced
602:1733f3cbfa28 603:42c94f85c779
354 // scheduler->get_curWriteBuf(), 354 // scheduler->get_curWriteBuf(),
355 scheduler); 355 scheduler);
356 return nextSched; 356 return nextSched;
357 } 357 }
358 } else { 358 } else {
359 long nextList = (long)list->next; 359 memaddr nextList = (memaddr)list->next;
360 360
361 if (nextList == 0) { 361 if (nextList == 0) {
362 return new SchedNop2Ready(scheduler); 362 return new SchedNop2Ready(scheduler);
363 } else { 363 } else {
364 return createSchedTaskList(nextList, scheduler, 364 return createSchedTaskList(nextList, scheduler,
433 */ 433 */
434 void* 434 void*
435 SchedTask::get_input(void *buff, int index) 435 SchedTask::get_input(void *buff, int index)
436 { 436 {
437 if (buff != NULL) { 437 if (buff != NULL) {
438 return (void*)((long)buff + inListData->bound[index]); 438 return (void*)((memaddr)buff + inListData->bound[index]);
439 } else { 439 } else {
440 return NULL; 440 return NULL;
441 } 441 }
442 } 442 }
443 443
464 */ 464 */
465 void* 465 void*
466 SchedTask::get_output(void *buff, int index) 466 SchedTask::get_output(void *buff, int index)
467 { 467 {
468 if (buff != NULL) { 468 if (buff != NULL) {
469 return (void*)((long)buff + outListData->bound[index]); 469 return (void*)((memaddr)buff + outListData->bound[index]);
470 } else { 470 } else {
471 return NULL; 471 return NULL;
472 } 472 }
473 } 473 }
474 474
521 * @param[in] waitTask タスク内で生成したタスクの登録(spawn()に相当) 521 * @param[in] waitTask タスク内で生成したタスクの登録(spawn()に相当)
522 */ 522 */
523 void 523 void
524 SchedTask::wait_task(TaskPtr waitTask) 524 SchedTask::wait_task(TaskPtr waitTask)
525 { 525 {
526 waitTask->self = (long)taskGroup; 526 waitTask->self = (memaddr)taskGroup;
527 527
528 scheduler->add_groupTask(taskGroup, waitTask); 528 scheduler->add_groupTask(taskGroup, waitTask);
529 529
530 renew_flag++; 530 renew_flag++;
531 } 531 }