Source-Changes-HG archive

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

[src/netbsd-1-5]: src/lib/libc/arch/sparc64/string pull up rev 1.3 (approved ...



details:   https://anonhg.NetBSD.org/src/rev/970845fe83f6
branches:  netbsd-1-5
changeset: 488581:970845fe83f6
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jul 19 14:04:46 2000 +0000

description:
pull up rev 1.3 (approved by thorpej):
>Block align pointer *AFTER* fixing up possible stack bias.

diffstat:

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

diffs (30 lines):

diff -r fdc33f64bfb3 -r 970845fe83f6 lib/libc/arch/sparc64/string/bzero.S
--- a/lib/libc/arch/sparc64/string/bzero.S      Wed Jul 19 14:02:27 2000 +0000
+++ b/lib/libc/arch/sparc64/string/bzero.S      Wed Jul 19 14:04:46 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bzero.S,v 1.2 1999/12/30 15:31:39 eeh Exp $    */
+/*     $NetBSD: bzero.S,v 1.2.4.1 2000/07/19 14:04:46 mrg 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.2 1999/12/30 15:31:39 eeh Exp $")
+       RCSID("$NetBSD: bzero.S,v 1.2.4.1 2000/07/19 14:04:46 mrg Exp $")
 #endif
 #endif  /* LIBC_SCCS and not lint */
 
@@ -201,10 +201,10 @@
  */    
        save    %sp, -(CC64FSZ+32*8+BLOCK_SIZE), %sp    ! Allocate an fpstate
        add     %sp, (CC64FSZ+BLOCK_SIZE-1), %l0        ! Calculate pointer to fpstate
-       andn    %l0, BLOCK_ALIGN, %l0                   ! And make it block aligned
        btst    1, %sp
        add     %l0, BIAS, %l1                          ! Fixup 64-bit stack pointers
        movnz   %xcc, %l1, %l0
+       andn    %l0, BLOCK_ALIGN, %l0                   ! And make it block aligned
 
 !      wr      %g0, FPRS_FEF, %fprs                    ! Enable FPU
        stda    %f0, [%l0] ASI_BLK_P



Home | Main Index | Thread Index | Old Index