riscv64: fix linking with binutils 2.40
[uclibc-ng.git] / libc / sysdeps / linux / cris / vfork.S
blob964eca4c1d1c2358f82bdcf9d593257a8042534e
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  */
9 #include "sysdep.h"
11         .syntax no_register_prefix
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  */
19 HIDDEN_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
27 PSEUDO_END(__vfork)
29 weak_alias(__vfork,vfork)
30 libc_hidden_def(vfork)