Changes in kernel/genarch/src/mm/as_pt.c [fdaad75d:6b326ea1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/mm/as_pt.c
rfdaad75d r6b326ea1 73 73 pte_t *ptl0_create(unsigned int flags) 74 74 { 75 pte_t *dst_ptl0 = (pte_t *) frame_alloc(PTL0_SIZE, FRAME_KA); 75 pte_t *dst_ptl0 = (pte_t *) frame_alloc(PTL0_SIZE, 76 FRAME_LOWMEM | FRAME_KA); 76 77 size_t table_size = FRAME_SIZE << PTL0_SIZE; 77 78 … … 89 90 (pte_t *) PA2KA((uintptr_t) AS_KERNEL->genarch.page_table); 90 91 91 uintptr_t src = 92 (uintptr_t)&src_ptl0[PTL0_INDEX(KERNEL_ADDRESS_SPACE_START)];93 uintptr_t dst = 94 (uintptr_t)&dst_ptl0[PTL0_INDEX(KERNEL_ADDRESS_SPACE_START)];92 uintptr_t src = (uintptr_t) 93 &src_ptl0[PTL0_INDEX(KERNEL_ADDRESS_SPACE_START)]; 94 uintptr_t dst = (uintptr_t) 95 &dst_ptl0[PTL0_INDEX(KERNEL_ADDRESS_SPACE_START)]; 95 96 96 97 memsetb(dst_ptl0, table_size, 0);
Note:
See TracChangeset
for help on using the changeset viewer.