Changeset 199 for soft/giet_vm/sys/sys_handler.c
- Timestamp:
- Aug 9, 2012, 2:38:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/sys_handler.c
r189 r199 75 75 void _exit() 76 76 { 77 /*78 77 unsigned int date = _proctime(); 79 80 78 unsigned int proc_id = _procid(); 81 82 79 unsigned int task_id = _get_current_task_id(); 83 80 84 81 // print death message 85 82 _get_lock(&_tty_put_lock); 86 _puts("\n \n!!!Exit task ");87 _put w( task_id );83 _puts("\n[GIET] Exit task "); 84 _putd( task_id ); 88 85 _puts(" on processor "); 89 _put w( proc_id );86 _putd( proc_id ); 90 87 _puts(" at cycle "); 91 _put w( date );88 _putd( date ); 92 89 _puts("\n\n"); 93 90 _release_lock(&_tty_put_lock); 94 */95 91 96 /* infinite loop */ 97 while (1) asm volatile("nop"); 92 // goes to sleeping state 93 _set_context_slot( task_id, CTX_RUN_ID, 0 ); 94 95 // deschedule 96 _ctx_switch(); 98 97 } 99 98 //////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.