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