1/*- 2 * Copyright (c) 2011 3 * Thorsten Glaser <tg@freewrt.org> 4 * 5 * This file is available either under the terms and conditions of 6 * the MirOS Licence, or the same terms as klibc or uClibc. 7 */ 8 9#include "sysdep.h" 10 11 .syntax no_register_prefix 12 13/* 14 * vfork is special, but PSEUDO() would probably work were it not broken; 15 * there must be nothing at all on the stack above the stack frame of the 16 * enclosing function 17 */ 18 19HIDDEN_ENTRY(__vfork) 20 movu.w __NR_vfork,$r9 21 break 13 22 cmps.w -4096,$r10 23 bhs 0f 24 nop 25 Ret 26 nop 27PSEUDO_END(__vfork) 28 29weak_alias(__vfork,vfork) 30libc_hidden_def(vfork) 31