1*54405Storek/* 2*54405Storek * Copyright (c) 1992 The Regents of the University of California. 3*54405Storek * All rights reserved. 4*54405Storek * 5*54405Storek * This software was developed by the Computer Systems Engineering group 6*54405Storek * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 7*54405Storek * contributed to Berkeley. 8*54405Storek * 9*54405Storek * %sccs.include.redist.c% 10*54405Storek * 11*54405Storek * from: $Header: fork.s,v 1.1 91/07/06 13:05:58 torek Exp $ 12*54405Storek */ 13*54405Storek 14*54405Storek#if defined(LIBC_SCCS) && !defined(lint) 15*54405Storek .asciz "@(#)fork.s 5.1 (Berkeley) 06/25/92" 16*54405Storek#endif /* LIBC_SCCS and not lint */ 17*54405Storek 18*54405Storek#include "SYS.h" 19*54405Storek 20*54405StorekSYSCALL(fork) 21*54405Storek dec %o1 ! from 1 to 0 in child, 0 to -1 in parent 22*54405Storek retl 23*54405Storek and %o0, %o1, %o0 ! return 0 in child, pid in parent 24