Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/mm/page.c

    r59fb782 r306f0de  
    8484void page_fault(unsigned int n __attribute__((unused)), istate_t *istate)
    8585{
    86         uintptr_t badvaddr;
     86        uintptr_t page;
    8787        pf_access_t access;
    8888       
    89         badvaddr = read_cr2();
     89        page = read_cr2();
    9090               
    9191        if (istate->error_word & PFERR_CODE_RSVD)
     
    9797                access = PF_ACCESS_READ;
    9898       
    99         (void) as_page_fault(badvaddr, access, istate);
     99        if (as_page_fault(page, access, istate) == AS_PF_FAULT) {
     100                fault_if_from_uspace(istate, "Page fault: %#x.", page);
     101                panic_memtrap(istate, access, page, NULL);
     102        }
    100103}
    101104
Note: See TracChangeset for help on using the changeset viewer.