Changes in kernel/arch/ia64/src/interrupt.c [b60c582:a000878c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/interrupt.c
rb60c582 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);
Note:
See TracChangeset
for help on using the changeset viewer.