1*2af01421Sskrll/* $NetBSD: compat_Ovfork.S,v 1.3 2020/05/05 06:20:55 skrll Exp $ */ 214c25e36Schristos 314c25e36Schristos/* $OpenBSD: Ovfork.S,v 1.7 2001/06/04 23:14:04 mickey Exp $ */ 414c25e36Schristos 514c25e36Schristos/* 632381fa0Ssnj * Copyright (c) 1999,2002 Michael Shalayeff 714c25e36Schristos * All rights reserved. 814c25e36Schristos * 914c25e36Schristos * Redistribution and use in source and binary forms, with or without 1014c25e36Schristos * modification, are permitted provided that the following conditions 1114c25e36Schristos * are met: 1214c25e36Schristos * 1. Redistributions of source code must retain the above copyright 1314c25e36Schristos * notice, this list of conditions and the following disclaimer. 1414c25e36Schristos * 2. Redistributions in binary form must reproduce the above copyright 1514c25e36Schristos * notice, this list of conditions and the following disclaimer in the 1614c25e36Schristos * documentation and/or other materials provided with the distribution. 1714c25e36Schristos * 1814c25e36Schristos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1914c25e36Schristos * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2014c25e36Schristos * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2114c25e36Schristos * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT, 2214c25e36Schristos * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 2314c25e36Schristos * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 2414c25e36Schristos * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2514c25e36Schristos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 2614c25e36Schristos * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 2714c25e36Schristos * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 2814c25e36Schristos * THE POSSIBILITY OF SUCH DAMAGE. 2914c25e36Schristos */ 3014c25e36Schristos 3114c25e36Schristos#include "SYS.h" 3214c25e36Schristos 3314c25e36Schristos#if defined(LIBC_SCCS) && !defined(lint) 34*2af01421Sskrll RCSID("$NetBSD: compat_Ovfork.S,v 1.3 2020/05/05 06:20:55 skrll Exp $") 3514c25e36Schristos#endif /* LIBC_SCCS and not lint */ 3614c25e36Schristos 3714c25e36SchristosENTRY(vfork,0) 3814c25e36Schristos SYSCALL(vfork) 3914c25e36Schristos addi -1, %ret1, %ret1 4014c25e36Schristos bv %r0(%rp) 4114c25e36Schristos and %ret1, %ret0, %ret0 4214c25e36SchristosEXIT(vfork) 4314c25e36Schristos 4414c25e36Schristos .end 45