Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/sparc64/string Offset the %i2 stack slot from ...



details:   https://anonhg.NetBSD.org/src/rev/85cb4081b4d1
branches:  trunk
changeset: 495240:85cb4081b4d1
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Mon Jul 24 15:36:49 2000 +0000

description:
Offset the %i2 stack slot from %sp, not %fp.  Otherwise we may modify the
caller's registers!

diffstat:

 lib/libc/arch/sparc64/string/bzero.S |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 9a8895f5e2bb -r 85cb4081b4d1 lib/libc/arch/sparc64/string/bzero.S
--- a/lib/libc/arch/sparc64/string/bzero.S      Mon Jul 24 15:32:43 2000 +0000
+++ b/lib/libc/arch/sparc64/string/bzero.S      Mon Jul 24 15:36:49 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bzero.S,v 1.6 2000/07/24 15:24:55 mycroft Exp $        */
+/*     $NetBSD: bzero.S,v 1.7 2000/07/24 15:36:49 mycroft Exp $        */
 
 /*
  * Copyright (c) 1992, 1993, 1999
@@ -51,7 +51,7 @@
 #if 0
        .asciz "@(#)bzero.s     8.1 (Berkeley) 6/4/93"
 #else
-       RCSID("$NetBSD: bzero.S,v 1.6 2000/07/24 15:24:55 mycroft Exp $")
+       RCSID("$NetBSD: bzero.S,v 1.7 2000/07/24 15:36:49 mycroft Exp $")
 #endif
 #endif  /* LIBC_SCCS and not lint */
 
@@ -218,9 +218,9 @@
         dec    8, %i1
 
 2:
-       stx     %i2, [%fp + BIAS + 0x50]                ! Flush this puppy to RAM
+       stx     %i2, [%sp + BIAS + 0x50]                ! Flush this puppy to RAM
        membar  #StoreLoad
-       ldd     [%fp + BIAS + 0x50], %f0
+       ldd     [%sp + BIAS + 0x50], %f0
 
        fmovda  %icc, %f0, %f2                          ! Duplicate the pattern
        fmovda  %icc, %f0, %f4



Home | Main Index | Thread Index | Old Index