Changeset 89c57b6 in mainline for kernel/arch/ia32/src/interrupt.c
- Timestamp:
- 2011-04-13T14:45:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 88634420
- Parents:
- cefb126 (diff), 17279ead (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/interrupt.c
rcefb126 r89c57b6 62 62 void (* enable_irqs_function)(uint16_t irqmask) = NULL; 63 63 void (* eoi_function)(void) = NULL; 64 const char *irqs_info = NULL; 64 65 65 66 void istate_decode(istate_t *istate) 66 67 { 67 printf("error_word=%p\n", istate->error_word); 68 printf("eflags=%p\n", istate->eflags); 69 70 printf("cs =%p\tds =%p\tes =%p\n", istate->cs, istate->ds, istate->es); 71 printf("fs =%p\tgs =%p", istate->fs, istate->gs); 68 printf("cs =%#0" PRIx32 "\teip=%p\t" 69 "efl=%#0" PRIx32 "\terr=%#0" PRIx32 "\n", 70 istate->cs, (void *) istate->eip, 71 istate->eflags, istate->error_word); 72 73 printf("ds =%#0" PRIx32 "\tes =%#0" PRIx32 "\t" 74 "fs =%#0" PRIx32 "\tgs =%#0" PRIx32 "\n", 75 istate->ds, istate->es, istate->fs, istate->gs); 76 72 77 if (istate_from_uspace(istate)) 73 printf(" \tss =%p\n", istate->ss);74 else75 printf("\n");76 77 printf("eax=%p\tebx=%p\tecx=%p\n", istate->eax, istate->ebx,78 istate->ecx);79 printf("e dx=%p\tedi=%p\tesi=%p\n", istate->edx, istate->edi,80 istate->esi);81 printf("ebp=%p\tesp=%p\teip=%p\n",istate->ebp,82 istate_from_uspace(istate) ? istate->esp : (uintptr_t) &istate->esp,83 istate->eip);78 printf("ss =%#0" PRIx32 "\n", istate->ss); 79 80 printf("eax=%#0" PRIx32 "\tebx=%#0" PRIx32 "\t" 81 "ecx=%#0" PRIx32 "\tedx=%#0" PRIx32 "\n", 82 istate->eax, istate->ebx, istate->ecx, istate->edx); 83 84 printf("esi=%p\tedi=%p\tebp=%p\tesp=%p\n", 85 (void *) istate->esi, (void *) istate->edi, 86 (void *) istate->ebp, 87 istate_from_uspace(istate) ? ((void *) istate->esp) : 88 &istate->esp); 84 89 } 85 90 … … 143 148 ); 144 149 145 fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR=%#0 .8x.",146 (unative_t)mxcsr);147 panic_badtrap(istate, n, "SIMD FP exception , MXCSR=%#0.8x");150 fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR=%#0" PRIx32 ".", 151 mxcsr); 152 panic_badtrap(istate, n, "SIMD FP exception"); 148 153 } 149 154
Note:
See TracChangeset
for help on using the changeset viewer.