summaryrefslogtreecommitdiff
path: root/lib/libc/arch/mips/sys/Ovfork.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/mips/sys/Ovfork.S')
-rw-r--r--lib/libc/arch/mips/sys/Ovfork.S14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libc/arch/mips/sys/Ovfork.S b/lib/libc/arch/mips/sys/Ovfork.S
index 36b5e054c6c..5ea5d2d6827 100644
--- a/lib/libc/arch/mips/sys/Ovfork.S
+++ b/lib/libc/arch/mips/sys/Ovfork.S
@@ -38,9 +38,13 @@
#if defined(LIBC_SCCS) && !defined(lint)
ASMSTR("from: @(#)Ovfork.s 8.1 (Berkeley) 6/4/93")
- ASMSTR("$Id: Ovfork.S,v 1.1 1995/10/18 08:41:35 deraadt Exp $")
+ ASMSTR("$Id: Ovfork.S,v 1.2 1996/05/16 11:16:07 pefo Exp $")
#endif /* LIBC_SCCS and not lint */
+#ifdef ABICALLS
+ .abicalls
+#endif
+
/*
* pid = vfork();
*
@@ -49,10 +53,16 @@
*/
LEAF(vfork)
+#ifdef ABICALLS
+ .set noreorder
+ .cpload t9
+ .set reorder
+#endif
li v0, SYS_vfork # system call number for vfork
syscall
beq a3, zero, 1f # jump if no errors
- j _C_LABEL(cerror)
+ la t9, cerror
+ jr t9
1:
beq v1, zero, 2f # parent process ?
move v0, zero # return zero in child