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 Calculate what sp would have been and s...



details:   https://anonhg.NetBSD.org/src/rev/a6f6a7f31e12
branches:  trunk
changeset: 473366:a6f6a7f31e12
user:      ross <ross%NetBSD.org@localhost>
date:      Mon May 31 06:41:39 1999 +0000

description:
Calculate what sp would have been and save it in otherwise-unused
FRAME_SP slot if entering ddb.

diffstat:

 sys/arch/alpha/alpha/debug.s |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r e6e000827659 -r a6f6a7f31e12 sys/arch/alpha/alpha/debug.s
--- a/sys/arch/alpha/alpha/debug.s      Mon May 31 06:38:16 1999 +0000
+++ b/sys/arch/alpha/alpha/debug.s      Mon May 31 06:41:39 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: debug.s,v 1.1 1999/04/20 21:09:49 thorpej Exp $ */
+/* $NetBSD: debug.s,v 1.2 1999/05/31 06:41:39 ross Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -69,6 +69,8 @@
 NESTED_NOPROFILE(alpha_debug, 5, 32, ra, IM_RA|IM_S0, 0)
        br      pv, Ldbg1
 Ldbg1: LDGP(pv)
+       lda     t0, FRAME_SIZE*8(a4)    /* what would sp have been? */
+       stq     t0, FRAME_SP*8(a4)      /* belatedly save sp for ddb view */
        lda     sp, -32(sp)             /* set up stack frame */
        stq     ra, (32-8)(sp)          /* save ra */
        stq     s0, (32-16)(sp)         /* save s0 */



Home | Main Index | Thread Index | Old Index