summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-02-25 14:04:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-02-25 14:04:10 +0000
commita3a360b0caad9bebcf8fb7562dc903e20161ae48 (patch)
tree0d9ab4dae882626cd26483a913080a85b64d27ad /sys/arch
parenteeb262f969301c3dd4cdfe3d3e61e99a5368c828 (diff)
In trap(), always initialize tts, even if TRAPDEBUG is not defined, as it
might needed for panic() messages. ok mickey@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/hppa/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c
index c84de16462b..947ef13b150 100644
--- a/sys/arch/hppa/hppa/trap.c
+++ b/sys/arch/hppa/hppa/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.61 2003/02/18 19:01:50 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.62 2003/02/25 14:04:09 miod Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -171,12 +171,12 @@ trap(type, frame)
if (frame->tf_flags & TFF_LAST)
p->p_md.md_regs = frame;
-#ifdef TRAPDEBUG
if (trapnum > trap_types)
tts = "reserved";
else
tts = trap_type[trapnum];
+#ifdef TRAPDEBUG
if (trapnum != T_INTERRUPT && trapnum != T_IBREAK)
db_printf("trap: %x, %s for %x:%x at %x:%x, fl=%x, fp=%p\n",
type, tts, space, va, frame->tf_iisq_head,