Changeset b0b2ac1 in mainline
- Timestamp:
- 2010-05-31T19:38:05Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3a2b636
- Parents:
- 6e2bf29
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/mm/page.c
r6e2bf29 rb0b2ac1 88 88 if (config.cpu_active == 1) { 89 89 page_mapping_operations = &pt_mapping_operations; 90 91 page_table_lock(AS_KERNEL, true); 90 92 91 93 /* … … 112 114 } 113 115 116 page_table_unlock(AS_KERNEL, true); 117 114 118 exc_register(14, "page_fault", (iroutine) page_fault); 115 119 write_cr3((uintptr_t) AS_KERNEL->genarch.page_table); … … 208 212 uintptr_t virtaddr = PA2KA(last_frame); 209 213 pfn_t i; 214 215 page_table_lock(AS_KERNEL, true); 210 216 for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++) 211 217 page_mapping_insert(AS_KERNEL, virtaddr + PFN2ADDR(i), physaddr + PFN2ADDR(i), PAGE_NOT_CACHEABLE | PAGE_WRITE); 218 page_table_unlock(AS_KERNEL, true); 212 219 213 220 last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE);
Note:
See TracChangeset
for help on using the changeset viewer.