diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-06-10 18:04:26 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-06-10 18:04:26 +0000 |
commit | 679b7378ed7ee80740ab0733174fffb7f28738e4 (patch) | |
tree | d0342b474daed3aaa8ac0e3c7e7a57029ba46d57 /sys/arch | |
parent | 67f7f34d37cf4c1620cdcb00c8803534d4ec0508 (diff) |
In the NMI handler, always print EPC even if we're going to drop into ddb.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sgi/sgi/ip27_machdep.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/sgi/sgi/ip27_machdep.c b/sys/arch/sgi/sgi/ip27_machdep.c index 107e6fc8981..ac8529d59ab 100644 --- a/sys/arch/sgi/sgi/ip27_machdep.c +++ b/sys/arch/sgi/sgi/ip27_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip27_machdep.c,v 1.10 2009/05/28 18:03:55 miod Exp $ */ +/* $OpenBSD: ip27_machdep.c,v 1.11 2009/06/10 18:04:25 miod Exp $ */ /* * Copyright (c) 2008, 2009 Miodrag Vallat. @@ -525,12 +525,10 @@ ip27_nmi(void *arg) regs++; /* NMI COP_0_STATUS_REG */ setsr(getsr() & ~SR_BOOT_EXC_VEC); -#ifdef DDB - printf("NMI\n"); - (void)kdb_trap(-1, &nmi_frame); -#else printf("NMI, PC = %p RA = %p SR = %08x EPC = %p\n", nmi_frame.pc, nmi_frame.ra, nmi_frame.sr, epc); +#ifdef DDB + (void)kdb_trap(-1, &nmi_frame); #endif printf("Resetting system...\n"); boot(RB_USERREQ); |