Module Name: src
Committed By: kre
Date: Sat Feb 10 11:50:39 UTC 2018
Modified Files:
src/sys/arch/i386/i386: db_interface.c
Log Message:
Do for i386 what was done for amd64 (but in a more KNF conformant way...)
To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/arch/i386/i386/db_interface.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/i386/db_interface.c
diff -u src/sys/arch/i386/i386/db_interface.c:1.77 src/sys/arch/i386/i386/db_interface.c:1.78
--- src/sys/arch/i386/i386/db_interface.c:1.77 Fri Feb 9 09:36:42 2018
+++ src/sys/arch/i386/i386/db_interface.c Sat Feb 10 11:50:39 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.77 2018/02/09 09:36:42 maxv Exp $ */
+/* $NetBSD: db_interface.c,v 1.78 2018/02/10 11:50:39 kre Exp $ */
/*
* Mach Operating System
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.77 2018/02/09 09:36:42 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.78 2018/02/10 11:50:39 kre Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -195,7 +195,9 @@ int
kdb_trap(int type, int code, db_regs_t *regs)
{
int s, flags;
+#ifdef MULTIPROCESSOR
db_regs_t dbreg;
+#endif
flags = regs->tf_err & TC_FLAGMASK;
regs->tf_err &= ~TC_FLAGMASK;