Changes in kernel/arch/arm32/src/mm/page.c [3a2b636:d99c1d2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mm/page.c
r3a2b636 rd99c1d2 53 53 int flags = PAGE_CACHEABLE; 54 54 page_mapping_operations = &pt_mapping_operations; 55 56 page_table_lock(AS_KERNEL, true);57 55 58 56 uintptr_t cur; … … 68 66 #error "Only high exception vector supported now" 69 67 #endif 70 71 page_table_unlock(AS_KERNEL, true);72 68 73 69 as_switch(NULL, AS_KERNEL); … … 96 92 uintptr_t virtaddr = PA2KA(last_frame); 97 93 pfn_t i; 98 99 page_table_lock(AS_KERNEL, true);100 94 for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++) { 101 95 page_mapping_insert(AS_KERNEL, virtaddr + PFN2ADDR(i), … … 103 97 PAGE_NOT_CACHEABLE | PAGE_READ | PAGE_WRITE | PAGE_KERNEL); 104 98 } 105 page_table_unlock(AS_KERNEL, true);106 99 107 100 last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE);
Note:
See TracChangeset
for help on using the changeset viewer.