Mercurial > hg > Game > Cerium
diff TaskManager/kernel/schedule/Scheduler.cc @ 461:009a2db963de draft
overlay worked.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 29 Sep 2009 13:01:22 +0900 |
parents | a82f377009a5 |
children | 0d64bdb63005 |
line wrap: on
line diff
--- a/TaskManager/kernel/schedule/Scheduler.cc Tue Sep 29 11:51:25 2009 +0900 +++ b/TaskManager/kernel/schedule/Scheduler.cc Tue Sep 29 13:01:22 2009 +0900 @@ -338,12 +338,17 @@ static void load_task(Scheduler *m, int task_id) { - fprintf(stderr,"loadng task id %d\n",task_id); MemorySegment *s = m->get_segment( task_list[task_id].location, m->code_segment_pool, task_list[task_id].end-task_list[task_id].location); task_list[task_id].segment = s; + + fprintf(stderr,"loadng task id %d at 0x%x entry 0x%x\n",task_id, + (unsigned int)(task_list[task_id].segment->data ), + (unsigned int)( + (char*)task_list[task_id].segment->data + + task_list[task_id].entry_offset)); } static void