summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-07-22 18:58:05 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-07-22 18:58:05 +0000
commitbea93fbb2961a3d3b32b6e1c4697fb9e473c3953 (patch)
tree9178b2a941f5a52bbb1998d66092797ceae87c1d
parenta106c1e27d42350290b1cf4ab4dd85c008c5f37e (diff)
Do not use db_printf() to trace data access exceptions.
-rw-r--r--sys/arch/luna88k/luna88k/locore_c_routines.c26
-rw-r--r--sys/arch/mvme88k/mvme88k/locore_c_routines.c26
2 files changed, 12 insertions, 40 deletions
diff --git a/sys/arch/luna88k/luna88k/locore_c_routines.c b/sys/arch/luna88k/luna88k/locore_c_routines.c
index 432f9d11f45..bd65daae452 100644
--- a/sys/arch/luna88k/luna88k/locore_c_routines.c
+++ b/sys/arch/luna88k/luna88k/locore_c_routines.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore_c_routines.c,v 1.1 2004/04/21 15:24:01 aoyama Exp $ */
+/* $OpenBSD: locore_c_routines.c,v 1.2 2004/07/22 18:58:02 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
@@ -43,20 +43,6 @@
#include <machine/m88100.h>
#endif
-#ifdef DDB
-#include <ddb/db_output.h>
-#endif /* DDB */
-
-#if defined(DDB) && defined(JEFF_DEBUG)
-#define DATA_DEBUG
-#endif
-
-#if DDB
-#define DEBUG_MSG db_printf
-#else
-#define DEBUG_MSG printf
-#endif /* DDB */
-
typedef struct {
unsigned word_one, word_two;
} m88k_exception_vector_area;
@@ -196,7 +182,7 @@ data_access_emulation(unsigned *eframe)
switch (dmt_en_info[DMT_ENBITS(dmtx)].size) {
case DMT_BYTE:
DAE_DEBUG(
- DEBUG_MSG("[byte %x -> [%x(%c)]\n",
+ printf("[byte %x -> [%x(%c)]\n",
dmdx & 0xff, dmax,
ISSET(dmtx, DMT_DAS) ? 's' : 'u')
);
@@ -205,7 +191,7 @@ data_access_emulation(unsigned *eframe)
break;
case DMT_HALF:
DAE_DEBUG(
- DEBUG_MSG("[half %x -> [%x(%c)]\n",
+ printf("[half %x -> [%x(%c)]\n",
dmdx & 0xffff, dmax,
ISSET(dmtx, DMT_DAS) ? 's' : 'u')
);
@@ -214,7 +200,7 @@ data_access_emulation(unsigned *eframe)
break;
case DMT_WORD:
DAE_DEBUG(
- DEBUG_MSG("[word %x -> [%x(%c)]\n",
+ printf("[word %x -> [%x(%c)]\n",
dmdx, dmax,
ISSET(dmtx, DMT_DAS) ? 's' : 'u')
);
@@ -244,9 +230,9 @@ data_access_emulation(unsigned *eframe)
}
DAE_DEBUG(
if (reg == 0)
- DEBUG_MSG("[no write to r0 done]\n");
+ printf("[no write to r0 done]\n");
else
- DEBUG_MSG("[r%d <- %x]\n", reg, v);
+ printf("[r%d <- %x]\n", reg, v);
);
if (reg != 0)
eframe[EF_R0 + reg] = v;
diff --git a/sys/arch/mvme88k/mvme88k/locore_c_routines.c b/sys/arch/mvme88k/mvme88k/locore_c_routines.c
index 2cd4d3040ba..fbbd0d86500 100644
--- a/sys/arch/mvme88k/mvme88k/locore_c_routines.c
+++ b/sys/arch/mvme88k/mvme88k/locore_c_routines.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore_c_routines.c,v 1.39 2004/01/08 14:29:46 miod Exp $ */
+/* $OpenBSD: locore_c_routines.c,v 1.40 2004/07/22 18:58:04 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
@@ -44,20 +44,6 @@
#include <machine/m88100.h>
#endif
-#ifdef DDB
-#include <ddb/db_output.h>
-#endif /* DDB */
-
-#if defined(DDB) && defined(JEFF_DEBUG)
-#define DATA_DEBUG
-#endif
-
-#if DDB
-#define DEBUG_MSG db_printf
-#else
-#define DEBUG_MSG printf
-#endif /* DDB */
-
typedef struct {
unsigned word_one, word_two;
} m88k_exception_vector_area;
@@ -197,7 +183,7 @@ data_access_emulation(unsigned *eframe)
switch (dmt_en_info[DMT_ENBITS(dmtx)].size) {
case DMT_BYTE:
DAE_DEBUG(
- DEBUG_MSG("[byte %x -> [%x(%c)]\n",
+ printf("[byte %x -> [%x(%c)]\n",
dmdx & 0xff, dmax,
ISSET(dmtx, DMT_DAS) ? 's' : 'u')
);
@@ -206,7 +192,7 @@ data_access_emulation(unsigned *eframe)
break;
case DMT_HALF:
DAE_DEBUG(
- DEBUG_MSG("[half %x -> [%x(%c)]\n",
+ printf("[half %x -> [%x(%c)]\n",
dmdx & 0xffff, dmax,
ISSET(dmtx, DMT_DAS) ? 's' : 'u')
);
@@ -215,7 +201,7 @@ data_access_emulation(unsigned *eframe)
break;
case DMT_WORD:
DAE_DEBUG(
- DEBUG_MSG("[word %x -> [%x(%c)]\n",
+ printf("[word %x -> [%x(%c)]\n",
dmdx, dmax,
ISSET(dmtx, DMT_DAS) ? 's' : 'u')
);
@@ -245,9 +231,9 @@ data_access_emulation(unsigned *eframe)
}
DAE_DEBUG(
if (reg == 0)
- DEBUG_MSG("[no write to r0 done]\n");
+ printf("[no write to r0 done]\n");
else
- DEBUG_MSG("[r%d <- %x]\n", reg, v);
+ printf("[r%d <- %x]\n", reg, v);
);
if (reg != 0)
eframe[EF_R0 + reg] = v;