about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-07-12 11:13:57 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-08-05 19:45:19 +0100
commitd23dfc032415f04bd66598651afd5e70e696af07 (patch)
tree4441ed56e7f8747031b76cff537cfe919e9528fb /sysdeps
parentff371935db74c2d387b18a98e65181f615c69d62 (diff)
downloadglibc-d23dfc032415f04bd66598651afd5e70e696af07.tar.gz
glibc-d23dfc032415f04bd66598651afd5e70e696af07.tar.xz
glibc-d23dfc032415f04bd66598651afd5e70e696af07.zip
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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/aarch64/vfork.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/vfork.S b/sysdeps/unix/sysv/linux/aarch64/vfork.S
index 76103db922..81b67d06fc 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