summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-03-30 07:45:22 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-03-30 07:45:22 +0000
commit41e935544961ef41fa59e2c78fb6c31dfdcaecbe (patch)
tree29e8daafdae5500718e53680b5e70ff46ca9a098 /sys/arch/sparc64
parentd75ffb62d682420b80696a36a3ef66b720266e66 (diff)
Bring back an inline db_enter(), which makes backtraces easier to grok
when sh*t hits the fan; per kettenis@ request and forgotten in previous cleaning commit.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/pmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c
index c7702065296..50c0a8fe975 100644
--- a/sys/arch/sparc64/sparc64/pmap.c
+++ b/sys/arch/sparc64/sparc64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.116 2024/03/29 21:27:53 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.117 2024/03/30 07:45:21 miod Exp $ */
/* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */
/*
*
@@ -51,6 +51,7 @@
#ifdef DDB
#include <machine/db_machdep.h>
#include <ddb/db_output.h>
+#define db_enter() __asm volatile("ta 1; nop")
#else
#define db_enter()
#endif