Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc Fix building crash(8) on sparc after uf...



details:   https://anonhg.NetBSD.org/src/rev/04e414f16d46
branches:  trunk
changeset: 840450:04e414f16d46
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Apr 06 16:22:01 2019 +0000

description:
Fix building crash(8) on sparc after ufetch / ustore changes.

diffstat:

 sys/arch/sparc/sparc/db_trace.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r b4dc1a9603c0 -r 04e414f16d46 sys/arch/sparc/sparc/db_trace.c
--- a/sys/arch/sparc/sparc/db_trace.c   Sat Apr 06 15:52:35 2019 +0000
+++ b/sys/arch/sparc/sparc/db_trace.c   Sat Apr 06 16:22:01 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_trace.c,v 1.36 2019/04/06 03:06:27 thorpej Exp $ */
+/*     $NetBSD: db_trace.c,v 1.37 2019/04/06 16:22:01 thorpej Exp $ */
 
 /*
  * Mach Operating System
@@ -27,11 +27,12 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.36 2019/04/06 03:06:27 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.37 2019/04/06 16:22:01 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
 #include <sys/cpu.h>
+#include <sys/systm.h>
 
 #include <machine/db_machdep.h>
 
@@ -51,6 +52,7 @@
 #define ONINTSTACK(fr) (0)
 #endif
 
+#ifdef _KERNEL
 static db_addr_t
 db_fetch_word(const void *uaddr)
 {
@@ -60,6 +62,7 @@
                val = (u_int)-1;
        return val;
 }
+#endif /* _KERNEL */
 
 void
 db_stack_trace_print(db_expr_t addr, bool have_addr,



Home | Main Index | Thread Index | Old Index