mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
added descriptive text to exception dump
svn path=/trunk/; revision=85
This commit is contained in:
parent
5dd16d52fe
commit
33e768c8cd
1 changed files with 29 additions and 1 deletions
|
@ -148,6 +148,27 @@ asmlinkage void exception_handler(unsigned int edi,
|
||||||
unsigned int cr2;
|
unsigned int cr2;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
unsigned int* stack;
|
unsigned int* stack;
|
||||||
|
static char *TypeStrings[] =
|
||||||
|
{
|
||||||
|
"Divide Error",
|
||||||
|
"Debug Trap",
|
||||||
|
"Unknown(2)",
|
||||||
|
"Breakpoint",
|
||||||
|
"Overflow",
|
||||||
|
"BOUND range exceeded",
|
||||||
|
"Invalid Opcode",
|
||||||
|
"No Math Coprocessor",
|
||||||
|
"Double Fault",
|
||||||
|
"Unknown(9)",
|
||||||
|
"Invalid TSS",
|
||||||
|
"Segment Not Present",
|
||||||
|
"Stack Segment Fault",
|
||||||
|
"General Protection",
|
||||||
|
"Page Fault",
|
||||||
|
"Math Fault",
|
||||||
|
"Alignment Check",
|
||||||
|
"Machine Check"
|
||||||
|
};
|
||||||
|
|
||||||
__asm__("cli\n\t");
|
__asm__("cli\n\t");
|
||||||
|
|
||||||
|
@ -175,7 +196,14 @@ asmlinkage void exception_handler(unsigned int edi,
|
||||||
/*
|
/*
|
||||||
* Print out the CPU registers
|
* Print out the CPU registers
|
||||||
*/
|
*/
|
||||||
|
if (type < 19)
|
||||||
|
{
|
||||||
|
printk("%s Exception: %d(%x)\n",TypeStrings[type],type,error_code&0xffff);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
printk("Exception: %d(%x)\n",type,error_code&0xffff);
|
printk("Exception: %d(%x)\n",type,error_code&0xffff);
|
||||||
|
}
|
||||||
printk("CS:EIP %x:%x\n",cs&0xffff,eip);
|
printk("CS:EIP %x:%x\n",cs&0xffff,eip);
|
||||||
printk("DS %x ES %x FS %x GS %x\n",ds&0xffff,es&0xffff,fs&0xffff,
|
printk("DS %x ES %x FS %x GS %x\n",ds&0xffff,es&0xffff,fs&0xffff,
|
||||||
gs&0xfff);
|
gs&0xfff);
|
||||||
|
|
Loading…
Reference in a new issue