xref: /original-bsd/lib/libc/tahoe/sys/fork.s (revision c3e32dec)
1/*
2 * Copyright (c) 1983, 1993
3 *	The Regents of the University of California.  All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 */
7
8#if defined(SYSLIBC_SCCS) && !defined(lint)
9	.asciz "@(#)fork.s	8.1 (Berkeley) 06/04/93"
10#endif /* SYSLIBC_SCCS and not lint */
11
12#include "SYS.h"
13
14SYSCALL(fork)
15	bitl	$1,r1
16	beql	1f	# parent, since r1 == 0 in parent, 1 in child
17	clrl	r0
181:
19	ret		# pid = fork()
20