Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/mm/purge1.c

    ra35b458 r9d58539  
    4444        tlb_entry_t entryi;
    4545        tlb_entry_t entryd;
    46 
     46       
    4747        int i;
    48 
     48       
    4949        entryd.word[0] = 0;
    5050        entryd.word[1] = 0;
    51 
     51       
    5252        entryd.p = true;                 /* present */
    5353        entryd.ma = MA_WRITEBACK;
     
    5858        entryd.ppn = 0;
    5959        entryd.ps = PAGE_WIDTH;
    60 
     60       
    6161        entryi.word[0] = 0;
    6262        entryi.word[1] = 0;
    63 
     63       
    6464        entryi.p = true;                 /* present */
    6565        entryi.ma = MA_WRITEBACK;
     
    7070        entryi.ppn = 0;
    7171        entryi.ps = PAGE_WIDTH;
    72 
     72       
    7373        for (i = 0; i < 100; i++) {
    7474                itc_mapping_insert(0 + i * (1 << PAGE_WIDTH), 8, entryi);
    7575                dtc_mapping_insert(0 + i * (1 << PAGE_WIDTH), 9, entryd);
    7676        }
    77 
     77       
    7878        tlb_invalidate_pages(8, 0x0c000, 14);
    79 
     79       
    8080        /* tlb_invalidate_all(); */
    81 
     81       
    8282        return NULL;
    8383}
Note: See TracChangeset for help on using the changeset viewer.