summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-04-20 14:13:01 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-04-20 14:13:01 +0000
commita286e01bcdb694af72cc68023f8b8fe54cb7265b (patch)
tree700efd869ef7cca1e0b59b9a9310acbe988c288b /sys/arch/amd64
parentda85a125dd7fd9af53b0919887129daaf4fa53bb (diff)
Tweak lock inits to make the system runnable with witness(4)
on amd64 and i386.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/db_interface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/db_interface.c b/sys/arch/amd64/amd64/db_interface.c
index b5220d4bed9..c4050f84b97 100644
--- a/sys/arch/amd64/amd64/db_interface.c
+++ b/sys/arch/amd64/amd64/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.26 2017/03/03 20:49:47 bluhm Exp $ */
+/* $OpenBSD: db_interface.c,v 1.27 2017/04/20 14:13:00 visa Exp $ */
/* $NetBSD: db_interface.c,v 1.1 2003/04/26 18:39:27 fvdl Exp $ */
/*
@@ -70,7 +70,8 @@ extern char *trap_type[];
extern int trap_types;
#ifdef MULTIPROCESSOR
-struct mutex ddb_mp_mutex = MUTEX_INITIALIZER(IPL_HIGH);
+struct mutex ddb_mp_mutex =
+ MUTEX_INITIALIZER_FLAGS(IPL_HIGH, "ddb_mp_mutex", MTX_NOWITNESS);
volatile int ddb_state = DDB_STATE_NOT_RUNNING;
volatile cpuid_t ddb_active_cpu;
boolean_t db_switch_cpu;