Changeset 438 for trunk/hal/tsar_mips32/core/hal_gpt.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 );
Note: See TracChangeset
for help on using the changeset viewer.