Changeset aa85487 in mainline for kernel/arch/mips32/src/exception.c
- Timestamp:
- 2010-03-07T15:11:56Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aadf01e
- Parents:
- 2e99277 (diff), 137691a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/exception.c
r2e99277 raa85487 49 49 #include <symtab.h> 50 50 51 static c har *exctable[] = {51 static const char *exctable[] = { 52 52 "Interrupt", 53 53 "TLB Modified", … … 74 74 static void print_regdump(istate_t *istate) 75 75 { 76 char *pcsymbol, *rasymbol; 77 78 pcsymbol = symtab_fmt_name_lookup(istate->epc); 79 rasymbol = symtab_fmt_name_lookup(istate->ra); 80 76 const char *pcsymbol = symtab_fmt_name_lookup(istate->epc); 77 const char *rasymbol = symtab_fmt_name_lookup(istate->ra); 78 81 79 printf("PC: %#x(%s) RA: %#x(%s), SP(%p)\n", istate->epc, pcsymbol, 82 80 istate->ra, rasymbol, istate->sp); … … 93 91 static void reserved_instr_exception(int n, istate_t *istate) 94 92 { 95 if (*((uint32_t *) istate->epc) == 0x7c03e83b) {93 if (*((uint32_t *) istate->epc) == 0x7c03e83b) { 96 94 ASSERT(THREAD); 97 95 istate->epc += 4; 98 96 istate->v1 = istate->k1; 99 } else 97 } else 100 98 unhandled_exception(n, istate); 101 99 }
Note:
See TracChangeset
for help on using the changeset viewer.