Changeset 709 for soft/giet_vm/giet_kernel/exc_handler.c
- Timestamp:
- Oct 1, 2015, 4:20:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_kernel/exc_handler.c
r629 r709 61 61 unsigned int x = cluster_xy >> Y_WIDTH; 62 62 unsigned int y = cluster_xy & ((1<<Y_WIDTH)-1); 63 unsigned int lpid = gpid & ((1<<P_WIDTH)-1); 63 unsigned int p = gpid & ((1<<P_WIDTH)-1); 64 unsigned int trdid = _get_thread_trdid(); 65 unsigned int ltid = _get_thread_ltid(); 64 66 65 unsigned int task = _get_context_slot(CTX_LTID_ID); 66 67 static_scheduler_t* psched = (static_scheduler_t*)_get_sched(); 67 68 68 69 const char * mips32_exc_str[] = { "strange unknown cause ", … … 74 75 "reserved instruction ", 75 76 "illegal coproc access ", 76 "arithmetic overflow " };77 "arithmetic overflow " }; 77 78 78 _printf("\n[GIET] Exception for t ask %don processor[%d,%d,%d] at cycle %d\n"79 _printf("\n[GIET] Exception for thread %x on processor[%d,%d,%d] at cycle %d\n" 79 80 " - type : %s\n" 80 81 " - EPC : %x\n" 81 82 " - BVAR : %x\n" 82 "...T askdesactivated\n",83 t ask, x, y, lpid, _get_proctime(),83 "...Thread desactivated\n", 84 trdid , x , y , p , _get_proctime(), 84 85 mips32_exc_str[type], _get_epc(), _get_bvar() ); 85 86 86 // goes to sleeping state87 _ set_context_slot( CTX_NORUN_ID , 1);87 // register KILL signal 88 _atomic_or( &psched->context[ltid].slot[CTX_SIGS_ID] , SIGS_MASK_KILL ); 88 89 89 // deschedule 90 // deschedule calling thread 90 91 unsigned int save_sr; 91 92 _it_disable( &save_sr );
Note: See TracChangeset
for help on using the changeset viewer.