Changeset e8a0b90 in mainline for kernel/arch/ia32/src/interrupt.c
- Timestamp:
- 2007-05-31T21:21:02Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d8431986
- Parents:
- 67f5fbd9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/interrupt.c
r67f5fbd9 re8a0b90 70 70 71 71 if (CPU) 72 printf("----------------EXCEPTION OCCURED (cpu% d)----------------\n", CPU->id);72 printf("----------------EXCEPTION OCCURED (cpu%u)----------------\n", CPU->id); 73 73 else 74 74 printf("----------------EXCEPTION OCCURED----------------\n"); 75 75 76 printf("%%eip: %# x (%s)\n",istate->eip,symbol);77 printf("ERROR_WORD=%# x\n", istate->error_word);78 printf("%%cs=%# x,flags=%#x\n", istate->cs, istate->eflags);79 printf("%%eax=%# x, %%ecx=%#x, %%edx=%#x, %%esp=%#x\n", istate->eax,istate->ecx,istate->edx,&istate->stack[0]);76 printf("%%eip: %#lx (%s)\n", istate->eip, symbol); 77 printf("ERROR_WORD=%#lx\n", istate->error_word); 78 printf("%%cs=%#lx,flags=%#lx\n", istate->cs, istate->eflags); 79 printf("%%eax=%#lx, %%ecx=%#lx, %%edx=%#lx, %%esp=%p\n", istate->eax, istate->ecx, istate->edx, &istate->stack[0]); 80 80 #ifdef CONFIG_DEBUG_ALLREGS 81 printf("%%esi=%# x, %%edi=%#x, %%ebp=%#x, %%ebx=%#x\n", istate->esi,istate->edi,istate->ebp,istate->ebx);82 #endif 83 printf("stack: %# x, %#x, %#x, %#x\n", istate->stack[0], istate->stack[1], istate->stack[2], istate->stack[3]);84 printf(" %# x, %#x, %#x, %#x\n", istate->stack[4], istate->stack[5], istate->stack[6], istate->stack[7]);81 printf("%%esi=%#lx, %%edi=%#lx, %%ebp=%#lx, %%ebx=%#lx\n", istate->esi, istate->edi, istate->ebp, istate->ebx); 82 #endif 83 printf("stack: %#lx, %#lx, %#lx, %#lx\n", istate->stack[0], istate->stack[1], istate->stack[2], istate->stack[3]); 84 printf(" %#lx, %#lx, %#lx, %#lx\n", istate->stack[4], istate->stack[5], istate->stack[6], istate->stack[7]); 85 85 } 86 86 … … 103 103 104 104 /** General Protection Fault. */ 105 static void gp_fault(int n , istate_t *istate)105 static void gp_fault(int n __attribute__((unused)), istate_t *istate) 106 106 { 107 107 if (TASK) { … … 130 130 } 131 131 132 static void ss_fault(int n , istate_t *istate)132 static void ss_fault(int n __attribute__((unused)), istate_t *istate) 133 133 { 134 134 fault_if_from_uspace(istate, "stack fault"); … … 138 138 } 139 139 140 static void simd_fp_exception(int n , istate_t *istate)140 static void simd_fp_exception(int n __attribute__((unused)), istate_t *istate) 141 141 { 142 142 uint32_t mxcsr; 143 143 asm ( 144 144 "stmxcsr %0;\n" 145 : "=m"(mxcsr)145 : "=m" (mxcsr) 146 146 ); 147 147 fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx", 148 (unative_t) mxcsr);149 150 decode_istate(istate); 151 printf("MXCSR: %# zx\n",(unative_t)(mxcsr));148 (unative_t) mxcsr); 149 150 decode_istate(istate); 151 printf("MXCSR: %#lx\n", mxcsr); 152 152 panic("SIMD FP exception(19)\n"); 153 153 } 154 154 155 static void nm_fault(int n , istate_t *istate)155 static void nm_fault(int n __attribute__((unused)), istate_t *istate __attribute__((unused))) 156 156 { 157 157 #ifdef CONFIG_FPU_LAZY … … 164 164 165 165 #ifdef CONFIG_SMP 166 static void tlb_shootdown_ipi(int n , istate_t *istate)166 static void tlb_shootdown_ipi(int n __attribute__((unused)), istate_t *istate __attribute__((unused))) 167 167 { 168 168 trap_virtual_eoi(); … … 172 172 173 173 /** Handler of IRQ exceptions */ 174 static void irq_interrupt(int n, istate_t *istate )174 static void irq_interrupt(int n, istate_t *istate __attribute__((unused))) 175 175 { 176 176 ASSERT(n >= IVT_IRQBASE); … … 199 199 */ 200 200 #ifdef CONFIG_DEBUG 201 printf("cpu% d: spurious interrupt (inum=%d)\n", CPU->id, inum);201 printf("cpu%u: spurious interrupt (inum=%d)\n", CPU->id, inum); 202 202 #endif 203 203 }
Note:
See TracChangeset
for help on using the changeset viewer.