Changeset 438 for trunk/hal/tsar_mips32/core
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (7 years ago)
- Location:
- trunk/hal/tsar_mips32/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_exception.c
r437 r438 201 201 } 202 202 203 #if CONFIG_DEBUG_HAL_EXCEPTIONS203 #if DEBUG_HAL_EXCEPTIONS 204 204 uint32_t cycle = (uint32_t)hal_get_cycles(); 205 if( CONFIG_DEBUG_HAL_EXCEPTIONS < cycle )205 if( DEBUG_HAL_EXCEPTIONS < cycle ) 206 206 printk("\n[DBG] %s : thread %x enter / is_ins %d / %s / vaddr %x / cycle %d\n", 207 207 __FUNCTION__, this, is_ins, hal_mmu_exception_str(excp_code), bad_vaddr, cycle ); … … 229 229 { 230 230 231 #if CONFIG_DEBUG_HAL_EXCEPTIONS231 #if DEBUG_HAL_EXCEPTIONS 232 232 cycle = (uint32_t)hal_get_cycles(); 233 if( CONFIG_DEBUG_HAL_EXCEPTIONS < cycle )233 if( DEBUG_HAL_EXCEPTIONS < cycle ) 234 234 printk("\n[DBG] %s : thread %x exit / page-fault handled for vaddr = %x\n", 235 235 __FUNCTION__ , this , bad_vaddr ); … … 268 268 { 269 269 270 #if CONFIG_DEBUG_HAL_EXCEPTIONS270 #if DEBUG_HAL_EXCEPTIONS 271 271 cycle = (uint32_t)hal_get_cycles(); 272 if( CONFIG_DEBUG_HAL_EXCEPTIONS < cycle )272 if( DEBUG_HAL_EXCEPTIONS < cycle ) 273 273 printk("\n[DBG] %s : thread %x exit / copy-on-write handled for vaddr = %x\n", 274 274 __FUNCTION__ , this , bad_vaddr ); … … 390 390 excPC = uzone[UZ_EPC]; 391 391 392 #if CONFIG_DEBUG_HAL_EXCEPTIONS392 #if DEBUG_HAL_EXCEPTIONS 393 393 uint32_t cycle = (uint32_t)hal_get_cycles(); 394 if( CONFIG_DEBUG_HAL_EXCEPTIONS < cycle )394 if( DEBUG_HAL_EXCEPTIONS < cycle ) 395 395 printk("\n[DBG] %s : thread %x enter / core[%x,%d] / pid %x / epc %x / xcode %x / cycle %d\n", 396 396 __FUNCTION__, this, local_cxy, this->core->lid, this->process->pid, excPC, excCode, cycle ); … … 450 450 } 451 451 452 #if CONFIG_DEBUG_HAL_EXCEPTIONS452 #if DEBUG_HAL_EXCEPTIONS 453 453 cycle = (uint32_t)hal_get_cycles(); 454 if( CONFIG_DEBUG_HAL_EXCEPTIONS < cycle )454 if( DEBUG_HAL_EXCEPTIONS < cycle ) 455 455 printk("\n[DBG] %s : thread %x exit / core[%x,%d] / pid %x / epc %x / xcode %x / cycle %d\n", 456 456 __FUNCTION__, this, local_cxy, this->core->lid, this->process->pid, excPC, excCode, cycle ); -
trunk/hal/tsar_mips32/core/hal_gpt.c
r432 r438 132 132 xptr_t page_xp; 133 133 134 #if CONFIG_DEBUG_GPT_ACCESS134 #if DEBUG_GPT_ACCESS 135 135 uint32_t cycle = (uint32_t)hal_get_cycles; 136 if( CONFIG_DEBUG_GPT_ACCESS < cycle )136 if( DEBUG_GPT_ACCESS < cycle ) 137 137 printk("\n[DBG] %s : thread %x enter / cycle %d\n", 138 138 __FUNCTION__, CURRENT_THREAD, cycle ); … … 161 161 gpt->ppn = ppm_page2ppn( page_xp ); 162 162 163 #if CONFIG_DEBUG_GPT_ACCESS163 #if DEBUG_GPT_ACCESS 164 164 cycle = (uint32_t)hal_get_cycles; 165 if( CONFIG_DEBUG_GPT_ACCESS < cycle )165 if( DEBUG_GPT_ACCESS < cycle ) 166 166 printk("\n[DBG] %s : thread %x exit / cycle %d\n", 167 167 __FUNCTION__, CURRENT_THREAD, cycle ); … … 340 340 uint32_t tsar_attr; // PTE attributes for TSAR MMU 341 341 342 #if CONFIG_DEBUG_GPT_ACCESS342 #if DEBUG_GPT_ACCESS 343 343 uint32_t cycle = (uint32_t)hal_get_cycles; 344 if( CONFIG_DEBUG_GPT_ACCESS < cycle )344 if( DEBUG_GPT_ACCESS < cycle ) 345 345 printk("\n[DBG] %s : thread %x enter / vpn %x / attr %x / ppn %x / cycle %d\n", 346 346 __FUNCTION__, CURRENT_THREAD, vpn, attr, ppn, cycle ); … … 357 357 tsar_attr = gpt2tsar( attr ); 358 358 359 #if ( CONFIG_DEBUG_GPT_ACCESS & 1)360 if( CONFIG_DEBUG_GPT_ACCESS < cycle )359 #if (DEBUG_GPT_ACCESS & 1) 360 if( DEBUG_GPT_ACCESS < cycle ) 361 361 printk("\n[DBG] %s : thread %x / vpn %x / &pt1 %x / tsar_attr %x\n", 362 362 __FUNCTION__, CURRENT_THREAD, vpn, pt1, tsar_attr ); … … 392 392 pte1 = *pte1_ptr; 393 393 394 #if ( CONFIG_DEBUG_GPT_ACCESS & 1)395 if( CONFIG_DEBUG_GPT_ACCESS < cycle )394 #if (DEBUG_GPT_ACCESS & 1) 395 if( DEBUG_GPT_ACCESS < cycle ) 396 396 printk("\n[DBG] %s : thread %x / vpn %x / current_pte1 %x\n", 397 397 __FUNCTION__, CURRENT_THREAD, vpn, pte1 ); … … 437 437 pt2 = (uint32_t *)GET_PTR( ppm_ppn2base( pt2_ppn ) ); 438 438 439 #if ( CONFIG_DEBUG_GPT_ACCESS & 1)440 if( CONFIG_DEBUG_GPT_ACCESS < cycle )439 #if (DEBUG_GPT_ACCESS & 1) 440 if( DEBUG_GPT_ACCESS < cycle ) 441 441 printk("\n[DBG] %s : thread %x / vpn %x / pte1 %x / &pt2 %x\n", 442 442 __FUNCTION__, CURRENT_THREAD, vpn, pte1, pt2 ); … … 452 452 hal_fence(); 453 453 454 #if CONFIG_DEBUG_GPT_ACCESS454 #if DEBUG_GPT_ACCESS 455 455 cycle = (uint32_t)hal_get_cycles; 456 if( CONFIG_DEBUG_GPT_ACCESS < cycle )456 if( DEBUG_GPT_ACCESS < cycle ) 457 457 printk("\n[DBG] %s : thread %x exit / vpn %x / pte2_attr %x / pte2_ppn %x / cycle %d\n", 458 458 __FUNCTION__, CURRENT_THREAD, vpn, pt2[2 * ix2], pt2[2 * ix2 + 1], cycle ); … … 762 762 ppn_t dst_pt2_ppn; 763 763 764 #if CONFIG_DEBUG_GPT_ACCESS764 #if DEBUG_GPT_ACCESS 765 765 uint32_t cycle = (uint32_t)hal_get_cycles; 766 if( CONFIG_DEBUG_GPT_ACCESS < cycle )766 if( DEBUG_GPT_ACCESS < cycle ) 767 767 printk("\n[DBG] %s : thread %x enter / vpn %x / cycle %d\n", 768 768 __FUNCTION__, CURRENT_THREAD, vpn, cycle ); … … 853 853 *ppn = src_pte2_ppn; 854 854 855 #if CONFIG_DEBUG_GPT_ACCESS855 #if DEBUG_GPT_ACCESS 856 856 cycle = (uint32_t)hal_get_cycles; 857 if( CONFIG_DEBUG_GPT_ACCESS < cycle )857 if( DEBUG_GPT_ACCESS < cycle ) 858 858 printk("\n[DBG] %s : thread %x exit / copy done for vpn %x / cycle %d\n", 859 859 __FUNCTION__, CURRENT_THREAD, vpn, cycle ); … … 870 870 *ppn = 0; 871 871 872 #if CONFIG_DEBUG_GPT_ACCESS872 #if DEBUG_GPT_ACCESS 873 873 cycle = (uint32_t)hal_get_cycles; 874 if( CONFIG_DEBUG_GPT_ACCESS < cycle )874 if( DEBUG_GPT_ACCESS < cycle ) 875 875 printk("\n[DBG] %s : thread %x exit / nothing done for vpn %x / cycle %d\n", 876 876 __FUNCTION__, CURRENT_THREAD, vpn, cycle ); -
trunk/hal/tsar_mips32/core/hal_kentry.S
r432 r438 200 200 mtc0 $3, $12 # set new c0_sr 201 201 202 #-------------------- ------203 #if CONFIG_DEBUG_HAL_KENTRY202 #-------------------- 203 #if DEBUG_HAL_KENTRY 204 204 205 205 # display "enter" message … … 349 349 sw $5, 8($4) # current uzone pointer <= previous 350 350 351 #------------------- -------352 #if CONFIG_DEBUG_HAL_KENTRY351 #------------------- 352 #if DEBUG_HAL_KENTRY 353 353 354 354 # display "exit" message
Note: See TracChangeset
for help on using the changeset viewer.