]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
aarch64: morello: fix vfork
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 12 Jul 2022 10:13:57 +0000 (11:13 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 5 Aug 2022 18:45:19 +0000 (19:45 +0100)
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

index 76103db922b2108e7398c0dff871df29ee526e66..81b67d06fc28fdb0e56298a2e9d559fd0e21766f 100644 (file)
@@ -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