Changeset a35b458 in mainline for kernel/test/mm/purge1.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/purge1.c
r3061bc1 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.