Changeset 611 for trunk/hal/tsar_mips32/core
- Timestamp:
- Jan 9, 2019, 3:02:51 PM (6 years ago)
- Location:
- trunk/hal/tsar_mips32/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_exception.c
r610 r611 455 455 else // undefined coprocessor 456 456 { 457 printk("\n[USER_ERROR] in %s for thread %x in process %x\n"457 printk("\n[USER_ERROR] in %s for thread[%x,%x]\n" 458 458 " undefined coprocessor / epc %x\n", 459 __FUNCTION__, this-> trdid, this->process->pid, excPC );459 __FUNCTION__, this->process->pid, this->trdid, excPC ); 460 460 461 461 error = EXCP_USER_ERROR; … … 465 465 case XCODE_OVR: // Arithmetic Overflow : user fatal error 466 466 { 467 printk("\n[USER_ERROR] in %s for thread %x in process %x\n"467 printk("\n[USER_ERROR] in %s for thread[%x,%x]\n" 468 468 " arithmetic overflow / epc %x\n", 469 __FUNCTION__, this-> trdid, this->process->pid, excPC );469 __FUNCTION__, this->process->pid, this->trdid, excPC ); 470 470 471 471 error = EXCP_USER_ERROR; … … 474 474 case XCODE_RI: // Reserved Instruction : user fatal error 475 475 { 476 printk("\n[USER_ERROR] in %s for thread %x in process %x\n"476 printk("\n[USER_ERROR] in %s for thread[%x,%x]\n" 477 477 " reserved instruction / epc %x\n", 478 __FUNCTION__, this-> trdid, this->process->pid, excPC );478 __FUNCTION__, this->process->pid, this->trdid, excPC ); 479 479 480 480 error = EXCP_USER_ERROR; … … 483 483 case XCODE_ADEL: // user fatal error 484 484 { 485 printk("\n[USER_ERROR] in %s for thread %x in process %x\n"485 printk("\n[USER_ERROR] in %s for thread[%x,%x]\n" 486 486 " illegal data load address / epc %x / bad_address %x\n", 487 __FUNCTION__, this-> trdid, this->process->pid, excPC, hal_get_bad_vaddr() );487 __FUNCTION__, this->process->pid, this->trdid, excPC, hal_get_bad_vaddr() ); 488 488 489 489 error = EXCP_USER_ERROR; … … 492 492 case XCODE_ADES: // user fatal error 493 493 { 494 printk("\n[USER_ERROR] in %s for thread %x in process %x\n"494 printk("\n[USER_ERROR] in %s for thread[%x,%x]\n" 495 495 " illegal data store address / epc %x / bad_address %x\n", 496 __FUNCTION__, this-> trdid, this->process->pid, excPC, hal_get_bad_vaddr() );496 __FUNCTION__, this->process->pid, this->trdid, excPC, hal_get_bad_vaddr() ); 497 497 498 498 error = EXCP_USER_ERROR; -
trunk/hal/tsar_mips32/core/hal_gpt.c
r587 r611 137 137 uint32_t cycle = (uint32_t)hal_get_cycles(); 138 138 if( DEBUG_HAL_GPT_CREATE < cycle ) 139 printk("\n[ DBG] %s: thread[%x,%x] enter / cycle %d\n",139 printk("\n[%s] : thread[%x,%x] enter / cycle %d\n", 140 140 __FUNCTION__, this->process->pid, this->trdid, cycle ); 141 141 #endif … … 167 167 cycle = (uint32_t)hal_get_cycles(); 168 168 if( DEBUG_HAL_GPT_CREATE < cycle ) 169 printk("\n[ DBG] %s: thread[%x,%x] exit / cycle %d\n",169 printk("\n[%s] : thread[%x,%x] exit / cycle %d\n", 170 170 __FUNCTION__, this->process->pid, this->trdid, cycle ); 171 171 #endif … … 194 194 thread_t * this = CURRENT_THREAD; 195 195 if( DEBUG_HAL_GPT_DESTROY < cycle ) 196 printk("\n[ DBG] %s: thread[%x,%x] enter / cycle %d\n",196 printk("\n[%s] : thread[%x,%x] enter / cycle %d\n", 197 197 __FUNCTION__, this->process->pid, this->trdid, cycle ); 198 198 #endif … … 267 267 cycle = (uint32_t)hal_get_cycles(); 268 268 if( DEBUG_HAL_GPT_DESTROY < cycle ) 269 printk("\n[ DBG] %s: thread[%x,%x] exit / cycle %d\n",269 printk("\n[%s] : thread[%x,%x] exit / cycle %d\n", 270 270 __FUNCTION__, this->process->pid, this->trdid, cycle ); 271 271 #endif … … 368 368 uint32_t cycle = (uint32_t)hal_get_cycles(); 369 369 if( DEBUG_HAL_GPT_SET_PTE < cycle ) 370 printk("\n[ DBG] %s: thread[%x,%x] enter / vpn %x / attr %x / ppn %x / cluster %x / cycle %d\n",370 printk("\n[%s] : thread[%x,%x] enter / vpn %x / attr %x / ppn %x / cluster %x / cycle %d\n", 371 371 __FUNCTION__, this->process->pid, this->trdid, vpn, attr, ppn, gpt_cxy, cycle ); 372 372 #endif … … 400 400 #if DEBUG_HAL_GPT_SET_PTE 401 401 if( DEBUG_HAL_GPT_SET_PTE < cycle ) 402 printk("\n[ DBG] %s: thread[%x,%x] map PTE1 / cxy %x / ix1 %x / pt1 %x / pte1 %x\n",402 printk("\n[%s] : thread[%x,%x] map PTE1 / cxy %x / ix1 %x / pt1 %x / pte1 %x\n", 403 403 __FUNCTION__, this->process->pid, this->trdid, gpt_cxy, ix1, pt1_ptr, pte1 ); 404 404 #endif … … 443 443 #if DEBUG_HAL_GPT_SET_PTE 444 444 if( DEBUG_HAL_GPT_SET_PTE < cycle ) 445 printk("\n[ DBG] %s: thread[%x,%x] map PTD1 / cxy %x / ix1 %d / pt1 %x / ptd1 %x\n",445 printk("\n[%s] : thread[%x,%x] map PTD1 / cxy %x / ix1 %d / pt1 %x / ptd1 %x\n", 446 446 __FUNCTION__, this->process->pid, this->trdid, gpt_cxy, ix1, pt1_ptr, pte1 ); 447 447 #endif … … 452 452 #if DEBUG_HAL_GPT_SET_PTE 453 453 if( DEBUG_HAL_GPT_SET_PTE < cycle ) 454 printk("\n[ DBG] %s: thread[%x,%x] get PTD1 / cxy %x / ix1 %d / pt1 %x / ptd1 %x\n",454 printk("\n[%s] : thread[%x,%x] get PTD1 / cxy %x / ix1 %d / pt1 %x / ptd1 %x\n", 455 455 __FUNCTION__, this->process->pid, this->trdid, gpt_cxy, ix1, pt1_ptr, pte1 ); 456 456 #endif … … 470 470 #if DEBUG_HAL_GPT_SET_PTE 471 471 if( DEBUG_HAL_GPT_SET_PTE < cycle ) 472 printk("\n[ DBG] %s: thread[%x,%x] map PTE2 / cxy %x / ix2 %x / pt2 %x / attr %x / ppn %x\n",472 printk("\n[%s] : thread[%x,%x] map PTE2 / cxy %x / ix2 %x / pt2 %x / attr %x / ppn %x\n", 473 473 __FUNCTION__, this->process->pid, this->trdid, gpt_cxy, ix2, pt2_ptr, tsar_attr, ppn ); 474 474 #endif … … 788 788 thread_t * this = CURRENT_THREAD; 789 789 if( DEBUG_HAL_GPT_COPY < cycle ) 790 printk("\n[ DBG] %s: thread[%x,%x] enter / vpn %x / src_cxy %x / dst_cxy %x / cycle %d\n",790 printk("\n[%s] : thread[%x,%x] enter / vpn %x / src_cxy %x / dst_cxy %x / cycle %d\n", 791 791 __FUNCTION__, this->process->pid, this->trdid, vpn, src_cxy, local_cxy, cycle ); 792 792 #endif … … 879 879 cycle = (uint32_t)hal_get_cycles; 880 880 if( DEBUG_HAL_GPT_COPY < cycle ) 881 printk("\n[ DBG] %s: thread[%x,%x] exit / copy done for vpn %x / cycle %d\n",881 printk("\n[%s] : thread[%x,%x] exit / copy done for vpn %x / cycle %d\n", 882 882 __FUNCTION__, this->process->pid, this->trdid, vpn, cycle ); 883 883 #endif … … 896 896 cycle = (uint32_t)hal_get_cycles; 897 897 if( DEBUG_HAL_GPT_COPY < cycle ) 898 printk("\n[ DBG] %s: thread[%x,%x] exit / nothing done for vpn %x / cycle %d\n",898 printk("\n[%s] : thread[%x,%x] exit / nothing done for vpn %x / cycle %d\n", 899 899 __FUNCTION__, this->process->pid, this->trdid, vpn, cycle ); 900 900 #endif
Note: See TracChangeset
for help on using the changeset viewer.