diff options
| author | ozaki-r <ozaki-r@NetBSD.org> | 2018-02-13 04:11:28 +0000 |
|---|---|---|
| committer | ozaki-r <ozaki-r@NetBSD.org> | 2018-02-13 04:11:28 +0000 |
| commit | 190fac83df6e99dcbff76da1b8ad258dc9c6f0db (patch) | |
| tree | 946312dd474a47d233d0b3f2526fcac48625c00b | |
| parent | 25c3d37032e097456901362c975d973deb2e982d (diff) | |
Define ddb_regp only if MULTIPROCESSOR (NFC)
| -rw-r--r-- | sys/arch/amd64/amd64/db_interface.c | 8 | ||||
| -rw-r--r-- | sys/arch/i386/i386/db_interface.c | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/db_interface.c b/sys/arch/amd64/amd64/db_interface.c index 699e8b0fddf..7bb387d4ec1 100644 --- a/sys/arch/amd64/amd64/db_interface.c +++ b/sys/arch/amd64/amd64/db_interface.c @@ -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 @@ extern int trap_types; 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 @@ kdb_trap(int type, int code, db_regs_t *regs) #endif *regs = ddb_regs; +#ifdef MULTIPROCESSOR ddb_regp = NULL; +#endif return (1); } diff --git a/sys/arch/i386/i386/db_interface.c b/sys/arch/i386/i386/db_interface.c index 1ee3221ea80..e5fd014da14 100644 --- a/sys/arch/i386/i386/db_interface.c +++ b/sys/arch/i386/i386/db_interface.c @@ -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 @@ extern int trap_types; 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 @@ kdb_trap(int type, int code, db_regs_t *regs) regs->tf_ss = ddb_regs.tf_ss; } +#ifdef MULTIPROCESSOR ddb_regp = NULL; +#endif return (1); } |
