Changeset 432 for trunk/hal/tsar_mips32/core/hal_exception.c
- Timestamp:
- Feb 14, 2018, 3:39:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_exception.c
r425 r432 201 201 } 202 202 203 excp_dmsg("\n[DBG] %s : core[%x,%d] / is_ins %d / %s / vaddr %x\n", 204 __FUNCTION__ , local_cxy , this->core->lid , is_ins, 205 hal_mmu_exception_str(excp_code) , bad_vaddr ); 203 #if CONFIG_DEBUG_HAL_EXCEPTIONS 204 uint32_t cycle = (uint32_t)hal_get_cycles(); 205 if( CONFIG_DEBUG_HAL_EXCEPTIONS < cycle ) 206 printk("\n[DBG] %s : thread %x enter / is_ins %d / %s / vaddr %x / cycle %d\n", 207 __FUNCTION__, this, is_ins, hal_mmu_exception_str(excp_code), bad_vaddr, cycle ); 208 #endif 206 209 207 210 // analyse exception code … … 226 229 { 227 230 228 excp_dmsg("\n[DBG] %s : core[%x,%d] / page-fault handled for vaddr = %x\n", 229 __FUNCTION__ , local_cxy , this->core->lid , bad_vaddr ); 231 #if CONFIG_DEBUG_HAL_EXCEPTIONS 232 cycle = (uint32_t)hal_get_cycles(); 233 if( CONFIG_DEBUG_HAL_EXCEPTIONS < cycle ) 234 printk("\n[DBG] %s : thread %x exit / page-fault handled for vaddr = %x\n", 235 __FUNCTION__ , this , bad_vaddr ); 236 #endif 230 237 231 238 return EXCP_NON_FATAL; … … 261 268 { 262 269 263 excp_dmsg("\n[DBG] %s : core[%x,%d] / copy-on-write handled for vaddr = %x\n", 264 __FUNCTION__ , local_cxy , this->core->lid , bad_vaddr ); 270 #if CONFIG_DEBUG_HAL_EXCEPTIONS 271 cycle = (uint32_t)hal_get_cycles(); 272 if( CONFIG_DEBUG_HAL_EXCEPTIONS < cycle ) 273 printk("\n[DBG] %s : thread %x exit / copy-on-write handled for vaddr = %x\n", 274 __FUNCTION__ , this , bad_vaddr ); 275 #endif 265 276 266 277 return EXCP_NON_FATAL; … … 377 388 excCode = (uzone[UZ_CR] >> 2) & 0xF; 378 389 379 excp_dmsg("\n[DBG] %s : core[%x,%d] / thread %x in process %x / xcode %x / cycle %d\n", 380 __FUNCTION__, local_cxy, this->core->lid, this->trdid, 381 this->process->pid, excCode, (uint32_t)hal_get_cycles() ); 390 #if CONFIG_DEBUG_HAL_EXCEPTIONS 391 uint32_t cycle = (uint32_t)hal_get_cycles(); 392 if( CONFIG_DEBUG_HAL_EXCEPTIONS < cycle ) 393 printk("\n[DBG] %s : thread %x on core[%x,%d] enter / process %x / xcode %x / cycle %d\n", 394 __FUNCTION__, this, local_cxy, this->core->lid, this->process->pid, excCode, cycle ); 395 #endif 382 396 383 397 switch(excCode) … … 434 448 } 435 449 436 excp_dmsg("\n[DBG] %s : core[%x,%d] exit / thread %x in process %x / cycle %d\n", 437 __FUNCTION__, local_cxy, this->core->lid, this->trdid, this->process->pid, 438 (uint32_t)hal_get_cycles() ); 450 #if CONFIG_DEBUG_HAL_EXCEPTIONS 451 cycle = (uint32_t)hal_get_cycles(); 452 if( CONFIG_DEBUG_HAL_EXCEPTIONS < cycle ) 453 printk("\n[DBG] %s : thread %x on core[%x,%d] exit / process %x / xcode %x / cycle %d\n", 454 __FUNCTION__, this, local_cxy, this->core->lid, this->process->pid, excCode, cycle ); 455 #endif 439 456 440 457 } // end hal_do_exception()
Note: See TracChangeset
for help on using the changeset viewer.