Changeset e2b762ec in mainline for kernel/arch
- Timestamp:
- 2009-03-16T21:58:05Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36c061
- Parents:
- d9167a1c
- Location:
- kernel/arch
- Files:
-
- 9 edited
-
amd64/src/debugger.c (modified) (4 diffs)
-
amd64/src/interrupt.c (modified) (3 diffs)
-
ia32/src/interrupt.c (modified) (3 diffs)
-
ia64/src/interrupt.c (modified) (3 diffs)
-
mips32/src/debugger.c (modified) (5 diffs)
-
mips32/src/exception.c (modified) (4 diffs)
-
mips32/src/mm/tlb.c (modified) (6 diffs)
-
ppc32/src/mm/tlb.c (modified) (3 diffs)
-
sparc64/src/trap/exception.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/debugger.c
rd9167a1c re2b762ec 36 36 #include <console/kconsole.h> 37 37 #include <console/cmd.h> 38 #include <symtab.h>39 38 #include <print.h> 40 39 #include <panic.h> … … 45 44 #include <func.h> 46 45 #include <smp/ipi.h> 46 47 #ifdef CONFIG_SYMTAB 48 #include <symtab.h> 49 #endif 47 50 48 51 typedef struct { … … 230 233 } 231 234 } 235 236 #ifdef CONFIG_SYMTAB 232 237 printf("Reached breakpoint %d:%lx(%s)\n", slot, getip(istate), 233 238 get_symtab_entry(getip(istate))); 239 #else 240 printf("Reached breakpoint %d:%lx\n", slot, getip(istate)); 241 #endif 234 242 235 243 #ifdef CONFIG_KCONSOLE … … 356 364 for (i = 0; i < BKPOINTS_MAX; i++) 357 365 if (breakpoints[i].address) { 366 #ifdef CONFIG_SYMTAB 358 367 symbol = get_symtab_entry(breakpoints[i].address); 368 #else 369 symbol = "n/a"; 370 #endif 359 371 360 372 #ifdef __32_BITS__ -
kernel/arch/amd64/src/interrupt.c
rd9167a1c re2b762ec 44 44 #include <mm/as.h> 45 45 #include <arch.h> 46 #include <symtab.h>47 46 #include <arch/asm.h> 48 47 #include <proc/scheduler.h> … … 54 53 #include <ddi/irq.h> 55 54 55 #ifdef CONFIG_SYMTAB 56 #include <symtab.h> 57 #endif 58 56 59 /* 57 60 * Interrupt and exception dispatching. … … 67 70 /* uint64_t *x = &istate->stack[0]; */ 68 71 72 #ifdef CONFIG_SYMTAB 69 73 if (!(symbol = get_symtab_entry(istate->rip))) 70 74 symbol = ""; 75 #else 76 symbol = ""; 77 #endif 71 78 72 79 printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n", n, __func__); -
kernel/arch/ia32/src/interrupt.c
rd9167a1c re2b762ec 45 45 #include <mm/as.h> 46 46 #include <arch.h> 47 #include <symtab.h>48 47 #include <proc/thread.h> 49 48 #include <proc/task.h> … … 54 53 #include <ddi/irq.h> 55 54 55 #ifdef CONFIG_SYMTAB 56 #include <symtab.h> 57 #endif 58 56 59 /* 57 60 * Interrupt and exception dispatching. … … 64 67 void decode_istate(istate_t *istate) 65 68 { 66 char *symbol = get_symtab_entry(istate->eip); 67 69 char *symbol; 70 71 #ifdef CONFIG_SYMTAB 72 symbol = get_symtab_entry(istate->eip); 68 73 if (!symbol) 69 74 symbol = ""; 75 #else 76 symbol = ""; 77 #endif 70 78 71 79 if (CPU) -
kernel/arch/ia64/src/interrupt.c
rd9167a1c re2b762ec 39 39 #include <panic.h> 40 40 #include <print.h> 41 #include <symtab.h>42 41 #include <debug.h> 43 42 #include <console/console.h> … … 56 55 #include <mm/tlb.h> 57 56 57 #ifdef CONFIG_SYMTAB 58 #include <symtab.h> 59 #endif 60 58 61 #define VECTORS_64_BUNDLE 20 59 62 #define VECTORS_16_BUNDLE 48 … … 138 141 char *ifa, *iipa, *iip; 139 142 143 #ifdef CONFIG_SYMTAB 140 144 ifa = get_symtab_entry(istate->cr_ifa); 141 145 iipa = get_symtab_entry(istate->cr_iipa); 142 146 iip = get_symtab_entry(istate->cr_iip); 147 #else 148 ifa = iipa = iip = "n/a"; 149 #endif 143 150 144 151 putchar('\n'); -
kernel/arch/mips32/src/debugger.c
rd9167a1c re2b762ec 38 38 #include <console/kconsole.h> 39 39 #include <console/cmd.h> 40 #include <symtab.h>41 40 #include <print.h> 42 41 #include <panic.h> … … 44 43 #include <arch/cp0.h> 45 44 #include <func.h> 45 46 #ifdef CONFIG_SYMTAB 47 #include <symtab.h> 48 #endif 46 49 47 50 bpinfo_t breakpoints[BKPOINTS_MAX]; … … 260 263 for (i = 0; i < BKPOINTS_MAX; i++) 261 264 if (breakpoints[i].address) { 265 #ifdef CONFIG_SYMTAB 262 266 symbol = get_symtab_entry(breakpoints[i].address); 267 #else 268 symbol = "n/a"; 269 #endif 263 270 264 271 printf("%-2u %-5d %#10zx %-6s %-7s %-8s %s\n", i, … … 349 356 printf("Warning: breakpoint recursion\n"); 350 357 351 if (!(cur->flags & BKPOINT_FUNCCALL)) 358 if (!(cur->flags & BKPOINT_FUNCCALL)) { 359 #ifdef CONFIG_SYMTAB 352 360 printf("***Breakpoint %d: %p in %s.\n", i, fireaddr, 353 361 get_symtab_entry(istate->epc)); 362 #else 363 printf("***Breakpoint %d: %p.\n", i, fireaddr); 364 #endif 365 } 354 366 355 367 /* Return first instruction back */ … … 364 376 cur->flags |= BKPOINT_INPROG; 365 377 } else { 366 printf("***Breakpoint %p in %s.\n", fireaddr, 378 #ifdef CONFIG_SYMTAB 379 printf("***Breakpoint %p in %s.\n", fireaddr, 367 380 get_symtab_entry(fireaddr)); 381 #else 382 printf("***Breakpoint %p.\n", fireaddr); 383 #endif 368 384 /* Move on to next instruction */ 369 385 istate->epc += 4; -
kernel/arch/mips32/src/exception.c
rd9167a1c re2b762ec 42 42 #include <debug.h> 43 43 #include <proc/thread.h> 44 #include <symtab.h>45 44 #include <print.h> 46 45 #include <interrupt.h> … … 48 47 #include <ddi/irq.h> 49 48 #include <arch/debugger.h> 49 50 #ifdef CONFIG_SYMTAB 51 #include <symtab.h> 52 #endif 50 53 51 54 static char * exctable[] = { … … 77 80 char *rasymbol = ""; 78 81 82 #ifdef CONFIG_SYMTAB 79 83 char *s = get_symtab_entry(istate->epc); 80 84 if (s) … … 83 87 if (s) 84 88 rasymbol = s; 89 #endif 85 90 86 91 printf("PC: %#x(%s) RA: %#x(%s), SP(%p)\n", istate->epc, pcsymbol, istate->ra, rasymbol, istate->sp); -
kernel/arch/mips32/src/mm/tlb.c
rd9167a1c re2b762ec 41 41 #include <panic.h> 42 42 #include <arch.h> 43 #include <symtab.h>44 43 #include <synch/mutex.h> 45 44 #include <print.h> … … 47 46 #include <align.h> 48 47 #include <interrupt.h> 48 49 #ifdef CONFIG_SYMTAB 50 #include <symtab.h> 51 #endif 49 52 50 53 static void tlb_refill_fail(istate_t *); … … 324 327 char *sym2 = ""; 325 328 329 #ifdef CONFIG_SYMTAB 326 330 char *s = get_symtab_entry(istate->epc); 327 331 if (s) … … 330 334 if (s) 331 335 sym2 = s; 336 #endif 332 337 333 338 fault_if_from_uspace(istate, "TLB Refill Exception on %p.", … … 342 347 char *symbol = ""; 343 348 349 #ifdef CONFIG_SYMTAB 344 350 char *s = get_symtab_entry(istate->epc); 345 351 if (s) 346 352 symbol = s; 353 #endif 354 347 355 fault_if_from_uspace(istate, "TLB Invalid Exception on %p.", 348 356 cp0_badvaddr_read()); … … 355 363 char *symbol = ""; 356 364 365 #ifdef CONFIG_SYMTAB 357 366 char *s = get_symtab_entry(istate->epc); 358 367 if (s) 359 368 symbol = s; 369 #endif 370 360 371 fault_if_from_uspace(istate, "TLB Modified Exception on %p.", 361 372 cp0_badvaddr_read()); -
kernel/arch/ppc32/src/mm/tlb.c
rd9167a1c re2b762ec 40 40 #include <arch.h> 41 41 #include <print.h> 42 #include <macros.h> 43 44 #ifdef CONFIG_SYMTAB 42 45 #include <symtab.h> 43 #include <macros.h> 44 46 #endif 45 47 46 48 static unsigned int seed = 10; … … 122 124 char *sym2 = ""; 123 125 126 #ifdef CONFIG_SYMTAB 124 127 char *str = get_symtab_entry(istate->pc); 125 128 if (str) … … 128 131 if (str) 129 132 sym2 = str; 133 #endif 130 134 131 135 fault_if_from_uspace(istate, -
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.
