Changeset 189 for soft/giet_vm/sys/exc_handler.c
- Timestamp:
- Aug 7, 2012, 6:37:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/exc_handler.c
r158 r189 32 32 33 33 /////////////////////////////////////////////////////////////////////////////////// 34 // Initialize the exception vector according to CR code34 // Initialize the exception vector indexed by the CR XCODE field 35 35 /////////////////////////////////////////////////////////////////////////////////// 36 36 const _exc_func_t _cause_vector[16] = { … … 67 67 static void _cause(unsigned int msg_cause) 68 68 { 69 unsigned int epc;70 unsigned int bar;71 unsigned int cause;72 73 asm volatile("mfc0 %0, $14" : "=r"(epc));74 asm volatile("mfc0 %0, $8 " : "=r"(bar));75 asm volatile("mfc0 %0, $13" : "=r"(cause));76 77 69 _puts( (char*)(exc_message_causes[msg_cause]) ); 78 _puts("\nEPC = "); 79 _putw( epc ); 80 _puts("\nBAR = "); 81 _putw( bar ); 82 _puts("\nCAUSE = "); 83 _putw( cause ); 70 _puts("\n - Cycle : "); 71 _putd( _proctime() ); 72 _puts("\n - Processor : "); 73 _putd( _procid() ); 74 _puts("\n - Task : "); 75 _putd( _get_current_task_id() ); 76 _puts("\n - EPC : "); 77 _putw( _get_epc() ); 78 _puts("\n - BVAR : "); 79 _putw( _get_bvar() ); 84 80 _puts("\n"); 85 86 81 _exit(); 87 82 }
Note: See TracChangeset
for help on using the changeset viewer.