Changeset 3e828ea in mainline for kernel/arch/ia64/src/mm/tlb.c


Ignore:
Timestamp:
2019-09-23T12:49:29Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9be2358
Parents:
9259d20 (diff), 1a4ec93f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiri Svoboda <jiri@…> (2019-09-22 12:49:07)
git-committer:
Jiri Svoboda <jiri@…> (2019-09-23 12:49:29)
Message:

Merge changes from master, especially Meson build

File:
1 edited

Legend:

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

    r9259d20 r3e828ea  
    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));
     
    484487        pte_t t;
    485488
     489        assert(istate_from_uspace(istate));
     490
    486491        va = istate->cr_ifa; /* faulting address */
    487 
    488         assert(!is_kernel_fault(va));
    489492
    490493        bool found = page_mapping_find(AS, va, true, &t);
     
    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
     
    680683        pte_t t;
    681684
     685        assert(istate_from_uspace(istate));
     686
    682687        va = istate->cr_ifa;  /* faulting address */
    683 
    684         assert(!is_kernel_fault(va));
    685688
    686689        bool found = page_mapping_find(AS, va, true, &t);
     
    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
     
    752755        pte_t t;
    753756
     757        assert(istate_from_uspace(istate));
     758
    754759        va = istate->cr_ifa;  /* faulting address */
    755 
    756         assert(!is_kernel_fault(va));
    757760
    758761        /*
     
    779782        pte_t t;
    780783
     784        assert(istate_from_uspace(istate));
     785
    781786        va = istate->cr_ifa;  /* faulting address */
    782 
    783         assert(!is_kernel_fault(va));
    784787
    785788        bool found = page_mapping_find(AS, va, true, &t);
Note: See TracChangeset for help on using the changeset viewer.