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/sys Pull up revs. 1.4-1.5 (approv...



details:   https://anonhg.NetBSD.org/src/rev/d473a2fcdb40
branches:  netbsd-1-5
changeset: 489188:d473a2fcdb40
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Aug 22 07:26:44 2000 +0000

description:
Pull up revs. 1.4-1.5 (approved by thorpej):
Add internal names for brk(), sbrk() and fork().

diffstat:

 lib/libc/arch/sparc64/sys/brk.S |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (46 lines):

diff -r 1018c1300b0c -r d473a2fcdb40 lib/libc/arch/sparc64/sys/brk.S
--- a/lib/libc/arch/sparc64/sys/brk.S   Tue Aug 22 07:25:27 2000 +0000
+++ b/lib/libc/arch/sparc64/sys/brk.S   Tue Aug 22 07:26:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: brk.S,v 1.3.10.2 2000/07/27 05:12:45 mycroft Exp $     */
+/*     $NetBSD: brk.S,v 1.3.10.3 2000/08/22 07:26:44 kleink Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -44,7 +44,7 @@
 #if 0
        .asciz "@(#)brk.s       8.1 (Berkeley) 6/4/93"
 #else
-       RCSID("$NetBSD: brk.S,v 1.3.10.2 2000/07/27 05:12:45 mycroft Exp $")
+       RCSID("$NetBSD: brk.S,v 1.3.10.3 2000/08/22 07:26:44 kleink Exp $")
 #endif
 #endif /* SYSLIBC_SCCS and not lint */
 
@@ -54,14 +54,18 @@
        .globl  _C_LABEL(__minbrk)
        .globl  _C_LABEL(_end)
 
+#ifdef WEAK_ALIAS
+WEAK_ALIAS(brk, _brk)
+#endif
+
        .data
        .align  8
 _C_LABEL(__minbrk):
        .xword  _C_LABEL(_end)          ! lower brk limit; also for gmon code
        .text
 
+ENTRY(_brk)
 #ifdef PIC
-ENTRY(brk)
        PIC_PROLOGUE(%o5,%o4)
        set     _C_LABEL(__minbrk), %o4
        ldx     [%o5 + %o4], %o4
@@ -79,7 +83,6 @@
        retl                            ! success, return 0 & record new break
         stx    %o2, [%o4]
 #else
-ENTRY(brk)
        sethi   %hi(_C_LABEL(__minbrk)), %o1    ! %o1 = minbrk
        ldx     [%o1 + %lo(_C_LABEL(__minbrk))], %o1
        cmp     %o1, %o0                ! if (minbrk > %o0)



Home | Main Index | Thread Index | Old Index