Changeset 00287cc in mainline for kernel/arch/arm32/src/mm/page.c
- Timestamp:
- 2009-03-12T23:26:32Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 648c9d9
- Parents:
- 3b122e9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mm/page.c
r3b122e9 r00287cc 52 52 void page_arch_init(void) 53 53 { 54 int flags = PAGE_CACHEABLE; 55 page_mapping_operations = &pt_mapping_operations; 56 54 57 uintptr_t cur; 55 int flags; 56 57 page_mapping_operations = &pt_mapping_operations; 58 59 flags = PAGE_CACHEABLE; 60 61 /* PA2KA(identity) mapping for all frames until last_frame */ 62 for (cur = 0; cur < last_frame; cur += FRAME_SIZE) { 58 /* Kernel identity mapping */ 59 for (cur = 0; cur < last_frame; cur += FRAME_SIZE) 63 60 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); 64 }65 61 66 /* create mapping for exception table at high offset */62 /* Create mapping for exception table at high offset */ 67 63 #ifdef HIGH_EXCEPTION_VECTORS 68 64 void *virtaddr = frame_alloc(ONE_FRAME, FRAME_KA); … … 71 67 #error "Only high exception vector supported now" 72 68 #endif 73 69 74 70 as_switch(NULL, AS_KERNEL); 75 71 76 72 boot_page_table_free(); 77 73 } … … 94 90 physaddr, size) 95 91 } 96 92 97 93 uintptr_t virtaddr = PA2KA(last_frame); 98 94 pfn_t i; … … 102 98 PAGE_NOT_CACHEABLE | PAGE_READ | PAGE_WRITE | PAGE_KERNEL); 103 99 } 104 100 105 101 last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE); 106 102 return virtaddr;
Note:
See TracChangeset
for help on using the changeset viewer.