x86_64: panic on general protection fault
This commit is contained in:
@@ -91,14 +91,12 @@ static void gpf_handler(struct cpu_context *regs)
|
|||||||
int table = (regs->err_no >> 1) & 2;
|
int table = (regs->err_no >> 1) & 2;
|
||||||
int index = (regs->err_no >> 3) & 13;
|
int index = (regs->err_no >> 3) & 13;
|
||||||
|
|
||||||
printk("general protection fault (%08x %08x %08x %016llx)", ext, table, index, regs->rip);
|
panic_irq(regs, "general protection fault (%08x %08x %08x %016llx)", ext, table, index, regs->rip);
|
||||||
ml_halt_cpu();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pf_handler(struct cpu_context *regs)
|
static void pf_handler(struct cpu_context *regs)
|
||||||
{
|
{
|
||||||
panic_irq(regs, "page fault (%016llx %016llx %016llx)", pf_faultptr(), regs->rip, regs->err_no);
|
panic_irq(regs, "page fault (%016llx %016llx %016llx)", pf_faultptr(), regs->rip, regs->err_no);
|
||||||
ml_halt_cpu();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|||||||
Reference in New Issue
Block a user