Changeset 619 for trunk/hal/tsar_mips32/core/hal_exception.c
- Timestamp:
- Feb 12, 2019, 1:15:47 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_exception.c
r611 r619 219 219 uint32_t cycle = (uint32_t)hal_get_cycles(); 220 220 if( DEBUG_HAL_EXCEPTIONS < cycle ) 221 printk("\n[%s] thread[%x,%x] on core [%x,%x] enter /is_ins %d / %s / vaddr %x / cycle %d\n",221 printk("\n[%s] thread[%x,%x] on core [%x,%x] enter\n is_ins %d / %s / vaddr %x / cycle %d\n", 222 222 __FUNCTION__, process->pid, this->trdid, local_cxy, this->core->lid, 223 223 is_ins, hal_mmu_exception_str(excp_code), bad_vaddr, cycle); … … 242 242 cycle = (uint32_t)hal_get_cycles(); 243 243 if( DEBUG_HAL_EXCEPTIONS < cycle ) 244 printk("\n[%s] thread[%x,%x] on core [%x,%x] exit /page-fault handled for vaddr = %x\n",244 printk("\n[%s] thread[%x,%x] on core [%x,%x] exit\n page-fault handled for vaddr = %x\n", 245 245 __FUNCTION__, process->pid, this->trdid, local_cxy, this->core->lid, bad_vaddr ); 246 246 #endif … … 342 342 343 343 ////////////////////////////////////////////////////////////////////////////////////////// 344 // This staticfunction prints on the kernel terminal the saved context (core registers)344 // This function prints on the kernel terminal the saved context (core registers) 345 345 // and the thread state of a faulty thread. 346 346 ////////////////////////////////////////////////////////////////////////////////////////// 347 347 // @ this : pointer on faulty thread descriptor. 348 // @ uzone : pointer on register array.349 348 // @ error : EXCP_USER_ERROR or EXCP_KERNEL_PANIC 350 349 ////////////////////////////////////////////////////////////////////////////////////////// 351 350 static void hal_exception_dump( thread_t * this, 352 reg_t * uzone,353 351 error_t error ) 354 352 { 355 353 core_t * core = this->core; 356 354 process_t * process = this->process; 355 reg_t * uzone = this->uzone_current; 357 356 358 357 // get pointers on TXT0 chdev … … 399 398 uzone[UZ_S0], uzone[UZ_S1], uzone[UZ_S2], uzone[UZ_S3], uzone[UZ_S4] ); 400 399 401 nolock_printk("s5_21 %X s6_22 %X s7_23 %X s8_24 %X ra_25 %X\n",400 nolock_printk("s5_21 %X s6_22 %X s7_23 %X t8_24 %X t9_25 %X\n", 402 401 uzone[UZ_S5], uzone[UZ_S6], uzone[UZ_S7], uzone[UZ_T8], uzone[UZ_T9] ); 403 402 … … 508 507 if( error == EXCP_USER_ERROR ) // user error => kill user process 509 508 { 510 hal_exception_dump( this , uzone ,error );509 hal_exception_dump( this , error ); 511 510 512 511 sys_exit( EXIT_FAILURE ); … … 514 513 else if( error == EXCP_KERNEL_PANIC ) // kernel error => kernel panic 515 514 { 516 hal_exception_dump( this , uzone ,error );515 hal_exception_dump( this , error ); 517 516 518 517 hal_core_sleep();
Note: See TracChangeset
for help on using the changeset viewer.