Now that cpu_dataabt_fixup() can fail, print slightly more useful information
(address and disassembly of the instruction that aborted) when it does so.
This commit is contained in:
parent
3c88c46567
commit
6a32761143
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fault.c,v 1.53 2001/06/02 18:09:10 chs Exp $ */
|
||||
/* $NetBSD: fault.c,v 1.54 2001/06/02 22:48:40 bjh21 Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1997 Mark Brinicombe.
|
||||
@ -209,8 +209,11 @@ copyfault:
|
||||
error = cpu_dataabt_fixup(frame);
|
||||
if (error == ABORT_FIXUP_RETURN)
|
||||
return;
|
||||
if (error == ABORT_FIXUP_FAILED)
|
||||
if (error == ABORT_FIXUP_FAILED) {
|
||||
printf("pc = 0x%08x, insn = ", fault_pc);
|
||||
disassemble(fault_pc);
|
||||
panic("data abort fixup failed\n");
|
||||
}
|
||||
|
||||
#ifdef PMAP_DEBUG
|
||||
if (pmap_debug_level >= 0)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fault.c,v 1.5 2001/06/02 18:09:12 chs Exp $ */
|
||||
/* $NetBSD: fault.c,v 1.6 2001/06/02 22:48:40 bjh21 Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1997 Mark Brinicombe.
|
||||
@ -217,8 +217,11 @@ copyfault:
|
||||
error = cpu_dataabt_fixup(frame);
|
||||
if (error == ABORT_FIXUP_RETURN)
|
||||
return;
|
||||
if (error == ABORT_FIXUP_FAILED)
|
||||
if (error == ABORT_FIXUP_FAILED) {
|
||||
printf("pc = 0x%08x, insn = ", fault_pc);
|
||||
disassemble(fault_pc);
|
||||
panic("data abort fixup failed\n");
|
||||
}
|
||||
|
||||
#ifdef PMAP_DEBUG
|
||||
if (pmap_debug_level >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user