Changeset 214ec25c in mainline
- 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
- Location:
- kernel
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/include/mm/page.h
rb3b7e14a r214ec25c 170 170 171 171 extern void page_arch_init(void); 172 extern void page_fault( int, istate_t *);172 extern void page_fault(unsigned int, istate_t *); 173 173 174 174 #endif /* KERNEL */ -
kernel/arch/abs32le/src/mm/page.c
rb3b7e14a r214ec25c 62 62 } 63 63 64 void page_fault( int n __attribute__((unused)), istate_t *istate)64 void page_fault(unsigned int n __attribute__((unused)), istate_t *istate) 65 65 { 66 66 } -
kernel/arch/amd64/include/interrupt.h
rb3b7e14a r214ec25c 116 116 extern void trap_virtual_enable_irqs(uint16_t irqmask); 117 117 extern void trap_virtual_disable_irqs(uint16_t irqmask); 118 118 119 /* AMD64 - specific page handler */ 119 extern void ident_page_fault( int n, istate_t *istate);120 extern void ident_page_fault(unsigned int, istate_t *); 120 121 121 122 #endif -
kernel/arch/amd64/include/mm/page.h
rb3b7e14a r214ec25c 234 234 235 235 extern void page_arch_init(void); 236 extern void page_fault( int n, istate_t *istate);236 extern void page_fault(unsigned int, istate_t *); 237 237 238 238 #endif /* __ASM__ */ -
kernel/arch/amd64/src/debugger.c
rb3b7e14a r214ec25c 268 268 } 269 269 270 static void debug_exception( int n __attribute__((unused)), istate_t *istate)270 static void debug_exception(unsigned int n __attribute__((unused)), istate_t *istate) 271 271 { 272 272 /* Set RF to restart the instruction */ … … 293 293 294 294 #ifdef CONFIG_SMP 295 static void debug_ipi( int n __attribute__((unused)),295 static void debug_ipi(unsigned int n __attribute__((unused)), 296 296 istate_t *istate __attribute__((unused))) 297 297 { -
kernel/arch/amd64/src/interrupt.c
rb3b7e14a r214ec25c 92 92 } 93 93 94 static void null_interrupt( int n, istate_t *istate)95 { 96 fault_if_from_uspace(istate, "Unserviced interrupt: % d.", n);94 static void null_interrupt(unsigned int n, istate_t *istate) 95 { 96 fault_if_from_uspace(istate, "Unserviced interrupt: %u.", n); 97 97 decode_istate(n, istate); 98 98 panic("Unserviced interrupt."); 99 99 } 100 100 101 static void de_fault( int n, istate_t *istate)101 static void de_fault(unsigned int n, istate_t *istate) 102 102 { 103 103 fault_if_from_uspace(istate, "Divide error."); … … 109 109 * 110 110 */ 111 static void gp_fault( int n, istate_t *istate)111 static void gp_fault(unsigned int n, istate_t *istate) 112 112 { 113 113 if (TASK) { … … 134 134 } 135 135 136 static void ss_fault( int n, istate_t *istate)136 static void ss_fault(unsigned int n, istate_t *istate) 137 137 { 138 138 fault_if_from_uspace(istate, "Stack fault."); … … 141 141 } 142 142 143 static void nm_fault( int n, istate_t *istate)143 static void nm_fault(unsigned int n, istate_t *istate) 144 144 { 145 145 #ifdef CONFIG_FPU_LAZY … … 152 152 153 153 #ifdef CONFIG_SMP 154 static void tlb_shootdown_ipi( int n, istate_t *istate)154 static void tlb_shootdown_ipi(unsigned int n, istate_t *istate) 155 155 { 156 156 trap_virtual_eoi(); … … 162 162 * 163 163 */ 164 static void irq_interrupt( int n, istate_t *istate)164 static void irq_interrupt(unsigned int n, istate_t *istate) 165 165 { 166 166 ASSERT(n >= IVT_IRQBASE); 167 167 168 int inum = n - IVT_IRQBASE;168 unsigned int inum = n - IVT_IRQBASE; 169 169 bool ack = false; 170 170 ASSERT(inum < IRQ_COUNT); … … 189 189 */ 190 190 #ifdef CONFIG_DEBUG 191 printf("cpu% d: spurious interrupt (inum=%d)\n", CPU->id, inum);191 printf("cpu%u: spurious interrupt (inum=%u)\n", CPU->id, inum); 192 192 #endif 193 193 } -
kernel/arch/amd64/src/mm/page.c
rb3b7e14a r214ec25c 129 129 * items. 130 130 */ 131 void ident_page_fault( int n, istate_t *istate)131 void ident_page_fault(unsigned int n, istate_t *istate) 132 132 { 133 133 uintptr_t page; … … 177 177 178 178 179 void page_fault( int n, istate_t *istate)179 void page_fault(unsigned int n, istate_t *istate) 180 180 { 181 181 uintptr_t page; -
kernel/arch/arm32/include/mach/integratorcp/integratorcp.h
rb3b7e14a r214ec25c 102 102 extern void icp_timer_irq_start(void); 103 103 extern void icp_cpu_halt(void); 104 extern void icp_irq_exception( int exc_no, istate_t *istate);104 extern void icp_irq_exception(unsigned int, istate_t *); 105 105 extern uintptr_t icp_get_memory_size(void); 106 106 extern void icp_frame_init(void); -
kernel/arch/arm32/include/mach/testarm/testarm.h
rb3b7e14a r214ec25c 72 72 extern void gxemul_timer_irq_start(void); 73 73 extern void gxemul_cpu_halt(void); 74 extern void gxemul_irq_exception( int exc_no, istate_t *istate);74 extern void gxemul_irq_exception(unsigned int, istate_t *); 75 75 extern uintptr_t gxemul_get_memory_size(void); 76 76 extern void gxemul_frame_init(void); -
kernel/arch/arm32/include/machine_func.h
rb3b7e14a r214ec25c 53 53 void (*machine_cpu_halt)(void); 54 54 uintptr_t (*machine_get_memory_size)(void); 55 void (*machine_irq_exception)( int, istate_t*);55 void (*machine_irq_exception)(unsigned int, istate_t*); 56 56 void (*machine_frame_init)(void); 57 57 void (*machine_output_init)(void); … … 86 86 * @param istate Saved processor state. 87 87 */ 88 extern void machine_irq_exception( int exc_no, istate_t *istate);88 extern void machine_irq_exception(unsigned int exc_no, istate_t *istate); 89 89 90 90 -
kernel/arch/arm32/include/mm/page_fault.h
rb3b7e14a r214ec25c 81 81 } instruction_union_t; 82 82 83 extern void prefetch_abort( int n, istate_t *istate);84 extern void data_abort( int n, istate_t *istate);83 extern void prefetch_abort(unsigned int, istate_t *); 84 extern void data_abort(unsigned int, istate_t *); 85 85 86 86 #endif -
kernel/arch/arm32/src/exception.c
rb3b7e14a r214ec25c 91 91 * 92 92 * Dispatches the syscall. 93 */ 94 static void swi_exception(int exc_no, istate_t *istate) 93 * 94 */ 95 static void swi_exception(unsigned int exc_no, istate_t *istate) 95 96 { 96 97 istate->r0 = syscall_handler(istate->r0, istate->r1, istate->r2, … … 148 149 * Determines the sources of interrupt and calls their handlers. 149 150 */ 150 static void irq_exception( int exc_no, istate_t *istate)151 static void irq_exception(unsigned int exc_no, istate_t *istate) 151 152 { 152 153 machine_irq_exception(exc_no, istate); -
kernel/arch/arm32/src/mach/integratorcp/integratorcp.c
rb3b7e14a r214ec25c 242 242 * @param istate Saved processor state. 243 243 */ 244 void icp_irq_exception( int exc_no, istate_t *istate)244 void icp_irq_exception(unsigned int exc_no, istate_t *istate) 245 245 { 246 246 uint32_t sources = icp_irqc_get_sources(); 247 int i;247 unsigned int i; 248 248 249 249 for (i = 0; i < ICP_IRQC_MAX_IRQ; i++) { -
kernel/arch/arm32/src/mach/testarm/testarm.c
rb3b7e14a r214ec25c 205 205 * Determines the sources of interrupt and calls their handlers. 206 206 */ 207 void gxemul_irq_exception( int exc_no, istate_t *istate)207 void gxemul_irq_exception(unsigned int exc_no, istate_t *istate) 208 208 { 209 209 uint32_t sources = gxemul_irqc_get_sources(); -
kernel/arch/arm32/src/machine_func.c
rb3b7e14a r214ec25c 76 76 * @param istate Saved processor state. 77 77 */ 78 void machine_irq_exception( int exc_no, istate_t *istate)78 void machine_irq_exception(unsigned int exc_no, istate_t *istate) 79 79 { 80 80 (machine_ops.machine_irq_exception)(exc_no, istate); -
kernel/arch/arm32/src/mm/page_fault.c
rb3b7e14a r214ec25c 167 167 /** Handles "data abort" exception (load or store at invalid address). 168 168 * 169 * @param exc_no Exception number. 170 * @param istate CPU state when exception occured. 171 */ 172 void data_abort(int exc_no, istate_t *istate) 169 * @param exc_no Exception number. 170 * @param istate CPU state when exception occured. 171 * 172 */ 173 void data_abort(unsigned int exc_no, istate_t *istate) 173 174 { 174 175 fault_status_t fsr __attribute__ ((unused)) = … … 193 194 /** Handles "prefetch abort" exception (instruction couldn't be executed). 194 195 * 195 * @param exc_no Exception number. 196 * @param istate CPU state when exception occured. 197 */ 198 void prefetch_abort(int exc_no, istate_t *istate) 196 * @param exc_no Exception number. 197 * @param istate CPU state when exception occured. 198 * 199 */ 200 void prefetch_abort(unsigned int exc_no, istate_t *istate) 199 201 { 200 202 int ret = as_page_fault(istate->pc, PF_ACCESS_EXEC, istate); -
kernel/arch/ia32/include/mm/page.h
rb3b7e14a r214ec25c 192 192 193 193 extern void page_arch_init(void); 194 extern void page_fault( int n, istate_t *istate);194 extern void page_fault(unsigned int, istate_t *); 195 195 196 196 #endif /* __ASM__ */ -
kernel/arch/ia32/src/drivers/i8259.c
rb3b7e14a r214ec25c 45 45 #include <interrupt.h> 46 46 47 static void pic_spurious( int n, istate_t *istate);47 static void pic_spurious(unsigned int n, istate_t *istate); 48 48 49 49 void i8259_init(void) … … 125 125 } 126 126 127 void pic_spurious( int n __attribute__((unused)), istate_t *istate __attribute__((unused)))127 void pic_spurious(unsigned int n __attribute__((unused)), istate_t *istate __attribute__((unused))) 128 128 { 129 129 #ifdef CONFIG_DEBUG -
kernel/arch/ia32/src/interrupt.c
rb3b7e14a r214ec25c 91 91 } 92 92 93 static void null_interrupt( int n, istate_t *istate)94 { 95 fault_if_from_uspace(istate, "Unserviced interrupt: % d.", n);96 97 decode_istate(istate); 98 panic("Unserviced interrupt: % d.", n);99 } 100 101 static void de_fault( int n, istate_t *istate)93 static void null_interrupt(unsigned int n, istate_t *istate) 94 { 95 fault_if_from_uspace(istate, "Unserviced interrupt: %u.", n); 96 97 decode_istate(istate); 98 panic("Unserviced interrupt: %u.", n); 99 } 100 101 static void de_fault(unsigned int n, istate_t *istate) 102 102 { 103 103 fault_if_from_uspace(istate, "Divide error."); … … 108 108 109 109 /** General Protection Fault. */ 110 static void gp_fault( int n __attribute__((unused)), istate_t *istate)110 static void gp_fault(unsigned int n __attribute__((unused)), istate_t *istate) 111 111 { 112 112 if (TASK) { … … 133 133 } 134 134 135 static void ss_fault( int n __attribute__((unused)), istate_t *istate)135 static void ss_fault(unsigned int n __attribute__((unused)), istate_t *istate) 136 136 { 137 137 fault_if_from_uspace(istate, "Stack fault."); … … 141 141 } 142 142 143 static void simd_fp_exception( int n __attribute__((unused)), istate_t *istate)143 static void simd_fp_exception(unsigned int n __attribute__((unused)), istate_t *istate) 144 144 { 145 145 uint32_t mxcsr; … … 157 157 } 158 158 159 static void nm_fault( int n __attribute__((unused)),159 static void nm_fault(unsigned int n __attribute__((unused)), 160 160 istate_t *istate __attribute__((unused))) 161 161 { … … 169 169 170 170 #ifdef CONFIG_SMP 171 static void tlb_shootdown_ipi( int n __attribute__((unused)),171 static void tlb_shootdown_ipi(unsigned int n __attribute__((unused)), 172 172 istate_t *istate __attribute__((unused))) 173 173 { … … 178 178 179 179 /** Handler of IRQ exceptions */ 180 static void irq_interrupt( int n, istate_t *istate __attribute__((unused)))180 static void irq_interrupt(unsigned int n, istate_t *istate __attribute__((unused))) 181 181 { 182 182 ASSERT(n >= IVT_IRQBASE); 183 183 184 int inum = n - IVT_IRQBASE;184 unsigned int inum = n - IVT_IRQBASE; 185 185 bool ack = false; 186 186 ASSERT(inum < IRQ_COUNT); … … 205 205 */ 206 206 #ifdef CONFIG_DEBUG 207 printf("cpu%u: spurious interrupt (inum=% d)\n", CPU->id, inum);207 printf("cpu%u: spurious interrupt (inum=%u)\n", CPU->id, inum); 208 208 #endif 209 209 } -
kernel/arch/ia32/src/mm/page.c
rb3b7e14a r214ec25c 98 98 } 99 99 100 void page_fault( int n __attribute__((unused)), istate_t *istate)100 void page_fault(unsigned int n __attribute__((unused)), istate_t *istate) 101 101 { 102 102 uintptr_t page; -
kernel/arch/ia32/src/smp/apic.c
rb3b7e14a r214ec25c 129 129 * 130 130 */ 131 static void apic_spurious( int n __attribute__((unused)),131 static void apic_spurious(unsigned int n __attribute__((unused)), 132 132 istate_t *istate __attribute__((unused))) 133 133 { -
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."); -
kernel/arch/sparc64/src/trap/interrupt.c
rb3b7e14a r214ec25c 58 58 void interrupt_register(unsigned int n, const char *name, iroutine_t handler) 59 59 { 60 ASSERT(n >= IVT_FIRST && n <= IVT_ITEMS); 60 ASSERT(n >= IVT_FIRST); 61 ASSERT(n <= IVT_ITEMS); 61 62 62 63 exc_register(n - IVT_FIRST, name, true, handler); -
kernel/generic/include/interrupt.h
rb3b7e14a r214ec25c 44 44 #include <stacktrace.h> 45 45 46 typedef void (* iroutine_t)( int, istate_t *);46 typedef void (* iroutine_t)(unsigned int, istate_t *); 47 47 48 48 typedef struct { -
kernel/generic/src/interrupt/interrupt.c
rb3b7e14a r214ec25c 144 144 * 145 145 */ 146 static void exc_undef( int n, istate_t *istate)147 { 148 fault_if_from_uspace(istate, "Unhandled exception % d.", n);149 panic("Unhandled exception % d.", n);146 static void exc_undef(unsigned int n, istate_t *istate) 147 { 148 fault_if_from_uspace(istate, "Unhandled exception %u.", n); 149 panic("Unhandled exception %u.", n); 150 150 } 151 151
Note:
See TracChangeset
for help on using the changeset viewer.