Changeset 9d4e170 in mainline
- Timestamp:
- 2011-11-17T12:59:44Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b326ea1
- Parents:
- 80d301ab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mm/page.c
r80d301ab r9d4e170 37 37 #include <genarch/mm/page_pt.h> 38 38 #include <mm/page.h> 39 #include <arch/mm/frame.h> 39 40 #include <align.h> 40 41 #include <config.h> … … 42 43 #include <typedefs.h> 43 44 #include <interrupt.h> 44 #include < arch/mm/frame.h>45 #include <macros.h> 45 46 46 47 /** Initializes page tables. … … 58 59 uintptr_t cur; 59 60 /* Kernel identity mapping */ 60 for (cur = PHYSMEM_START_ADDR; cur < last_frame; cur += FRAME_SIZE) 61 for (cur = PHYSMEM_START_ADDR; 62 cur < min(config.identity_base, last_frame); cur += FRAME_SIZE) 61 63 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); 62 64 63 65 /* Create mapping for exception table at high offset */ 64 66 #ifdef HIGH_EXCEPTION_VECTORS 67 // XXX: fixme to use proper non-identity page 65 68 void *virtaddr = frame_alloc(ONE_FRAME, FRAME_KA); 66 page_mapping_insert(AS_KERNEL, EXC_BASE_ADDRESS, KA2PA(virtaddr), flags); 69 page_mapping_insert(AS_KERNEL, EXC_BASE_ADDRESS, KA2PA(virtaddr), 70 flags); 67 71 #else 68 72 #error "Only high exception vector supported now"
Note:
See TracChangeset
for help on using the changeset viewer.