Changes in kernel/arch/amd64/src/mm/page.c [59fb782:40c8c17] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/mm/page.c
r59fb782 r40c8c17 57 57 uintptr_t cur; 58 58 unsigned int identity_flags = 59 PAGE_ GLOBAL | PAGE_CACHEABLE | PAGE_EXEC | PAGE_WRITE | PAGE_READ;59 PAGE_CACHEABLE | PAGE_EXEC | PAGE_GLOBAL | PAGE_WRITE; 60 60 61 61 page_mapping_operations = &pt_mapping_operations; … … 78 78 void page_fault(unsigned int n, istate_t *istate) 79 79 { 80 uintptr_t badvaddr= read_cr2();80 uintptr_t page = read_cr2(); 81 81 82 82 if (istate->error_word & PFERR_CODE_RSVD) … … 92 92 access = PF_ACCESS_READ; 93 93 94 (void) as_page_fault(badvaddr, access, istate); 94 if (as_page_fault(page, access, istate) == AS_PF_FAULT) { 95 fault_if_from_uspace(istate, "Page fault: %p.", (void *) page); 96 panic_memtrap(istate, access, page, NULL); 97 } 95 98 } 96 99
Note:
See TracChangeset
for help on using the changeset viewer.