Ignore:
File:
1 edited

Legend:

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

    r59fb782 r1dbc43f  
    196196void fast_instruction_access_mmu_miss(sysarg_t unused, istate_t *istate)
    197197{
     198        uintptr_t page_16k = ALIGN_DOWN(istate->tpc, PAGE_SIZE);
    198199        size_t index = (istate->tpc >> MMU_PAGE_WIDTH) % MMU_PAGES_PER_PAGE;
    199200        pte_t *t;
    200201
    201         t = page_mapping_find(AS, istate->tpc, true);
     202        t = page_mapping_find(AS, page_16k, true);
    202203        if (t && PTE_EXECUTABLE(t)) {
    203204                /*
     
    215216                 * handler.
    216217                 */
    217                 as_page_fault(istate->tpc, PF_ACCESS_EXEC, istate);
     218                as_page_fault(page_16k, PF_ACCESS_EXEC, istate);
    218219        }
    219220}
Note: See TracChangeset for help on using the changeset viewer.