Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Relax test for valid stack frame ad...



details:   https://anonhg.NetBSD.org/src/rev/ebd897554088
branches:  trunk
changeset: 451418:ebd897554088
user:      martin <martin%NetBSD.org@localhost>
date:      Wed May 22 04:17:39 2019 +0000

description:
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.

diffstat:

 sys/arch/sparc64/sparc64/db_trace.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 336a53d5bc4f -r ebd897554088 sys/arch/sparc64/sparc64/db_trace.c
--- a/sys/arch/sparc64/sparc64/db_trace.c       Wed May 22 02:25:28 2019 +0000
+++ b/sys/arch/sparc64/sparc64/db_trace.c       Wed May 22 04:17:39 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.51 2019/05/22 04:17:39 martin 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.51 2019/05/22 04:17:39 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -163,7 +163,7 @@
                if (kernel_only) {
                        if (pc < KERNBASE || pc >= KERNEND)
                                break;
-                       if (frame < KERNBASE || frame >= EINTSTACK)
+                       if (frame < KERNBASE || frame >= KERNEND)
                                break;
                } else {
                        if (frame == 0 || frame == (vaddr_t)-1)



Home | Main Index | Thread Index | Old Index