summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-11-27 05:36:11 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-11-27 05:36:11 +0000
commit3a85fbca09b643cdf5a66a54a778d26e55c1e4b2 (patch)
tree01a780d31a87a805154413076385f1020a726b12
parentd7f1fc1d5d27119ccc059a02480592d17fe56aa8 (diff)
Use symbolic constants to identify ddb traps.
Fix a comment as well.
-rw-r--r--sys/arch/mvme88k/ddb/db_trace.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/arch/mvme88k/ddb/db_trace.c b/sys/arch/mvme88k/ddb/db_trace.c
index cb5fdb9b111..8f708a2a8d8 100644
--- a/sys/arch/mvme88k/ddb/db_trace.c
+++ b/sys/arch/mvme88k/ddb/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.8 2001/03/16 00:10:55 miod Exp $ */
+/* $OpenBSD: db_trace.c,v 1.9 2001/11/27 05:36:10 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
@@ -288,7 +288,7 @@ frame_is_sane(db_regs_t *regs)
return 0;
#ifndef DIAGNOSTIC
- /* disabled for now -- see fpu_enable in luna88k/eh.s */
+ /* disabled for now -- see fpu_enable in mvme88k/eh.s */
/* r0 must be 0 (obviously) */
if (regs->r[0] != 0)
return 0;
@@ -331,8 +331,7 @@ frame_is_sane(db_regs_t *regs)
char *
m88k_exception_name(unsigned vector)
{
- switch (vector)
- {
+ switch (vector) {
default:
case 0: return "Reset";
case 1: return "Interrupt";
@@ -347,9 +346,12 @@ m88k_exception_name(unsigned vector)
case 10: return "Error Exception";
case 114: return "FPU precise";
case 115: return "FPU imprecise";
- case 130: return "Ddb break";
- case 131: return "Ddb trace";
- case 132: return "Ddb trap";
+ case DDB_ENTRY_BKPT_NO:
+ return "ddb break";
+ case DDB_ENTRY_TRACE_NO:
+ return "ddb trace";
+ case DDB_ENTRY_TRAP_NO:
+ return "ddb trap";
case 451: return "Syscall";
}
}