Changeset 7cb567cd in mainline for kernel/arch/amd64/src/mm/page.c
- Timestamp:
- 2007-04-08T20:52:53Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e5dbbe5
- Parents:
- 328f324b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/mm/page.c
r328f324b r7cb567cd 84 84 uintptr_t cur; 85 85 int i; 86 int identity_flags = PAGE_CACHEABLE | PAGE_EXEC | PAGE_GLOBAL ;86 int identity_flags = PAGE_CACHEABLE | PAGE_EXEC | PAGE_GLOBAL | PAGE_WRITE; 87 87 88 88 if (config.cpu_active == 1) { … … 113 113 exc_register(14, "page_fault", (iroutine) page_fault); 114 114 write_cr3((uintptr_t) AS_KERNEL->genarch.page_table); 115 } 116 else { 115 } else 117 116 write_cr3((uintptr_t) AS_KERNEL->genarch.page_table); 118 }119 117 } 120 118 … … 209 207 pfn_t i; 210 208 for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++) 211 page_mapping_insert(AS_KERNEL, virtaddr + PFN2ADDR(i), physaddr + PFN2ADDR(i), PAGE_NOT_CACHEABLE );209 page_mapping_insert(AS_KERNEL, virtaddr + PFN2ADDR(i), physaddr + PFN2ADDR(i), PAGE_NOT_CACHEABLE | PAGE_WRITE); 212 210 213 211 last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE);
Note:
See TracChangeset
for help on using the changeset viewer.