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