Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc powerpc/ddb: Fix one more load to u...
details: https://anonhg.NetBSD.org/src/rev/6cc10547f570
branches: trunk
changeset: 374246:6cc10547f570
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Apr 13 06:39:23 2023 +0000
description:
powerpc/ddb: Fix one more load to use db_read_bytes.
Fix some typos in crash(8) comments too.
XXX pullup-8
XXX pullup-9
XXX pullup-10
diffstat:
sys/arch/powerpc/powerpc/db_trace.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (53 lines):
diff -r d185299fa2ab -r 6cc10547f570 sys/arch/powerpc/powerpc/db_trace.c
--- a/sys/arch/powerpc/powerpc/db_trace.c Wed Apr 12 19:47:41 2023 +0000
+++ b/sys/arch/powerpc/powerpc/db_trace.c Thu Apr 13 06:39:23 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.62 2023/04/12 19:47:41 riastradh Exp $ */
+/* $NetBSD: db_trace.c,v 1.63 2023/04/13 06:39:23 riastradh Exp $ */
/* $OpenBSD: db_trace.c,v 1.3 1997/03/21 02:10:48 niklas Exp $ */
/*
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.62 2023/04/12 19:47:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.63 2023/04/13 06:39:23 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_ppcarch.h"
@@ -188,7 +188,7 @@ db_stack_trace_print(db_expr_t addr, boo
}
}
(*pr)("lid %d ", R(&l->l_lid));
- pcb = lwp_getpcb(l);
+ pcb = R(&l->l_addr); /* lwp_getpcb */
frame = (db_addr_t)R(&pcb->pcb_sp);
(*pr)("at %p\n", frame);
} else
@@ -215,7 +215,7 @@ db_stack_trace_print(db_expr_t addr, boo
(*pr)("0x%08lx: ", frame);
if (lr + 4 == (db_addr_t) trapexit ||
-#if !defined(_KERNEL) || defined(PPC_BOOKE) /* XXX crash(*) */
+#if !defined(_KERNEL) || defined(PPC_BOOKE) /* XXX crash(8) */
lr + 4 == (db_addr_t) intrcall ||
#endif
lr + 4 == (db_addr_t) sctrapexit) {
@@ -230,14 +230,14 @@ db_stack_trace_print(db_expr_t addr, boo
}
switch (R(&tf->tf_exc)) {
case EXC_DSI:
-#ifdef PPC_OEA /* XXX crash(*) */
+#ifdef PPC_OEA /* XXX crash(8) */
(*pr)("DSI %s trap @ %#x by ",
(R(&tf->tf_dsisr) & DSISR_STORE
? "write"
: "read"),
R(&tf->tf_dar));
#endif
-#ifdef PPC_IBM4XX /* XXX crash(*) */
+#ifdef PPC_IBM4XX /* XXX crash(8) */
trapstr = "DSI";
dsi:
(*pr)("%s %s trap @ %#x by ", trapstr,
Home |
Main Index |
Thread Index |
Old Index