summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorkleink <kleink@NetBSD.org>2000-07-04 07:37:33 +0000
committerkleink <kleink@NetBSD.org>2000-07-04 07:37:33 +0000
commitde9e80b40f35dbb30eeff5035b034fa59b50fede (patch)
tree63f88c3fb899844ffe8483a900c2775712866b00 /lib/libc
parent4216064847bc0eb6ae24dd8d41fdc1c07d8d94ce (diff)
Missed in previous: replace the previously used _brk label with an ordinary
local label; problem noticed by Matthias Drochner.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/mips/sys/brk.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/arch/mips/sys/brk.S b/lib/libc/arch/mips/sys/brk.S
index d4eeeb5507c..6622c773de2 100644
--- a/lib/libc/arch/mips/sys/brk.S
+++ b/lib/libc/arch/mips/sys/brk.S
@@ -1,4 +1,4 @@
-/* $NetBSD: brk.S,v 1.11 2000/06/26 06:25:41 kleink Exp $ */
+/* $NetBSD: brk.S,v 1.12 2000/07/04 07:37:33 kleink Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -40,7 +40,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
ASMSTR("from: @(#)brk.s 8.1 (Berkeley) 6/4/93")
- ASMSTR("$NetBSD: brk.S,v 1.11 2000/06/26 06:25:41 kleink Exp $")
+ ASMSTR("$NetBSD: brk.S,v 1.12 2000/07/04 07:37:33 kleink Exp $")
#endif /* LIBC_SCCS and not lint */
#ifdef ABICALLS
@@ -67,16 +67,16 @@ LEAF(_brk)
.set reorder
#endif
lw v0, _C_LABEL(__minbrk)
- bgeu a0, v0, _C_LABEL(_brk)
+ bgeu a0, v0, 1f
move a0, v0 # dont allow break < minbrk
-ALEAF(_brk)
+1:
li v0, SYS_break
syscall
- bne a3, zero, 1f
+ bne a3, zero, 2f
sw a0, _C_LABEL(__curbrk)
move v0, zero
j ra
-1:
+2:
la t9, _C_LABEL(__cerror)
jr t9
END(brk)