Changeset 634 for trunk/kernel/mm/vmm.c


Ignore:
Timestamp:
May 29, 2019, 3:26:44 PM (5 years ago)
Author:
alain
Message:

Fix a bug in hal_irqmask.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/vmm.c

    r633 r634  
    19061906
    19071907#if DEBUG_VMM_HANDLE_PAGE_FAULT
    1908 if( vpn == 0x40b )
     1908if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
    19091909printk("\n[%s] thread[%x,%x] enter for vpn %x / cycle %d\n",
    19101910__FUNCTION__, this->process->pid, this->trdid, vpn, start_cycle );
     
    19121912
    19131913#if (DEBUG_VMM_HANDLE_PAGE_FAULT & 1)
     1914if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
    19141915hal_vmm_display( this->process , false );
    19151916#endif
     
    19281929
    19291930#if DEBUG_VMM_HANDLE_PAGE_FAULT
    1930 uint32_t cycle = (uint32_t)hal_get_cycles();
    1931 if( vpn == 0x40b )
    1932 printk("\n[%s] thread[%x,%x] found vseg %s / cycle %d\n",
    1933 __FUNCTION__, this->process->pid, this->trdid, vseg_type_str(vseg->type), cycle );
     1931if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
     1932printk("\n[%s] thread[%x,%x] found vseg %s\n",
     1933__FUNCTION__, this->process->pid, this->trdid, vseg_type_str(vseg->type) );
    19341934#endif
    19351935
     
    19511951
    19521952#if DEBUG_VMM_HANDLE_PAGE_FAULT
    1953 cycle = (uint32_t)hal_get_cycles();
    1954 if( vpn == 0x40b )
     1953if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
    19551954printk("\n[%s] thread[%x,%x] locked vpn %x in cluster %x / cycle %d\n",
    1956 __FUNCTION__, this->process->pid, this->trdid, vpn, local_cxy, cycle );
     1955__FUNCTION__, this->process->pid, this->trdid, vpn, local_cxy );
    19571956#endif
    19581957
     
    19721971
    19731972#if DEBUG_VMM_HANDLE_PAGE_FAULT
    1974 if( vpn == 0x40b )
    1975 printk("\n[%s] thread[%x,%x] : access local gpt : local_cxy %x / ref_cxy %x / type %s\n",
     1973if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
     1974printk("\n[%s] thread[%x,%x] access local gpt : cxy %x / ref_cxy %x / type %s\n",
    19761975__FUNCTION__, this->process->pid, this->trdid, local_cxy, ref_cxy, vseg_type_str(vseg->type) );
    19771976#endif
     
    20092008
    20102009#if DEBUG_VMM_HANDLE_PAGE_FAULT
    2011 if( vpn == 0x40b )
     2010if( (end_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
    20122011printk("\n[%s] thread[%x,%x] handled local pgfault / ppn %x / attr %x / cycle %d\n",
    20132012__FUNCTION__, this->process->pid, this->trdid, ppn, attr, end_cycle );
     
    20282027
    20292028#if DEBUG_VMM_HANDLE_PAGE_FAULT
    2030 if( vpn == 0x40b )
    2031 printk("\n[%s] thread[%x,%x] access ref gpt : local_cxy %x / ref_cxy %x / type %s\n",
     2029if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
     2030printk("\n[%s] thread[%x,%x] access ref gpt : cxy %x / ref_cxy %x / type %s\n",
    20322031__FUNCTION__, this->process->pid, this->trdid, local_cxy, ref_cxy, vseg_type_str(vseg->type) );
    20332032#endif
     
    20522051
    20532052#if DEBUG_VMM_HANDLE_PAGE_FAULT
    2054 if( vpn == 0x40b )
     2053if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
    20552054printk("\n[%s] thread[%x,%x] get pte from ref gpt / attr %x / ppn %x\n",
    20562055__FUNCTION__, this->process->pid, this->trdid, ref_attr, ref_ppn );
     
    20672066
    20682067#if DEBUG_VMM_HANDLE_PAGE_FAULT
    2069 if( vpn == 0x40b )
     2068if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
    20702069printk("\n[%s] thread[%x,%x] updated local gpt for a false pgfault\n",
    20712070__FUNCTION__, this->process->pid, this->trdid );
     
    20762075                             
    20772076#if DEBUG_VMM_HANDLE_PAGE_FAULT
    2078 if( vpn == 0x40b )
     2077if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
    20792078printk("\n[%s] thread[%x,%x] unlock the ref gpt after a false pgfault\n",
    20802079__FUNCTION__, this->process->pid, this->trdid );
     
    20862085
    20872086#if DEBUG_VMM_HANDLE_PAGE_FAULT
    2088 if( vpn == 0x40b )
     2087if( (end_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
    20892088printk("\n[%s] thread[%x,%x] handled false pgfault / ppn %x / attr %x / cycle %d\n",
    20902089__FUNCTION__, this->process->pid, this->trdid, ref_ppn, ref_attr, end_cycle );
     
    21222121
    21232122#if DEBUG_VMM_HANDLE_PAGE_FAULT
    2124 if( vpn == 0x40b )
     2123if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
    21252124printk("\n[%s] thread[%x,%x] build a new PTE for a true pgfault\n",
    21262125__FUNCTION__, this->process->pid, this->trdid );
     
    21342133
    21352134#if DEBUG_VMM_HANDLE_PAGE_FAULT
    2136 if( vpn == 0x40b )
     2135if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
    21372136printk("\n[%s] thread[%x,%x] set new PTE in ref gpt for a true page fault\n",
    21382137__FUNCTION__, this->process->pid, this->trdid );
     
    21512150
    21522151#if DEBUG_VMM_HANDLE_PAGE_FAULT
    2153 if( vpn == 0x40b )
     2152if( (end_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
    21542153printk("\n[%s] thread[%x,%x] handled global pgfault / ppn %x / attr %x / cycle %d\n",
    21552154__FUNCTION__, this->process->pid, this->trdid, ppn, attr, end_cycle );
     
    21742173
    21752174#if DEBUG_VMM_HANDLE_PAGE_FAULT
    2176 if( vpn == 0x40b )
     2175if( (end_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) )
    21772176printk("\n[%s] handled by another thread / vpn %x / ppn %x / attr %x / cycle %d\n",
    21782177__FUNCTION__, vpn, ppn, attr, end_cycle );
Note: See TracChangeset for help on using the changeset viewer.