Changeset a000878c in mainline for kernel/arch
- Timestamp:
- 2010-02-25T19:11:25Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 958de16
- Parents:
- a634485
- Location:
- kernel/arch
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/src/abs32le.c
ra634485 ra000878c 114 114 } 115 115 116 void panic_printf(c har *fmt, ...)116 void panic_printf(const char *fmt, ...) 117 117 { 118 118 va_list args; -
kernel/arch/amd64/src/cpu/cpu.c
ra634485 ra000878c 62 62 }; 63 63 64 static c har *vendor_str[] = {64 static const char *vendor_str[] = { 65 65 "Unknown Vendor", 66 66 "AuthenticAMD", -
kernel/arch/amd64/src/debugger.c
ra634485 ra000878c 339 339 { 340 340 unsigned int i; 341 char *symbol;342 341 343 342 #ifdef __32_BITS__ … … 353 352 for (i = 0; i < BKPOINTS_MAX; i++) 354 353 if (breakpoints[i].address) { 355 symbol = symtab_fmt_name_lookup(354 const char *symbol = symtab_fmt_name_lookup( 356 355 breakpoints[i].address); 357 356 -
kernel/arch/amd64/src/interrupt.c
ra634485 ra000878c 65 65 void decode_istate(int n, istate_t *istate) 66 66 { 67 char *symbol; 68 69 symbol = symtab_fmt_name_lookup(istate->rip); 70 67 const char *symbol = symtab_fmt_name_lookup(istate->rip); 68 71 69 printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n", n, __func__); 72 70 printf("%%rip: %#llx (%s)\n", istate->rip, symbol); -
kernel/arch/arm32/src/cpu/cpu.c
ra634485 ra000878c 43 43 44 44 /** Implementators (vendor) names */ 45 static c har *imp_data[] = {45 static const char *imp_data[] = { 46 46 "?", /* IMP_DATA_START_OFFSET */ 47 47 "ARM Ltd", /* 0x41 */ … … 60 60 61 61 /** Architecture names */ 62 static c har *arch_data[] = {62 static const char *arch_data[] = { 63 63 "?", /* 0x0 */ 64 64 "4", /* 0x1 */ … … 108 108 void cpu_print_report(cpu_t *m) 109 109 { 110 c har *vendor = imp_data[0];111 c har *architecture = arch_data[0];110 const char *vendor = imp_data[0]; 111 const char *architecture = arch_data[0]; 112 112 cpu_arch_t * cpu_arch = &m->arch; 113 113 -
kernel/arch/ia32/src/cpu/cpu.c
ra634485 ra000878c 64 64 }; 65 65 66 static c har *vendor_str[] = {66 static const char *vendor_str[] = { 67 67 "Unknown Vendor", 68 68 "AMD", -
kernel/arch/ia32/src/interrupt.c
ra634485 ra000878c 65 65 void decode_istate(istate_t *istate) 66 66 { 67 char *symbol; 68 69 symbol = symtab_fmt_name_lookup(istate->eip); 70 67 const char *symbol = symtab_fmt_name_lookup(istate->eip); 68 71 69 if (CPU) 72 70 printf("----------------EXCEPTION OCCURED (cpu%u)----------------\n", CPU->id); 73 71 else 74 72 printf("----------------EXCEPTION OCCURED----------------\n"); 75 73 76 74 printf("%%eip: %#lx (%s)\n", istate->eip, symbol); 77 75 printf("ERROR_WORD=%#lx\n", istate->error_word); … … 80 78 printf("stack: %#lx, %#lx, %#lx, %#lx\n", istate->stack[0], istate->stack[1], istate->stack[2], istate->stack[3]); 81 79 printf(" %#lx, %#lx, %#lx, %#lx\n", istate->stack[4], istate->stack[5], istate->stack[6], istate->stack[7]); 82 80 83 81 stack_trace_istate(istate); 84 82 } -
kernel/arch/ia32/src/mm/frame.c
ra634485 ra000878c 27 27 */ 28 28 29 /** @addtogroup ia32mm 29 /** @addtogroup ia32mm 30 30 * @{ 31 31 */ … … 109 109 } 110 110 111 static c har *e820names[] = {111 static const char *e820names[] = { 112 112 "invalid", 113 113 "available", … … 122 122 { 123 123 unsigned int i; 124 c har *name;124 const char *name; 125 125 126 126 printf("Base Size Name\n"); -
kernel/arch/ia64/src/cpu/cpu.c
ra634485 ra000878c 52 52 void cpu_print_report(cpu_t *m) 53 53 { 54 c har *family_str;54 const char *family_str; 55 55 char vendor[2 * sizeof(uint64_t) + 1]; 56 56 -
kernel/arch/ia64/src/interrupt.c
ra634485 ra000878c 64 64 #define BUNDLE_SIZE 16 65 65 66 char *vector_names_64_bundle[VECTORS_64_BUNDLE] = {66 static const char *vector_names_64_bundle[VECTORS_64_BUNDLE] = { 67 67 "VHPT Translation vector", 68 68 "Instruction TLB vector", … … 87 87 }; 88 88 89 char *vector_names_16_bundle[VECTORS_16_BUNDLE] = {89 static const char *vector_names_16_bundle[VECTORS_16_BUNDLE] = { 90 90 "Page Not Present vector", 91 91 "Key Permission vector", … … 121 121 }; 122 122 123 static char *vector_to_string(uint16_t vector); 124 static void dump_interrupted_context(istate_t *istate); 125 126 char *vector_to_string(uint16_t vector) 123 static const char *vector_to_string(uint16_t vector) 127 124 { 128 125 ASSERT(vector <= VECTOR_MAX); … … 135 132 } 136 133 137 void dump_interrupted_context(istate_t *istate) 138 { 139 char *ifa, *iipa, *iip; 140 141 ifa = symtab_fmt_name_lookup(istate->cr_ifa); 142 iipa = symtab_fmt_name_lookup(istate->cr_iipa); 143 iip = symtab_fmt_name_lookup(istate->cr_iip); 144 134 static void dump_interrupted_context(istate_t *istate) 135 { 136 const char *ifa = symtab_fmt_name_lookup(istate->cr_ifa); 137 const char *iipa = symtab_fmt_name_lookup(istate->cr_iipa); 138 const char *iip = symtab_fmt_name_lookup(istate->cr_iip); 139 145 140 putchar('\n'); 146 141 printf("Interrupted context dump:\n"); … … 162 157 void general_exception(uint64_t vector, istate_t *istate) 163 158 { 164 c har *desc = "";165 159 const char *desc; 160 166 161 switch (istate->cr_isr.ge_code) { 167 162 case GE_ILLEGALOP: … … 187 182 break; 188 183 } 189 184 190 185 fault_if_from_uspace(istate, "General Exception (%s).", desc); 191 186 192 187 dump_interrupted_context(istate); 193 188 panic("General Exception (%s).", desc); -
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()); -
kernel/arch/ppc32/src/cpu/cpu.c
ra634485 ra000878c 54 54 void cpu_print_report(cpu_t *m) 55 55 { 56 c har *name;56 const char *name; 57 57 58 58 switch (m->arch.version) { -
kernel/arch/ppc32/src/mm/tlb.c
ra634485 ra000878c 114 114 static void pht_refill_fail(uintptr_t badvaddr, istate_t *istate) 115 115 { 116 char *symbol; 117 char *sym2; 118 119 symbol = symtab_fmt_name_lookup(istate->pc); 120 sym2 = symtab_fmt_name_lookup(istate->lr); 121 116 const char *symbol = symtab_fmt_name_lookup(istate->pc); 117 const char *sym2 = symtab_fmt_name_lookup(istate->lr); 118 122 119 fault_if_from_uspace(istate, 123 120 "PHT Refill Exception on %p.", badvaddr); -
kernel/arch/sparc64/src/cpu/sun4u/cpu.c
ra634485 ra000878c 129 129 void cpu_print_report(cpu_t *m) 130 130 { 131 char *manuf, *impl; 131 const char *manuf; 132 const char *impl; 132 133 133 134 switch (m->arch.ver.manuf) { -
kernel/arch/sparc64/src/mm/sun4u/tlb.c
ra634485 ra000878c 64 64 tlb_tag_access_reg_t, const char *); 65 65 66 c har *context_encoding[] = {66 const char *context_encoding[] = { 67 67 "Primary", 68 68 "Secondary", -
kernel/arch/sparc64/src/mm/sun4v/tlb.c
ra634485 ra000878c 89 89 * field of the MMU fault status area is i. 90 90 */ 91 char *fault_types[] = {91 static const char *fault_types[] = { 92 92 "unknown", 93 93 "fast miss", … … 107 107 "invalid page size" 108 108 }; 109 110 109 111 110 /** Array of MMU fault status areas. */ -
kernel/arch/sparc64/src/trap/exception.c
ra634485 ra000878c 46 46 void dump_istate(istate_t *istate) 47 47 { 48 char *tpcs, *tnpcs; 49 50 tpcs = symtab_fmt_name_lookup(istate->tpc); 51 tnpcs = symtab_fmt_name_lookup(istate->tnpc); 52 48 const char *tpcs = symtab_fmt_name_lookup(istate->tpc); 49 const char *tnpcs = symtab_fmt_name_lookup(istate->tnpc); 50 53 51 printf("TSTATE=%#" PRIx64 "\n", istate->tstate); 54 52 printf("TPC=%#" PRIx64 " (%s)\n", istate->tpc, tpcs);
Note:
See TracChangeset
for help on using the changeset viewer.