Change-Id: Ifc09ca066c32988b8cc9db9e808b9ef4c4d2bfcb
*/
#include <private/bionic_asm.h>
+#include <asm/signal.h>
+#include <linux/sched.h>
ENTRY(vfork)
- mov x0, #0x4111 /* CLONE_VM | CLONE_VFORK | SIGCHLD */
+ mov x0, #(CLONE_VM | CLONE_VFORK | SIGCHLD)
mov x1, xzr
mov x2, xzr
mov x3, xzr
str x8, [sp, #-16]!
mov x8, __NR_clone
-
svc #0
ldr x8, [sp], #16
- /* check if syscall returned successfully */
cmn x0, #(MAX_ERRNO + 1)
cneg x0, x0, hi
b.hi __set_errno