Changeset 228 for soft/giet_vm/sys/exc_handler.c
- Timestamp:
- Feb 12, 2013, 6:33:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/exc_handler.c
r218 r228 54 54 }; 55 55 56 static const char * exc_type[] = {56 static const char * exc_type[] = { 57 57 "strange unknown cause", 58 58 "illegal read address", … … 62 62 "breakpoint", 63 63 "reserved instruction", 64 "illegal coproc access" 64 "illegal coproc access", 65 65 "arithmetic overflow", 66 66 }; 67 67 68 static void _display_cause(unsigned int type) 69 {68 69 static void _display_cause(unsigned int type) { 70 70 _get_lock(&_tty_put_lock); 71 71 _puts("\n[GIET] Exception for task "); 72 _putd( _get_current_task_id());72 _putd(_get_current_task_id()); 73 73 _puts(" on processor "); 74 _putd( _procid());74 _putd(_procid()); 75 75 _puts(" at cycle "); 76 _putd( _proctime());76 _putd(_proctime()); 77 77 _puts("\n - type : "); 78 _puts( (char*)exc_type[type]);78 _puts((char *) exc_type[type]); 79 79 _puts("\n - EPC : "); 80 _putx( _get_epc());80 _putx(_get_epc()); 81 81 _puts("\n - BVAR : "); 82 _putx( _get_bvar());82 _putx(_get_bvar()); 83 83 _puts("\n"); 84 84 _puts("...Task desactivated\n"); … … 87 87 // goes to sleeping state 88 88 unsigned int task_id = _get_current_task_id(); 89 _set_context_slot( task_id, CTX_RUN_ID, 0 90 89 _set_context_slot( task_id, CTX_RUN_ID, 0); 90 91 91 // deschedule 92 92 _ctx_switch(); … … 103 103 static void _cause_ovf() { _display_cause(8); } 104 104 105 // Local Variables: 106 // tab-width: 4 107 // c-basic-offset: 4 108 // c-file-offsets:((innamespace . 0)(inline-open . 0)) 109 // indent-tabs-mode: nil 110 // End: 111 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 112
Note: See TracChangeset
for help on using the changeset viewer.