Changeset 3a2b636 in mainline
- Timestamp:
- 2010-05-31T20:28:52Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1d432f9
- Parents:
- b0b2ac1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mm/page.c
rb0b2ac1 r3a2b636 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; … … 66 68 #error "Only high exception vector supported now" 67 69 #endif 70 71 page_table_unlock(AS_KERNEL, true); 68 72 69 73 as_switch(NULL, AS_KERNEL); … … 92 96 uintptr_t virtaddr = PA2KA(last_frame); 93 97 pfn_t i; 98 99 page_table_lock(AS_KERNEL, true); 94 100 for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++) { 95 101 page_mapping_insert(AS_KERNEL, virtaddr + PFN2ADDR(i), … … 97 103 PAGE_NOT_CACHEABLE | PAGE_READ | PAGE_WRITE | PAGE_KERNEL); 98 104 } 105 page_table_unlock(AS_KERNEL, true); 99 106 100 107 last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE);
Note:
See TracChangeset
for help on using the changeset viewer.