Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/m68k/m68k curlwp is only available for ifdef _KERNEL.



details:   https://anonhg.NetBSD.org/src/rev/ace50c31d9e0
branches:  trunk
changeset: 368673:ace50c31d9e0
user:      chs <chs%NetBSD.org@localhost>
date:      Tue Jul 26 16:51:42 2022 +0000

description:
curlwp is only available for ifdef _KERNEL.

diffstat:

 sys/arch/m68k/m68k/db_trace.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r fb56cee6f924 -r ace50c31d9e0 sys/arch/m68k/m68k/db_trace.c
--- a/sys/arch/m68k/m68k/db_trace.c     Tue Jul 26 16:08:33 2022 +0000
+++ b/sys/arch/m68k/m68k/db_trace.c     Tue Jul 26 16:51:42 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_trace.c,v 1.60 2022/07/25 01:59:26 chs Exp $        */
+/*     $NetBSD: db_trace.c,v 1.61 2022/07/26 16:51:42 chs Exp $        */
 
 /* 
  * Mach Operating System
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.60 2022/07/25 01:59:26 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.61 2022/07/26 16:51:42 chs Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -418,7 +418,9 @@
                }
        }
 
+#ifdef _KERNEL
        l = curlwp;
+#endif
        if (!have_addr)
                stacktop(&ddb_regs, &pos, pr);
        else {
@@ -550,7 +552,7 @@
                else
                        (*pr)(") + %lx\n", val);
 
-#if _KERNEL
+#ifdef _KERNEL
                /*
                 * Stop tracing if frame ptr no longer points into kernel
                 * stack.



Home | Main Index | Thread Index | Old Index