Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/arch/sparc64/sparc64 Pull up following revision(s) (r...
details: https://anonhg.NetBSD.org/src/rev/7a38adb1eff0
branches: netbsd-8
changeset: 451699:7a38adb1eff0
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri May 31 02:48:41 2019 +0000
description:
Pull up following revision(s) (requested by martin in ticket #1274):
sys/arch/sparc64/sparc64/db_trace.c: revision 1.51
sys/arch/sparc64/sparc64/db_trace.c: revision 1.52
sys/arch/sparc64/sparc64/db_trace.c: revision 1.53
Relax test for valid stack frame address (now that we have multiple kernel
stacks since ... a long time). Just test for a valid kernel VA, using
the same test as for "pc".
Very close to a patch suggested by Tobias Ulmer in PR port-sparc64/54221.
Fix previous and use the original patch from PR port-sparc64/54221
instead (XXX should fix comments in param.h)
Add missing include to fix the crash(8) build, from Tobias Ulmer, PR port-sparc64/54221
diffstat:
sys/arch/sparc64/sparc64/db_trace.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 7aa472b06c4b -r 7a38adb1eff0 sys/arch/sparc64/sparc64/db_trace.c
--- a/sys/arch/sparc64/sparc64/db_trace.c Wed May 29 16:03:30 2019 +0000
+++ b/sys/arch/sparc64/sparc64/db_trace.c Fri May 31 02:48:41 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.50 2013/03/04 20:17:46 christos Exp $ */
+/* $NetBSD: db_trace.c,v 1.50.30.1 2019/05/31 02:48:41 msaitoh Exp $ */
/*
* Copyright (c) 1996-2002 Eduardo Horvath. All rights reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.50 2013/03/04 20:17:46 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.50.30.1 2019/05/31 02:48:41 msaitoh Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -36,6 +36,7 @@
#include <sys/systm.h>
#include <machine/db_machdep.h>
#include <machine/ctlreg.h>
+#include <machine/vmparam.h>
#include <ddb/db_access.h>
#include <ddb/db_proc.h>
@@ -163,7 +164,7 @@
if (kernel_only) {
if (pc < KERNBASE || pc >= KERNEND)
break;
- if (frame < KERNBASE || frame >= EINTSTACK)
+ if (frame < KERNBASE || frame >= VM_MAX_KERNEL_ADDRESS)
break;
} else {
if (frame == 0 || frame == (vaddr_t)-1)
Home |
Main Index |
Thread Index |
Old Index