Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/hppa/sys Rename curbrk to __curbrk, and make i...



details:   https://anonhg.NetBSD.org/src/rev/5e037305824e
branches:  trunk
changeset: 971951:5e037305824e
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun May 10 14:34:31 2020 +0000

description:
Rename curbrk to __curbrk, and make it and __minbrk hidden

diffstat:

 lib/libc/arch/hppa/sys/brk.S  |  16 +++++++++-------
 lib/libc/arch/hppa/sys/sbrk.S |  25 +++++++++++++------------
 2 files changed, 22 insertions(+), 19 deletions(-)

diffs (110 lines):

diff -r c2aca2e35914 -r 5e037305824e lib/libc/arch/hppa/sys/brk.S
--- a/lib/libc/arch/hppa/sys/brk.S      Sun May 10 14:05:59 2020 +0000
+++ b/lib/libc/arch/hppa/sys/brk.S      Sun May 10 14:34:31 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: brk.S,v 1.8 2020/05/05 06:20:55 skrll Exp $    */
+/*     $NetBSD: brk.S,v 1.9 2020/05/10 14:34:31 skrll Exp $    */
 
 /*     $OpenBSD: brk.S,v 1.7 2001/06/04 23:14:04 mickey Exp $  */
 
@@ -31,10 +31,11 @@
 #include "SYS.h"
 
 #if defined(LIBC_SCCS) && !defined(lint)
-       RCSID("$NetBSD: brk.S,v 1.8 2020/05/05 06:20:55 skrll Exp $")
+       RCSID("$NetBSD: brk.S,v 1.9 2020/05/10 14:34:31 skrll Exp $")
 #endif /* LIBC_SCCS and not lint */
 
-       .import curbrk, data
+       .import __curbrk, data
+       .hidden __curbrk
        .global _end
 
 #ifdef WEAK_ALIAS
@@ -43,6 +44,7 @@
 
        .data
        .export __minbrk, data
+       .hidden __minbrk
 __minbrk:
        .long   _end
 
@@ -63,14 +65,14 @@
 
        ldw     HPPA_FRAME_ARG(0)(%sp), %arg0
 #ifdef __PIC__
-       addil   LT%curbrk, %r19
-       ldw     RT%curbrk(%r1), %r1
+       addil   LT%__curbrk, %r19
+       ldw     RT%__curbrk(%r1), %r1
        bv      %r0(%rp)
         stw    %arg0, 0(%r1)
 #else  /* !__PIC__ */
-       ldil    L%curbrk, %t1
+       ldil    L%__curbrk, %t1
        bv      %r0(%rp)
-        stw    %arg0, R%curbrk(%t1)
+        stw    %arg0, R%__curbrk(%t1)
 #endif /* !__PIC__ */
 EXIT(brk)
 
diff -r c2aca2e35914 -r 5e037305824e lib/libc/arch/hppa/sys/sbrk.S
--- a/lib/libc/arch/hppa/sys/sbrk.S     Sun May 10 14:05:59 2020 +0000
+++ b/lib/libc/arch/hppa/sys/sbrk.S     Sun May 10 14:34:31 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbrk.S,v 1.7 2020/05/05 06:20:55 skrll Exp $   */
+/*     $NetBSD: sbrk.S,v 1.8 2020/05/10 14:34:31 skrll Exp $   */
 
 /*     $OpenBSD: sbrk.S,v 1.7 2001/06/04 23:14:04 mickey Exp $ */
 
@@ -31,7 +31,7 @@
 #include "SYS.h"
 
 #if defined(LIBC_SCCS) && !defined(lint)
-       RCSID("$NetBSD: sbrk.S,v 1.7 2020/05/05 06:20:55 skrll Exp $")
+       RCSID("$NetBSD: sbrk.S,v 1.8 2020/05/10 14:34:31 skrll Exp $")
 #endif /* LIBC_SCCS and not lint */
 
        .global _end
@@ -41,18 +41,19 @@
 #endif
 
        .data
-       .export curbrk, data
-curbrk:
+       .export __curbrk, data
+       .hidden __curbrk
+__curbrk:
        .long   _end
 
 ENTRY(_sbrk,0)
 #ifdef __PIC__
-       addil   LT%curbrk, %r19
-       ldw     RT%curbrk(%r1), %r1
+       addil   LT%__curbrk, %r19
+       ldw     RT%__curbrk(%r1), %r1
        ldw     0(%r1), %t2
 #else  /* !__PIC__ */
-       ldil    L%curbrk, %t1
-       ldw     R%curbrk(%t1), %t2
+       ldil    L%__curbrk, %t1
+       ldw     R%__curbrk(%t1), %t2
 #endif /* !__PIC__ */
        add     %arg0, %t2, %arg0
        stw     %arg0, HPPA_FRAME_ARG(0)(%sp)
@@ -60,11 +61,11 @@
        SYSCALL(break)
 
 #ifdef __PIC__
-       addil   LT%curbrk, %r19
-       ldw     RT%curbrk(%r1), %r1
+       addil   LT%__curbrk, %r19
+       ldw     RT%__curbrk(%r1), %r1
 #else  /* !__PIC__ */
-       ldil    L%curbrk, %t1
-       ldo     R%curbrk(%t1), %r1
+       ldil    L%__curbrk, %t1
+       ldo     R%__curbrk(%t1), %r1
 #endif /* !__PIC__ */
        ldw     0(%r1), %ret0
        ldw     HPPA_FRAME_ARG(0)(%sp), %arg0



Home | Main Index | Thread Index | Old Index