Changeset 7bb6b06 in mainline for kernel/arch/sparc64/src/mm/tlb.c
- Timestamp:
- 2006-09-10T21:21:39Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9a5b556
- Parents:
- 208fa65
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/tlb.c
r208fa65 r7bb6b06 48 48 #include <config.h> 49 49 #include <arch/trap/trap.h> 50 #include <arch/trap/exception.h> 50 51 #include <panic.h> 51 52 #include <arch/asm.h> 52 #include <symtab.h>53 53 54 54 static void dtlb_pte_copy(pte_t *t, bool ro); … … 308 308 void do_fast_instruction_access_mmu_miss_fault(istate_t *istate, const char *str) 309 309 { 310 char *tpc_str = get_symtab_entry(istate->tpc);311 312 310 fault_if_from_uspace(istate, "%s\n", str); 313 printf("TPC=%p, (%s)\n", istate->tpc, tpc_str);311 dump_istate(istate); 314 312 panic("%s\n", str); 315 313 } … … 318 316 { 319 317 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 327 void do_fast_data_access_protection_fault(istate_t *istate, tlb_tag_access_reg_t tag, const char *str) 328 { 329 uintptr_t va; 321 330 322 331 va = tag.vpn << PAGE_WIDTH; … … 324 333 fault_if_from_uspace(istate, "%s, Page=%p (ASID=%d)\n", str, va, tag.context); 325 334 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); 340 336 panic("%s\n", str); 341 337 }
Note:
See TracChangeset
for help on using the changeset viewer.