Changeset 7bb6b06 in mainline for kernel/arch/sparc64/src/mm/tlb.c


Ignore:
Timestamp:
2006-09-10T21:21:39Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9a5b556
Parents:
208fa65
Message:

Small improvements here and there.

File:
1 edited

Legend:

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

    r208fa65 r7bb6b06  
    4848#include <config.h>
    4949#include <arch/trap/trap.h>
     50#include <arch/trap/exception.h>
    5051#include <panic.h>
    5152#include <arch/asm.h>
    52 #include <symtab.h>
    5353
    5454static void dtlb_pte_copy(pte_t *t, bool ro);
     
    308308void do_fast_instruction_access_mmu_miss_fault(istate_t *istate, const char *str)
    309309{
    310         char *tpc_str = get_symtab_entry(istate->tpc);
    311 
    312310        fault_if_from_uspace(istate, "%s\n", str);
    313         printf("TPC=%p, (%s)\n", istate->tpc, tpc_str);
     311        dump_istate(istate);
    314312        panic("%s\n", str);
    315313}
     
    318316{
    319317        uintptr_t va;
    320         char *tpc_str = get_symtab_entry(istate->tpc);
     318
     319        va = tag.vpn << PAGE_WIDTH;
     320
     321        fault_if_from_uspace(istate, "%s, Page=%p (ASID=%d)\n", str, va, tag.context);
     322        dump_istate(istate);
     323        printf("Faulting page: %p, ASID=%d\n", va, tag.context);
     324        panic("%s\n", str);
     325}
     326
     327void do_fast_data_access_protection_fault(istate_t *istate, tlb_tag_access_reg_t tag, const char *str)
     328{
     329        uintptr_t va;
    321330
    322331        va = tag.vpn << PAGE_WIDTH;
     
    324333        fault_if_from_uspace(istate, "%s, Page=%p (ASID=%d)\n", str, va, tag.context);
    325334        printf("Faulting page: %p, ASID=%d\n", va, tag.context);
    326         printf("TPC=%p, (%s)\n", istate->tpc, tpc_str);
    327         panic("%s\n", str);
    328 }
    329 
    330 void do_fast_data_access_protection_fault(istate_t *istate, tlb_tag_access_reg_t tag, const char *str)
    331 {
    332         uintptr_t va;
    333         char *tpc_str = get_symtab_entry(istate->tpc);
    334 
    335         va = tag.vpn << PAGE_WIDTH;
    336 
    337         fault_if_from_uspace(istate, "%s, Page=%p (ASID=%d)\n", str, va, tag.context);
    338         printf("Faulting page: %p, ASID=%d\n", va, tag.context);
    339         printf("TPC=%p, (%s)\n", istate->tpc, tpc_str);
     335        dump_istate(istate);
    340336        panic("%s\n", str);
    341337}
Note: See TracChangeset for help on using the changeset viewer.