Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 4484c16 in mainline


Ignore:
Timestamp:
2019-06-15T11:58:49Z (17 months ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
ef705e14
Parents:
180e132
Message:

Consider kernel fault only if it came from kernel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/mm/tlb.c

    r180e132 r4484c16  
    464464}
    465465
    466 static bool is_kernel_fault(uintptr_t va)
     466static bool is_kernel_fault(istate_t *istate, uintptr_t va)
    467467{
    468468        region_register_t rr;
     469
     470        if (istate_from_uspace(istate))
     471                return false;
    469472
    470473        rr.word = rr_read(VA2VRN(va));
     
    587590        as_t *as = AS;
    588591
    589         if (is_kernel_fault(va)) {
     592        if (is_kernel_fault(istate, va)) {
    590593                if (va < end_of_identity) {
    591594                        /*
     
    648651        va = istate->cr_ifa;  /* faulting address */
    649652
    650         if (is_kernel_fault(va))
     653        if (is_kernel_fault(istate, va))
    651654                as = AS_KERNEL;
    652655
     
    716719        va = istate->cr_ifa;  /* faulting address */
    717720
    718         if (is_kernel_fault(va))
     721        if (is_kernel_fault(istate, va))
    719722                as = AS_KERNEL;
    720723
Note: See TracChangeset for help on using the changeset viewer.