Changes in kernel/arch/mips32/src/exception.c [da1bafb:d99c1d2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/exception.c
rda1bafb rd99c1d2 27 27 */ 28 28 29 /** @addtogroup mips32 29 /** @addtogroup mips32 30 30 * @{ 31 31 */ … … 67 67 "Floating Point", 68 68 NULL, NULL, NULL, NULL, NULL, NULL, NULL, 69 "WatchHi/WatchLo", 69 "WatchHi/WatchLo", /* 23 */ 70 70 NULL, NULL, NULL, NULL, NULL, NULL, NULL, 71 71 "Virtual Coherency - data", … … 74 74 static void print_regdump(istate_t *istate) 75 75 { 76 printf("PC: %#x(%s) RA: %#x(%s), SP(%p)\n", istate->epc, 77 symtab_fmt_name_lookup(istate->epc), istate->ra, 78 symtab_fmt_name_lookup(istate->ra), istate->sp); 76 const char *pcsymbol = symtab_fmt_name_lookup(istate->epc); 77 const char *rasymbol = symtab_fmt_name_lookup(istate->ra); 78 79 printf("PC: %#x(%s) RA: %#x(%s), SP(%p)\n", istate->epc, pcsymbol, 80 istate->ra, rasymbol, istate->sp); 79 81 } 80 82 … … 133 135 static void interrupt_exception(int n, istate_t *istate) 134 136 { 135 /* Decode interrupt number and process the interrupt */136 uint32_t cause = (cp0_cause_read() >> 8) & 0xff;137 uint32_t cause; 138 int i; 137 139 138 unsigned int i; 140 /* decode interrupt number and process the interrupt */ 141 cause = (cp0_cause_read() >> 8) & 0xff; 142 139 143 for (i = 0; i < 8; i++) { 140 144 if (cause & (1 << i)) { … … 145 149 */ 146 150 irq->handler(irq); 147 irq_spinlock_unlock(&irq->lock, false);151 spinlock_unlock(&irq->lock); 148 152 } else { 149 153 /* … … 168 172 { 169 173 int i; 170 174 171 175 /* Clear exception table */ 172 176 for (i = 0; i < IVT_ITEMS; i++)
Note:
See TracChangeset
for help on using the changeset viewer.