From 4f619e7f07e4fc57182f9163dab896e7a59be831 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 12 Jul 2022 11:13:57 +0100 Subject: [PATCH] aarch64: morello: fix vfork No need to set the child stack to sp, 0 means the parent stack is used. This avoids purecap specific ifdefs in vfork. --- sysdeps/unix/sysv/linux/aarch64/vfork.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/aarch64/vfork.S b/sysdeps/unix/sysv/linux/aarch64/vfork.S index 76103db922b..81b67d06fc2 100644 --- a/sysdeps/unix/sysv/linux/aarch64/vfork.S +++ b/sysdeps/unix/sysv/linux/aarch64/vfork.S @@ -28,7 +28,7 @@ ENTRY (__vfork) mov x0, #0x4111 /* CLONE_VM | CLONE_VFORK | SIGCHLD */ - mov x1, sp + mov x1, 0 DO_CALL (clone, 2) cmn x0, #4095 -- 2.47.2