* Copyright (c) 1991 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
ASMSTR("@(#)Ovfork.s 5.1 (Berkeley) %G%")
#endif /* LIBC_SCCS and not lint */
* v1 == 0 in parent process, v1 == 1 in child process.
* v0 == pid of child in parent, v0 == pid of parent in child.
li v0, SYS_vfork # system call number for vfork
beq a3, zero, 1f # jump if no errors
beq v1, zero, 2f # parent process ?
move v0, zero # return zero in child