Message ID | 4f72249e1bd2b5a772973f9faf3b88e62596fdde.1666877952.git.szabolcs.nagy@arm.com |
---|---|
State | Committed |
Commit | 09c6c6073c925235b385af1d8edf6bc853eeaf60 |
Headers |
Return-Path: <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 262273824588 for <patchwork@sourceware.org>; Thu, 27 Oct 2022 15:33:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 262273824588 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666884793; bh=3WGSW6Ppnnguaq9LzjM0ouGwghTheBVV2DuLMKgc8iM=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=NbBs/CIzSERlYb1CH6xW8lE3by6QGEFsFgtytl6qKjsA5BE6l8v4IqhfFO4llJ/LW pqRVNG85tRGZe+CiKuRY4ApxVqA4TUhtbgIoKNvjeOM+hfvFjlPm3Y0Z3xdTCGh9uK hbBGAlsxQuAyJEnb8Vi0LY68gW+OiLILcS2R7JcM= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80089.outbound.protection.outlook.com [40.107.8.89]) by sourceware.org (Postfix) with ESMTPS id 9328D3829BC0 for <libc-alpha@sourceware.org>; Thu, 27 Oct 2022 15:32:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9328D3829BC0 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=g5N7cpWqCqbB2qzW4p+gp6rmtVwD3VRPlC90ws4RY30TtHdaTXBWgfJ182XaHuwd7pmnvgCzIpRksmDK9iYf0Tks2NTRHNmfYjR3j1cNMK6yFYWccjcNYDOqpSKtIiblecKZAPKmnyCIGwFWR4XyOzQNjhKPWsklpaMP/P4Th83Ifa/HUQJ2FmP4Z/V+qmVFjOnYFJrrzTKlhZGxIx3nueIKnWrafDU7VgyZPzYprq0DgnnZPNcNvUNmHGYx95E75MnubsQclet0I2q0Hvzo9wHnnlXeyz2w3nUAiULAupkd7PM3CRWVXs+fwkGiMcx2ce3nAgRiAjl6tabcRgiPqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3WGSW6Ppnnguaq9LzjM0ouGwghTheBVV2DuLMKgc8iM=; b=XK1We2P2rTeoWPJ7mA8roBHxccw/98AlToisyKPVJbeKHdehvGD/4QqLUMYFzyf/+D8mpzhI8IB6dmuBYKmZMVyFEnLgAWvnoqn6rSnQzKFmXqNjdZWQ/D2tbll9TEyVjlEQxtJbClI89ycdzsDRW9SbrCGjnMuOv/Me1aw+beuuwhq54PUfFI0tfZF7GeiJOR4siGRFDd0FkBg+eyC0aU1M4J7tGYbg4DFFpZzmC+8drwyKo0jE7gNuR1iMnZldR9grU4dgq9NcyD/hBAlmDTEi1qzp8Kr1r7afT4pV17klGAeF8LAV7wz4Wbk7R4OLXGbK5dcxC4ctCxjJ91pnMQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1, 1, smtp.mailfrom=arm.com] dmarc=[1, 1, header.from=arm.com]) Received: from DUZPR01CA0028.eurprd01.prod.exchangelabs.com (2603:10a6:10:46b::7) by PA4PR08MB5903.eurprd08.prod.outlook.com (2603:10a6:102:e9::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Thu, 27 Oct 2022 15:32:39 +0000 Received: from DBAEUR03FT017.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:46b:cafe::fd) by DUZPR01CA0028.outlook.office365.com (2603:10a6:10:46b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.27 via Frontend Transport; Thu, 27 Oct 2022 15:32:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT017.mail.protection.outlook.com (100.127.142.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14 via Frontend Transport; Thu, 27 Oct 2022 15:32:38 +0000 Received: ("Tessian outbound 0800d254cb3b:v130"); Thu, 27 Oct 2022 15:32:38 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6712acf34a099b9f X-CR-MTA-TID: 64aa7808 Received: from e1fe1fd8e1cc.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 371D8318-2B2F-4B00-AF77-75B37B8E68F3.1; Thu, 27 Oct 2022 15:32:32 +0000 Received: from EUR02-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e1fe1fd8e1cc.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 27 Oct 2022 15:32:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c6aFs6WuIWQ69I/pyD1jxiwUIzRIIglE2wYcMJqna5rpMqpqtbcHLs6v0QgFbMRkmzgNnf+aJ15Qnv67cEtZHe3kSdHYhouH7pIT1Bg4lyGbCz6h83YgI/DR1FFG1yvYXjf9KrflJ1frnjWWZiO5ESOS/WV7LVfYE3g/Qo2q6V8f86t0k1lVXr8HWSbUEslnScOaseFEszh7Mroon4TKBiy0sOMjNrEHiCUY2lEzuzBOgJ78TYJQRHrx9e2UjK1P+ZIeefyo3Zi84hdf9Q5A40GPQYsUBFyorgrrolvb4SP4ObUyAaNRa71FOw2Hb7rDZ92hAdEXYI3gpJZ1D1CUKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3WGSW6Ppnnguaq9LzjM0ouGwghTheBVV2DuLMKgc8iM=; b=gCzuTlnaaocn1InTE8sWzF+5mPGd344NoNk/G+8B9y2qcIK3jMrwo79WJXWOvZ8ubYd6WGfPyLtJHUhUWIlfGLTRPbECfyfR5ZPNhVR01OtxD/p+czr0rV7wUWjL2jcIikKXWKxmWYmzdx0l8v/ULLCuohosflYjzwbRNjlN81TfwYPzUMFX3h0tMnng2Q9uUDTSmNZKtqLXPL33fWNFby9ZJjEMbNo1/xn9g5zkaqgskhBusZgCW8k+4CThvsw9wvdJHtohI25bpidEcqx6VpQRQEcqzkFC/UHT3y2t1jgFT8cmBrcRpHe0kG+8zY+4n0L84dQg0zw95lHx0AEAXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from DUZPR01CA0025.eurprd01.prod.exchangelabs.com (2603:10a6:10:46b::13) by AS8PR08MB6486.eurprd08.prod.outlook.com (2603:10a6:20b:33c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.29; Thu, 27 Oct 2022 15:32:27 +0000 Received: from DBAEUR03FT017.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:46b:cafe::e5) by DUZPR01CA0025.outlook.office365.com (2603:10a6:10:46b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14 via Frontend Transport; Thu, 27 Oct 2022 15:32:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT017.mail.protection.outlook.com (100.127.142.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5769.14 via Frontend Transport; Thu, 27 Oct 2022 15:32:26 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 27 Oct 2022 15:32:25 +0000 Received: from armchair.cambridge.arm.com (10.2.80.71) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 27 Oct 2022 15:32:25 +0000 To: <libc-alpha@sourceware.org> Subject: [PATCH 04/20] aarch64: Fix the extension header write in getcontext and swapcontext Date: Thu, 27 Oct 2022 16:32:24 +0100 Message-ID: <4f72249e1bd2b5a772973f9faf3b88e62596fdde.1666877952.git.szabolcs.nagy@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1666877952.git.szabolcs.nagy@arm.com> References: <cover.1666877952.git.szabolcs.nagy@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT017:EE_|AS8PR08MB6486:EE_|DBAEUR03FT017:EE_|PA4PR08MB5903:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c6d69e2-c00c-40d6-5729-08dab8307b14 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 0jgLrNTXzxb//S04+jAbuuj0epbLjC8ttn7GbIr87bBx32cWnLIzQ1Qg/qtRhZleTYnDQrz3MOpGqq2cUAhWeDM4E6Flek9gsv0SYNSts9w8w9mNSX60INK+b2mSQnQT35WkWf5ghkYTADB6D1pAMhF/ccgyKzlL+oCxaf3QEhlOueuBmzbaZt9J2BuvloSkZbOZxlQZK0gtyxthPimEFdoYC8grU0H3XtC4cLHtoQ42PXtJQBkDTG7esE2VwTAHwLrafhyEiINcThWGFFvkcqxi+xBF51DM8n2A6m0MzZCynoEHsK8Dq7fpECZxyZkwsEZ5Efr9dgG3FNjfGoBB9l9tPAvh44lHii6jQxs7qt0yts6ghJiIWCl3G3AgLIke2VMJGF+INNWppjCQ6pHwCTQphXEaWIfNSztFdFNvDJby415HQ/jglQP4xgFSwavMCt8OK6ZFg7lHfIdjrqBmpffYjjNKbXpMw4YfQj0Z4praZL4frBSsExID+Xd16pSTHoHXIxV2/Mn4F+GpJUoXyUNuZwi4Yljf5w15nsJOmAZWzjKFohJxy0GeyOF7RCv9UNw6GmI0CJbYwq7TpiXJ37O/rYCTBUH99FwrAzSiPQavFXdML952RmCQbjtA0LhFOlR/Fmt2UEowUen9wBCt1wG76Z5g0bfpz4vkZ3n0CaS2uY8dYCF98AubZf5pXbS/Kslqn9TCLs68d+codh6hp28AsO3ZB+AG51sLX//4hIUoWzXgVqtZLcYuOV9iHtdORb58yaOS3QcRYZK67HbedoKBbhLe7NDlxlbdIoj3oDtkqI6mwTBe24inRmlbb524 X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(136003)(396003)(346002)(39860400002)(376002)(451199015)(40470700004)(46966006)(36840700001)(478600001)(40460700003)(6916009)(82740400003)(316002)(47076005)(426003)(5660300002)(2616005)(44832011)(26005)(356005)(7696005)(8676002)(70206006)(70586007)(8936002)(36860700001)(86362001)(186003)(82310400005)(81166007)(83380400001)(336012)(2906002)(36756003)(40480700001)(41300700001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6486 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT017.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: adb2f092-a36e-4c56-aefc-08dab83073aa X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bnc++lmpu9v+IxKD3qT5T4vCR81tZofX7EE/YSOyZJfYVPFayXXc5dcjWsw4rv3TuQiWMnVD6HmAVHZaQWFuz9aGyblxULKH+RxYfbhtjZZwvDGKyJLMB6e5kExaxuRfL5LIc7pWrrFJUuFwGYEeBoGrQ79xhFbX/mtfysXHIF1B/3uaEpmo7rDrJnjY/O0TGPrQzdlxjtLbVNlxuDsnzeugiLH5QCvVqXUzq86R4B7vh8Y4konBGT0wtXSC06BHeVef38P+lEUZPE6+MMS/cN+7REyk6gnka2ij4lsn7qWG+0jaBEI3UyzqWwGfpj7rMonAmrnLYIccILOFZQwmorIDMYxdcfnEtY1z2SHDc80uvv/grBTSvCX5lNzkg9F19oqDucCvjhNZBdbX7aNGxVCm4eigjovaCVE+XrSqt5d3lVnp2JlQcxfs3WXyenUc4cN+GCbZvo/VLmITHEmTeV9xTQdjYESWRZj/RJO/dw9yVKNV++rFMegmfj38qC58pMeDqkYhgeakvVyGD+KCS/pV2020nMQIQJj5bnJysE0NhowwvKE3rkh6oIy1YQPgvOqUHW6dIPgPQraGOzSshm2oJtSGHTnCrqafO89d0tPPFjw1wFqxeYwx85/8lVCV0fBRX0U5QplZsvAFIrDIIc7b384hZ7HlengXiSsmYbb9xlPk3mEl4IdJuXkRWNKwAnSOftY/No1Inh9tFrfJhsuV4dZRi3ZKSmzt+YJYrq89NX89Shr1Pk2TnffXztCbtTQUhWcTjuTY81fo1k7VeQ== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230022)(4636009)(346002)(396003)(376002)(39860400002)(136003)(451199015)(46966006)(40470700004)(36840700001)(83380400001)(186003)(47076005)(36860700001)(336012)(82310400005)(2906002)(2616005)(26005)(426003)(82740400003)(36756003)(5660300002)(6916009)(41300700001)(7696005)(86362001)(70586007)(40460700003)(8936002)(40480700001)(316002)(81166007)(478600001)(70206006)(8676002)(44832011); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 15:32:38.9061 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5c6d69e2-c00c-40d6-5729-08dab8307b14 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT017.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB5903 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Szabolcs Nagy via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Szabolcs Nagy <szabolcs.nagy@arm.com> Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
patches from the morello port
|
|
Checks
Context | Check | Description |
---|---|---|
dj/TryBot-apply_patch | success | Patch applied to master at the time it was sent |
Commit Message
Szabolcs Nagy
Oct. 27, 2022, 3:32 p.m. UTC
The extension header is two 32bit words and in the last header both should be 0. There is plenty space in the __reserved area, but it's better not to write more than we mean to. --- sysdeps/unix/sysv/linux/aarch64/getcontext.S | 4 ++-- sysdeps/unix/sysv/linux/aarch64/swapcontext.S | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
Comments
On 27/10/22 12:32, Szabolcs Nagy via Libc-alpha wrote: > The extension header is two 32bit words and in the last header both > should be 0. There is plenty space in the __reserved area, but it's > better not to write more than we mean to. LGTM, thanks. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> > --- > sysdeps/unix/sysv/linux/aarch64/getcontext.S | 4 ++-- > sysdeps/unix/sysv/linux/aarch64/swapcontext.S | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/sysdeps/unix/sysv/linux/aarch64/getcontext.S b/sysdeps/unix/sysv/linux/aarch64/getcontext.S > index 15fbd2d1a0..3109cbd99a 100644 > --- a/sysdeps/unix/sysv/linux/aarch64/getcontext.S > +++ b/sysdeps/unix/sysv/linux/aarch64/getcontext.S > @@ -86,8 +86,8 @@ ENTRY(__getcontext) > /* Write the termination context extension header. */ > add x2, x2, #FPSIMD_CONTEXT_SIZE > > - str xzr, [x2, #oHEAD + oMAGIC] > - str xzr, [x2, #oHEAD + oSIZE] > + str wzr, [x2, #oHEAD + oMAGIC] > + str wzr, [x2, #oHEAD + oSIZE] > > /* Grab the signal mask */ > /* rt_sigprocmask (SIG_BLOCK, NULL, &ucp->uc_sigmask, _NSIG8) */ > diff --git a/sysdeps/unix/sysv/linux/aarch64/swapcontext.S b/sysdeps/unix/sysv/linux/aarch64/swapcontext.S > index 1ee2e40272..e3ec9da35d 100644 > --- a/sysdeps/unix/sysv/linux/aarch64/swapcontext.S > +++ b/sysdeps/unix/sysv/linux/aarch64/swapcontext.S > @@ -75,8 +75,8 @@ ENTRY(__swapcontext) > /* Write the termination context extension header. */ > add x2, x2, #FPSIMD_CONTEXT_SIZE > > - str xzr, [x2, #oHEAD + oMAGIC] > - str xzr, [x2, #oHEAD + oSIZE] > + str wzr, [x2, #oHEAD + oMAGIC] > + str wzr, [x2, #oHEAD + oSIZE] > > /* Preserve ucp. */ > mov x21, x1
diff --git a/sysdeps/unix/sysv/linux/aarch64/getcontext.S b/sysdeps/unix/sysv/linux/aarch64/getcontext.S index 15fbd2d1a0..3109cbd99a 100644 --- a/sysdeps/unix/sysv/linux/aarch64/getcontext.S +++ b/sysdeps/unix/sysv/linux/aarch64/getcontext.S @@ -86,8 +86,8 @@ ENTRY(__getcontext) /* Write the termination context extension header. */ add x2, x2, #FPSIMD_CONTEXT_SIZE - str xzr, [x2, #oHEAD + oMAGIC] - str xzr, [x2, #oHEAD + oSIZE] + str wzr, [x2, #oHEAD + oMAGIC] + str wzr, [x2, #oHEAD + oSIZE] /* Grab the signal mask */ /* rt_sigprocmask (SIG_BLOCK, NULL, &ucp->uc_sigmask, _NSIG8) */ diff --git a/sysdeps/unix/sysv/linux/aarch64/swapcontext.S b/sysdeps/unix/sysv/linux/aarch64/swapcontext.S index 1ee2e40272..e3ec9da35d 100644 --- a/sysdeps/unix/sysv/linux/aarch64/swapcontext.S +++ b/sysdeps/unix/sysv/linux/aarch64/swapcontext.S @@ -75,8 +75,8 @@ ENTRY(__swapcontext) /* Write the termination context extension header. */ add x2, x2, #FPSIMD_CONTEXT_SIZE - str xzr, [x2, #oHEAD + oMAGIC] - str xzr, [x2, #oHEAD + oSIZE] + str wzr, [x2, #oHEAD + oMAGIC] + str wzr, [x2, #oHEAD + oSIZE] /* Preserve ucp. */ mov x21, x1