Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Define ddb_regp only if MULTIPROCESSOR (NFC)



details:   https://anonhg.NetBSD.org/src/rev/9ef452593ece
branches:  trunk
changeset: 829797:9ef452593ece
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Feb 13 04:11:28 2018 +0000

description:
Define ddb_regp only if MULTIPROCESSOR (NFC)

diffstat:

 sys/arch/amd64/amd64/db_interface.c |  8 ++++++--
 sys/arch/i386/i386/db_interface.c   |  8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diffs (76 lines):

diff -r 8b25b9fc36dc -r 9ef452593ece sys/arch/amd64/amd64/db_interface.c
--- a/sys/arch/amd64/amd64/db_interface.c       Tue Feb 13 04:10:41 2018 +0000
+++ b/sys/arch/amd64/amd64/db_interface.c       Tue Feb 13 04:11:28 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.30 2018/02/13 04:10:41 ozaki-r Exp $        */
+/*     $NetBSD: db_interface.c,v 1.31 2018/02/13 04:11:28 ozaki-r Exp $        */
 
 /*
  * Mach Operating System
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.30 2018/02/13 04:10:41 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.31 2018/02/13 04:11:28 ozaki-r Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -68,7 +68,9 @@
 
 int    db_active = 0;
 db_regs_t ddb_regs;    /* register state */
+#ifdef MULTIPROCESSOR
 db_regs_t *ddb_regp = NULL;
+#endif
 
 void db_mach_cpu (db_expr_t, bool, db_expr_t, const char *);
 
@@ -244,7 +246,9 @@
 #endif
 
        *regs = ddb_regs;
+#ifdef MULTIPROCESSOR
        ddb_regp = NULL;
+#endif
 
        return (1);
 }
diff -r 8b25b9fc36dc -r 9ef452593ece sys/arch/i386/i386/db_interface.c
--- a/sys/arch/i386/i386/db_interface.c Tue Feb 13 04:10:41 2018 +0000
+++ b/sys/arch/i386/i386/db_interface.c Tue Feb 13 04:11:28 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.79 2018/02/13 04:10:41 ozaki-r Exp $        */
+/*     $NetBSD: db_interface.c,v 1.80 2018/02/13 04:11:28 ozaki-r Exp $        */
 
 /*
  * Mach Operating System
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.79 2018/02/13 04:10:41 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.80 2018/02/13 04:11:28 ozaki-r Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -73,7 +73,9 @@
 
 int    db_active = 0;
 db_regs_t ddb_regs;    /* register state */
+#ifdef MULTIPROCESSOR
 db_regs_t *ddb_regp = NULL;
+#endif
 
 void db_mach_cpu (db_expr_t, bool, db_expr_t, const char *);
 
@@ -279,7 +281,9 @@
                regs->tf_ss     = ddb_regs.tf_ss;
        }
 
+#ifdef MULTIPROCESSOR
        ddb_regp = NULL;
+#endif
 
        return (1);
 }



Home | Main Index | Thread Index | Old Index