From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 3BE573846441; Wed, 26 Oct 2022 15:14:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3BE573846441 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666797281; bh=ZIyUOMf/OqbNhDp27WqSTz03+tkh849+bovYI6M8Jdo=; h=From:To:Subject:Date:From; b=B3oDndltrSy2qedgw/50BrO9nruokcQOGMWnMPbxK5GWBhmJADXHnZECATqFuefcn Bhr+eRhMwgy6PhNbYrm/pFuQktxTbipT0y89xMfLb8PgTmQOwFmlYaHm24+jGWBU8d wK1+ymUsmIkxH2ZDXZI6OmQo2W20zofAiGuQ7NiM= 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: 3cdf8d03103035cbbf1ecf80bf843e97ba4d9a0b X-Git-Newrev: 9bdf04fbbaeaa7ec70de0c135df72e8ff9f20d6a Message-Id: <20221026151441.3BE573846441@sourceware.org> Date: Wed, 26 Oct 2022 15:14:41 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9bdf04fbbaeaa7ec70de0c135df72e8ff9f20d6a commit 9bdf04fbbaeaa7ec70de0c135df72e8ff9f20d6a 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