Changeset 94d211e in mainline for kernel/genarch/src/mm/page_pt.c
- Timestamp:
- 2018-03-21T19:32:48Z (7 years ago)
- Children:
- 1c7a170
- Parents:
- 973be387
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/mm/page_pt.c
r973be387 r94d211e 55 55 static void pt_mapping_remove(as_t *, uintptr_t); 56 56 static bool pt_mapping_find(as_t *, uintptr_t, bool, pte_t *pte); 57 static void pt_mapping_update(as_t *, uintptr_t, bool, pte_t *pte);57 static void pt_mapping_update(as_t *, uintptr_t, bool, const pte_t *pte); 58 58 static void pt_mapping_make_global(uintptr_t, size_t); 59 59 … … 90 90 SET_PTL1_ADDRESS(ptl0, PTL0_INDEX(page), KA2PA(newpt)); 91 91 SET_PTL1_FLAGS(ptl0, PTL0_INDEX(page), 92 PAGE_NOT_PRESENT | PAGE_USER | PAGE_EXEC | PAGE_CACHEABLE | 93 PAGE_WRITE); 92 PAGE_NOT_PRESENT | PAGE_NEXT_LEVEL_PT); 94 93 /* 95 94 * Make sure that a concurrent hardware page table walk or … … 109 108 SET_PTL2_ADDRESS(ptl1, PTL1_INDEX(page), KA2PA(newpt)); 110 109 SET_PTL2_FLAGS(ptl1, PTL1_INDEX(page), 111 PAGE_NOT_PRESENT | PAGE_USER | PAGE_EXEC | PAGE_CACHEABLE | 112 PAGE_WRITE); 110 PAGE_NOT_PRESENT | PAGE_NEXT_LEVEL_PT); 113 111 /* 114 112 * Make the new PTL2 visible only after it is fully initialized. … … 126 124 SET_PTL3_ADDRESS(ptl2, PTL2_INDEX(page), KA2PA(newpt)); 127 125 SET_PTL3_FLAGS(ptl2, PTL2_INDEX(page), 128 PAGE_NOT_PRESENT | PAGE_USER | PAGE_EXEC | PAGE_CACHEABLE | 129 PAGE_WRITE); 126 PAGE_NOT_PRESENT | PAGE_NEXT_LEVEL_PT); 130 127 /* 131 128 * Make the new PTL3 visible only after it is fully initialized. … … 353 350 * @param[in] pte New PTE. 354 351 */ 355 void pt_mapping_update(as_t *as, uintptr_t page, bool nolock, pte_t *pte)352 void pt_mapping_update(as_t *as, uintptr_t page, bool nolock, const pte_t *pte) 356 353 { 357 354 pte_t *t = pt_mapping_find_internal(as, page, nolock); … … 431 428 SET_PTL1_ADDRESS(ptl0, PTL0_INDEX(addr), KA2PA(l1)); 432 429 SET_PTL1_FLAGS(ptl0, PTL0_INDEX(addr), 433 PAGE_PRESENT | PAGE_USER | PAGE_CACHEABLE | 434 PAGE_EXEC | PAGE_WRITE | PAGE_READ); 430 PAGE_NEXT_LEVEL_PT); 435 431 } 436 432 }
Note:
See TracChangeset
for help on using the changeset viewer.