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 Fix missing piece of the prev...
details: https://anonhg.NetBSD.org/src/rev/3239393db91a
branches: netbsd-1-5
changeset: 488770:3239393db91a
user: mycroft <mycroft%NetBSD.org@localhost>
date: Thu Jul 27 05:12:45 2000 +0000
description:
Fix missing piece of the previous pullup.
diffstat:
lib/libc/arch/sparc64/sys/brk.S | 35 +++++++++++++++++------------------
1 files changed, 17 insertions(+), 18 deletions(-)
diffs (77 lines):
diff -r 08e6362e76ca -r 3239393db91a lib/libc/arch/sparc64/sys/brk.S
--- a/lib/libc/arch/sparc64/sys/brk.S Thu Jul 27 02:46:49 2000 +0000
+++ b/lib/libc/arch/sparc64/sys/brk.S Thu Jul 27 05:12:45 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: brk.S,v 1.3.10.1 2000/07/26 23:55:00 mycroft Exp $ */
+/* $NetBSD: brk.S,v 1.3.10.2 2000/07/27 05:12:45 mycroft 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.1 2000/07/26 23:55:00 mycroft Exp $")
+ RCSID("$NetBSD: brk.S,v 1.3.10.2 2000/07/27 05:12:45 mycroft Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
@@ -55,24 +55,25 @@
.globl _C_LABEL(_end)
.data
+ .align 8
_C_LABEL(__minbrk):
- .long _C_LABEL(_end) ! lower brk limit; also for gmon code
+ .xword _C_LABEL(_end) ! lower brk limit; also for gmon code
.text
#ifdef PIC
ENTRY(brk)
PIC_PROLOGUE(%o5,%o4)
- ld [%o5 + _C_LABEL(__minbrk)], %o4
- ld [%o4], %o1 ! %o1 = minbrk
+ set _C_LABEL(__minbrk), %o4
+ ldx [%o5 + %o4], %o4
+ ldx [%o4], %o1 ! %o1 = minbrk
cmp %o1, %o0 ! if (minbrk > %o0)
- bg,a 0f
- mov %o1, %o0 ! %o0 = minbrk
-0:
+ movg %xcc, %o1, %o0 ! %o0 = minbrk
mov %o0, %o2 ! save argument to syscall
mov SYS_break, %g1
t ST_SYSCALL
- bcc,a 1f
- ld [%o5 + _C_LABEL(__curbrk)], %o4
+ set _C_LABEL(__curbrk), %o3
+ bcc,a,pt %icc, 1f
+ ldx [%o5 + %o3], %o4
ERROR()
1:
retl ! success, return 0 & record new break
@@ -80,18 +81,16 @@
#else
ENTRY(brk)
sethi %hi(_C_LABEL(__minbrk)), %o1 ! %o1 = minbrk
- ld [%o1 + %lo(_C_LABEL(__minbrk))], %o1
- cmp %o1, %o0 ! if (minbrk > %o0)
- bg,a 0f
- mov %o1, %o0 ! %o0 = minbrk
-0:
- mov %o0, %o2 ! save argument to syscall
+ ldx [%o1 + %lo(_C_LABEL(__minbrk))], %o1
+ cmp %o1, %o0 ! if (minbrk > %o0)
+ movg %xcc, %o1, %o0 ! %o0 = minbrk
+ mov %o0, %o2 ! save argument to syscall
mov SYS_break, %g1
t ST_SYSCALL
- bcc,a 1f
+ bcc,a,pt %icc,1f
sethi %hi(_C_LABEL(__curbrk)), %g1
ERROR()
1:
retl ! success, return 0 & record new break
- st %o2, [%g1 + %lo(_C_LABEL(__curbrk))]
+ stx %o2, [%g1 + %lo(_C_LABEL(__curbrk))]
#endif
Home |
Main Index |
Thread Index |
Old Index