Ignore:
File:
1 edited

Legend:

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

    rbd81386 rc15b374  
    323323        uintptr_t va = cp0_badvaddr_read();
    324324       
    325         fault_if_from_uspace(istate, "TLB Refill Exception on %p.",
    326             (void *) va);
     325        fault_if_from_uspace(istate, "TLB Refill Exception on %p.", va);
    327326        panic_memtrap(istate, PF_ACCESS_UNKNOWN, va, "TLB Refill Exception.");
    328327}
     
    333332        uintptr_t va = cp0_badvaddr_read();
    334333       
    335         fault_if_from_uspace(istate, "TLB Invalid Exception on %p.",
    336             (void *) va);
     334        fault_if_from_uspace(istate, "TLB Invalid Exception on %p.", va);
    337335        panic_memtrap(istate, PF_ACCESS_UNKNOWN, va, "TLB Invalid Exception.");
    338336}
     
    342340        uintptr_t va = cp0_badvaddr_read();
    343341       
    344         fault_if_from_uspace(istate, "TLB Modified Exception on %p.",
    345             (void *) va);
     342        fault_if_from_uspace(istate, "TLB Modified Exception on %p.", va);
    346343        panic_memtrap(istate, PF_ACCESS_WRITE, va, "TLB Modified Exception.");
    347344}
     
    557554        entry_hi_t hi, hi_save;
    558555        tlb_index_t index;
    559        
    560         if (asid == ASID_INVALID)
    561                 return;
     556
     557        ASSERT(asid != ASID_INVALID);
    562558
    563559        hi_save.value = cp0_entry_hi_read();
Note: See TracChangeset for help on using the changeset viewer.