Changeset e2b762ec in mainline for kernel/arch/sparc64/src/trap/exception.c
- Timestamp:
- 2009-03-16T21:58:05Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36c061
- Parents:
- d9167a1c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/trap/exception.c
rd9167a1c re2b762ec 41 41 #include <arch/register.h> 42 42 #include <debug.h> 43 #include <print.h> 44 45 #ifdef CONFIG_SYMTAB 43 46 #include <symtab.h> 44 # include <print.h>47 #endif 45 48 46 49 void dump_istate(istate_t *istate) 47 50 { 51 char *tpcs, *tnpcs; 52 53 #ifdef CONFIG_SYMTAB 54 tpcs = get_symtab_entry(istate->tpc); 55 tnpcs = get_symtab_entry(istate->tnpc); 56 #else 57 tpcs = tnpcs = "n/a"; 58 #endif 48 59 printf("TSTATE=%#" PRIx64 "\n", istate->tstate); 49 printf("TPC=%#" PRIx64 " (%s)\n", istate->tpc, get_symtab_entry(istate->tpc));50 printf("TNPC=%#" PRIx64 " (%s)\n", istate->tnpc, get_symtab_entry(istate->tnpc));60 printf("TPC=%#" PRIx64 " (%s)\n", istate->tpc, tpcs); 61 printf("TNPC=%#" PRIx64 " (%s)\n", istate->tnpc, tnpcs); 51 62 } 52 63
Note:
See TracChangeset
for help on using the changeset viewer.