summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2018-03-20 15:45:33 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2018-03-20 15:45:33 +0000
commit0210029b617674d420e55dba5931baf0ea7b0e93 (patch)
treea0945557fe9a31e9c8178f7f1c31f76c06a75a1d /sys/arch/mips64
parent1d6b51f805863eb722e8d1174b8790d6f97e1c0a (diff)
Do not panic from ddb(4) when a lock requirement isn't fulfilled.
Extend the logic already present for panic() to any DDB-related operation such that if ddb(4) is entered because of a fault or other trap it is still possible to call 'boot reboot'. While here stop printing splassert() messages as well, to not fill the buffer. ok visa@, deraadt@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/db_machdep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/db_machdep.c b/sys/arch/mips64/mips64/db_machdep.c
index 1c620160023..91f479b99b7 100644
--- a/sys/arch/mips64/mips64/db_machdep.c
+++ b/sys/arch/mips64/mips64/db_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_machdep.c,v 1.48 2017/08/26 15:21:48 visa Exp $ */
+/* $OpenBSD: db_machdep.c,v 1.49 2018/03/20 15:45:32 mpi Exp $ */
/*
* Copyright (c) 1998-2003 Opsycon AB (www.opsycon.se)
@@ -76,7 +76,6 @@ boolean_t db_switch_cpu;
long db_switch_to_cpu;
#endif
-int db_active = 0;
db_regs_t ddb_regs;
#ifdef MULTIPROCESSOR