Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 Do for i386 what was done for amd64 (but ...



details:   https://anonhg.NetBSD.org/src/rev/a42f0a2b4d4b
branches:  trunk
changeset: 359446:a42f0a2b4d4b
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Feb 10 11:50:39 2018 +0000

description:
Do for i386 what was done for amd64 (but in a more KNF conformant way...)

diffstat:

 sys/arch/i386/i386/db_interface.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 4330df546aa7 -r a42f0a2b4d4b sys/arch/i386/i386/db_interface.c
--- a/sys/arch/i386/i386/db_interface.c Sat Feb 10 08:54:22 2018 +0000
+++ b/sys/arch/i386/i386/db_interface.c Sat Feb 10 11:50:39 2018 +0000
@@ -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 @@
 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;



Home | Main Index | Thread Index | Old Index