Changes in kernel/test/mm/purge1.c [9d58539:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/purge1.c
r9d58539 ra35b458 44 44 tlb_entry_t entryi; 45 45 tlb_entry_t entryd; 46 46 47 47 int i; 48 48 49 49 entryd.word[0] = 0; 50 50 entryd.word[1] = 0; 51 51 52 52 entryd.p = true; /* present */ 53 53 entryd.ma = MA_WRITEBACK; … … 58 58 entryd.ppn = 0; 59 59 entryd.ps = PAGE_WIDTH; 60 60 61 61 entryi.word[0] = 0; 62 62 entryi.word[1] = 0; 63 63 64 64 entryi.p = true; /* present */ 65 65 entryi.ma = MA_WRITEBACK; … … 70 70 entryi.ppn = 0; 71 71 entryi.ps = PAGE_WIDTH; 72 72 73 73 for (i = 0; i < 100; i++) { 74 74 itc_mapping_insert(0 + i * (1 << PAGE_WIDTH), 8, entryi); 75 75 dtc_mapping_insert(0 + i * (1 << PAGE_WIDTH), 9, entryd); 76 76 } 77 77 78 78 tlb_invalidate_pages(8, 0x0c000, 14); 79 79 80 80 /* tlb_invalidate_all(); */ 81 81 82 82 return NULL; 83 83 }
Note:
See TracChangeset
for help on using the changeset viewer.