From 0210029b617674d420e55dba5931baf0ea7b0e93 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Tue, 20 Mar 2018 15:45:33 +0000 Subject: 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@ --- sys/arch/mips64/mips64/db_machdep.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/arch/mips64') 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 -- cgit v1.2.3