From b0a2efc6f2445b102a1503dfcfcc8d364fe4df7d Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 2 Jan 2014 14:17:30 -0800 Subject: [PATCH] Remove a hardcoded constant from aarch64's vfork. Change-Id: Ifc09ca066c32988b8cc9db9e808b9ef4c4d2bfcb --- libc/arch-aarch64/bionic/vfork.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libc/arch-aarch64/bionic/vfork.S b/libc/arch-aarch64/bionic/vfork.S index 723528319..a5d569c67 100644 --- a/libc/arch-aarch64/bionic/vfork.S +++ b/libc/arch-aarch64/bionic/vfork.S @@ -27,9 +27,11 @@ */ #include +#include +#include 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 @@ -37,11 +39,9 @@ ENTRY(vfork) 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