/* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. * * %sccs.include.redist.c% */ #if defined(SYSLIBC_SCCS) && !defined(lint) .asciz "@(#)fork.s 5.4 (Berkeley) %G%" #endif /* SYSLIBC_SCCS and not lint */ #include "SYS.h" SYSCALL(fork) bitl $1,r1 beql 1f # parent, since r1 == 0 in parent, 1 in child clrl r0 1: ret # pid = fork()