Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha Print the stack pointer on a user unali...



details:   https://anonhg.NetBSD.org/src/rev/59aaa3d4521e
branches:  trunk
changeset: 512897:59aaa3d4521e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Jul 18 22:22:02 2001 +0000

description:
Print the stack pointer on a user unaligned access fault.

diffstat:

 sys/arch/alpha/alpha/trap.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r d1a1b426c338 -r 59aaa3d4521e sys/arch/alpha/alpha/trap.c
--- a/sys/arch/alpha/alpha/trap.c       Wed Jul 18 21:54:56 2001 +0000
+++ b/sys/arch/alpha/alpha/trap.c       Wed Jul 18 22:22:02 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.76 2001/07/14 05:48:45 thorpej Exp $ */
+/* $NetBSD: trap.c,v 1.77 2001/07/18 22:22:02 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -99,7 +99,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.76 2001/07/14 05:48:45 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.77 2001/07/18 22:22:02 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -904,10 +904,12 @@
         */
        if (doprint) {
                uprintf(
-               "pid %d (%s): unaligned access: va=0x%lx pc=0x%lx ra=0x%lx op=",
+               "pid %d (%s): unaligned access: "
+               "va=0x%lx pc=0x%lx ra=0x%lx sp=0x%lx op=",
                    p->p_pid, p->p_comm, va,
                    p->p_md.md_tf->tf_regs[FRAME_PC] - 4,
-                   p->p_md.md_tf->tf_regs[FRAME_RA]);
+                   p->p_md.md_tf->tf_regs[FRAME_RA],
+                   p->p_md.md_tf->tf_regs[FRAME_SP]);
                uprintf(selected_tab->type,opcode);
                uprintf("\n");
        }



Home | Main Index | Thread Index | Old Index