Changeset a000878c in mainline for kernel/arch/mips32/src
- Timestamp:
- 2010-02-25T19:11:25Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 958de16
- Parents:
- a634485
- Location:
- kernel/arch/mips32/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/cpu/cpu.c
ra634485 ra000878c 40 40 41 41 struct data_t { 42 c har *vendor;43 c har *model;42 const char *vendor; 43 const char *model; 44 44 }; 45 45 -
kernel/arch/mips32/src/debugger.c
ra634485 ra000878c 253 253 { 254 254 unsigned int i; 255 char *symbol;256 255 257 256 printf("# Count Address INPROG ONESHOT FUNCCALL In symbol\n"); 258 257 printf("-- ----- ---------- ------ ------- -------- ---------\n"); 259 258 260 for (i = 0; i < BKPOINTS_MAX; i++) 259 for (i = 0; i < BKPOINTS_MAX; i++) { 261 260 if (breakpoints[i].address) { 262 symbol = symtab_fmt_name_lookup(261 const char *symbol = symtab_fmt_name_lookup( 263 262 breakpoints[i].address); 264 263 265 264 printf("%-2u %-5d %#10zx %-6s %-7s %-8s %s\n", i, 266 265 breakpoints[i].counter, breakpoints[i].address, … … 270 269 BKPOINT_FUNCCALL) ? "true" : "false"), symbol); 271 270 } 271 } 272 272 273 return 1; 273 274 } -
kernel/arch/mips32/src/exception.c
ra634485 ra000878c 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 } -
kernel/arch/mips32/src/mm/tlb.c
ra634485 ra000878c 321 321 void tlb_refill_fail(istate_t *istate) 322 322 { 323 char *symbol, *sym2; 324 325 symbol = symtab_fmt_name_lookup(istate->epc); 326 sym2 = symtab_fmt_name_lookup(istate->ra); 323 const char *symbol = symtab_fmt_name_lookup(istate->epc); 324 const char *sym2 = symtab_fmt_name_lookup(istate->ra); 327 325 328 326 fault_if_from_uspace(istate, "TLB Refill Exception on %p.", … … 335 333 void tlb_invalid_fail(istate_t *istate) 336 334 { 337 char *symbol; 338 339 symbol = symtab_fmt_name_lookup(istate->epc); 340 335 const char *symbol = symtab_fmt_name_lookup(istate->epc); 336 341 337 fault_if_from_uspace(istate, "TLB Invalid Exception on %p.", 342 338 cp0_badvaddr_read()); … … 347 343 void tlb_modified_fail(istate_t *istate) 348 344 { 349 char *symbol; 350 351 symbol = symtab_fmt_name_lookup(istate->epc); 352 345 const char *symbol = symtab_fmt_name_lookup(istate->epc); 346 353 347 fault_if_from_uspace(istate, "TLB Modified Exception on %p.", 354 348 cp0_badvaddr_read());
Note:
See TracChangeset
for help on using the changeset viewer.