167117Sdfr/*- 267117Sdfr * Copyright (c) 2000 Doug Rabson 367117Sdfr * All rights reserved. 467117Sdfr * 567117Sdfr * Redistribution and use in source and binary forms, with or without 667117Sdfr * modification, are permitted provided that the following conditions 767117Sdfr * are met: 867117Sdfr * 1. Redistributions of source code must retain the above copyright 967117Sdfr * notice, this list of conditions and the following disclaimer. 1067117Sdfr * 2. Redistributions in binary form must reproduce the above copyright 1167117Sdfr * notice, this list of conditions and the following disclaimer in the 1267117Sdfr * documentation and/or other materials provided with the distribution. 1367117Sdfr * 1467117Sdfr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1567117Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1667117Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1767117Sdfr * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1867117Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1967117Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2067117Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2167117Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2267117Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2367117Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2467117Sdfr * SUCH DAMAGE. 2567117Sdfr */ 26111777Sobrien 27111777Sobrien#include <machine/asm.h> 28111777Sobrien__FBSDID("$FreeBSD$"); 29111777Sobrien 3067117Sdfr#include "SYS.h" 3167117Sdfr 3271770SdeischenSYSCALL(fork) 3384552Sdfr cmp.ne p7,p0=ret1,r0 /* ret1!=0 for child */ 3467174Smarcel ;; 3584552Sdfr(p7) mov ret0=r0 3667117Sdfr br.ret.sptk.few rp 37118330SmarcelEND(__sys_fork) 38