Changeset 214ec25c in mainline for kernel/arch/mips32/src/exception.c
- Timestamp:
- 2010-06-11T16:07:21Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b584cd4
- Parents:
- b3b7e14a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/exception.c
rb3b7e14a r214ec25c 79 79 } 80 80 81 static void unhandled_exception( int n, istate_t *istate)81 static void unhandled_exception(unsigned int n, istate_t *istate) 82 82 { 83 83 fault_if_from_uspace(istate, "Unhandled exception %s.", exctable[n]); … … 87 87 } 88 88 89 static void reserved_instr_exception( int n, istate_t *istate)89 static void reserved_instr_exception(unsigned int n, istate_t *istate) 90 90 { 91 91 if (*((uint32_t *) istate->epc) == 0x7c03e83b) { … … 97 97 } 98 98 99 static void breakpoint_exception( int n, istate_t *istate)99 static void breakpoint_exception(unsigned int n, istate_t *istate) 100 100 { 101 101 #ifdef CONFIG_DEBUG … … 109 109 } 110 110 111 static void tlbmod_exception( int n, istate_t *istate)111 static void tlbmod_exception(unsigned int n, istate_t *istate) 112 112 { 113 113 tlb_modified(istate); 114 114 } 115 115 116 static void tlbinv_exception( int n, istate_t *istate)116 static void tlbinv_exception(unsigned int n, istate_t *istate) 117 117 { 118 118 tlb_invalid(istate); … … 120 120 121 121 #ifdef CONFIG_FPU_LAZY 122 static void cpuns_exception( int n, istate_t *istate)122 static void cpuns_exception(unsigned int n, istate_t *istate) 123 123 { 124 124 if (cp0_cause_coperr(cp0_cause_read()) == fpu_cop_id) … … 131 131 #endif 132 132 133 static void interrupt_exception( int n, istate_t *istate)133 static void interrupt_exception(unsigned int n, istate_t *istate) 134 134 { 135 135 /* Decode interrupt number and process the interrupt */ … … 151 151 */ 152 152 #ifdef CONFIG_DEBUG 153 printf("cpu%u: spurious interrupt (inum=% d)\n",153 printf("cpu%u: spurious interrupt (inum=%u)\n", 154 154 CPU->id, i); 155 155 #endif … … 160 160 161 161 /** Handle syscall userspace call */ 162 static void syscall_exception( int n, istate_t *istate)162 static void syscall_exception(unsigned int n, istate_t *istate) 163 163 { 164 164 panic("Syscall is handled through shortcut.");
Note:
See TracChangeset
for help on using the changeset viewer.