Changes in kernel/arch/ia32/src/mm/page.c [d99c1d2:e3ce39b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/mm/page.c
rd99c1d2 re3ce39b 61 61 * PA2KA(identity) mapping for all frames until last_frame. 62 62 */ 63 page_table_lock(AS_KERNEL, true); 63 64 for (cur = 0; cur < last_frame; cur += FRAME_SIZE) { 64 65 flags = PAGE_CACHEABLE | PAGE_WRITE; … … 67 68 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); 68 69 } 70 page_table_unlock(AS_KERNEL, true); 69 71 70 72 exc_register(14, "page_fault", (iroutine) page_fault); … … 84 86 uintptr_t virtaddr = PA2KA(last_frame); 85 87 pfn_t i; 88 page_table_lock(AS_KERNEL, true); 86 89 for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++) { 87 90 uintptr_t addr = PFN2ADDR(i); 88 91 page_mapping_insert(AS_KERNEL, virtaddr + addr, physaddr + addr, PAGE_NOT_CACHEABLE | PAGE_WRITE); 89 92 } 93 page_table_unlock(AS_KERNEL, true); 90 94 91 95 last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE);
Note:
See TracChangeset
for help on using the changeset viewer.