Changes in kernel/arch/arm32/src/mm/page.c [226f72e:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mm/page.c
r226f72e r9d58539 52 52 void page_arch_init(void) 53 53 { 54 int flags = PAGE_CACHEABLE | PAGE_EXEC;54 int flags = PAGE_CACHEABLE; 55 55 page_mapping_operations = &pt_mapping_operations; 56 56 57 57 page_table_lock(AS_KERNEL, true); 58 58 59 uintptr_t cur; 60 59 61 /* Kernel identity mapping */ 60 //FIXME: We need to consider the possibility that 61 //identity_base > identity_size and physmem_end. 62 //This might lead to overflow if identity_size is too big. 63 for (uintptr_t cur = PHYSMEM_START_ADDR; 64 cur < min(KA2PA(config.identity_base) + 65 config.identity_size, config.physmem_end); 62 for (cur = PHYSMEM_START_ADDR; 63 cur < min(config.identity_size, config.physmem_end); 66 64 cur += FRAME_SIZE) 67 65 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); … … 69 67 #ifdef HIGH_EXCEPTION_VECTORS 70 68 /* Create mapping for exception table at high offset */ 71 uintptr_t ev_frame = frame_alloc(1, FRAME_NONE, 0);69 uintptr_t ev_frame = (uintptr_t) frame_alloc(ONE_FRAME, FRAME_NONE); 72 70 page_mapping_insert(AS_KERNEL, EXC_BASE_ADDRESS, ev_frame, flags); 73 71 #else
Note:
See TracChangeset
for help on using the changeset viewer.