From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 07CB73857361; Fri, 5 Aug 2022 19:32:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07CB73857361 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] aarch64: morello: fix vfork X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: ff371935db74c2d387b18a98e65181f615c69d62 X-Git-Newrev: d23dfc032415f04bd66598651afd5e70e696af07 Message-Id: <20220805193248.07CB73857361@sourceware.org> Date: Fri, 5 Aug 2022 19:32:48 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2022 19:32:48 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d23dfc032415f04bd66598651afd5e70e696af07 commit d23dfc032415f04bd66598651afd5e70e696af07 Author: Szabolcs Nagy Date: Tue Jul 12 11:13:57 2022 +0100 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. Diff: --- 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 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