From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 90A503853D72; Wed, 23 Nov 2022 14:43:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90A503853D72 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669214590; bh=DGkhTHb25xqFOWbEH/Girup17hZcKF7nSVNjGuDTQtg=; h=From:To:Subject:Date:From; b=Pei7K3E5/e6MZzEfW1YkJhZeEuhapZFCi5QpfQM/1/rinp1mZSIeM+epKXpFs/Ayq V4g7eFUath4tlYk1zjGuj7NfCtfzhDuT/XCbRUgYEGAxLoUawn0rMM5AvoY9AG5pjZ V4h7CUjUwGjdVDoRzknr6rwlGSECD6769racZK+Q= 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: 6642c4177961ad087feafd17d766f2570e25d676 X-Git-Newrev: ea326198813c50667203d3eb09478cfa232ea167 Message-Id: <20221123144310.90A503853D72@sourceware.org> Date: Wed, 23 Nov 2022 14:43:10 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ea326198813c50667203d3eb09478cfa232ea167 commit ea326198813c50667203d3eb09478cfa232ea167 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