From patchwork Tue Jun 28 16:39:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 71130 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1693284qgy; Tue, 28 Jun 2016 09:42:06 -0700 (PDT) X-Received: by 10.98.93.65 with SMTP id r62mr3489273pfb.114.1467132124448; Tue, 28 Jun 2016 09:42:04 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id ac1si23927144pad.48.2016.06.28.09.42.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jun 2016 09:42:04 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-71216-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-71216-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-71216-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type; q=dns; s=default; b=qNN/4 DLMgkBYQ6dMFgVYNJKTkBoyduVagOShy9o3LtVn5+XMJWNHaszmIwbLGN/xNC2Td W1yMzD8HeCcjf8LFwfqZpEe3T/j86HnTqz068M88KQZ1p75cYQpnqZl7aNmgCG+p 5kbQpZrrOMyeToh68t65TcApWP3LTIeD8VXRV4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type; s=default; bh=eGMVctTwTi0 6dRLmUIdtTkPEUUI=; b=TjLQtLM02gS/1EghhwkGGfbQMXKKbxwYpLJItmuU7az uJ/qxP4X6vrf9Oev7GctSKRWTidJII1Sis/6oE+Rby13QlGwyaHjHcJsL2Iu7det nv87TViiCjGfOWrGSN7Yz3Hbi4065Tksfmw1nmRdGSHerqivuhMMKyIhDkdaXsPo = Received: (qmail 17288 invoked by alias); 28 Jun 2016 16:41:32 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 17177 invoked by uid 89); 28 Jun 2016 16:41:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, UNWANTED_LANGUAGE_BODY autolearn=ham version=3.3.2 spammy=grab X-HELO: na01-bn1-obe.outbound.protection.outlook.com Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , CC: , , , , , , , , , , , , , , , , Andrew Pinski , Yury Norov Subject: [PATCH 09/23] [AARCH64] Use PTR_REG in getcontext.S. Date: Tue, 28 Jun 2016 19:39:24 +0300 Message-ID: <1467131978-669-10-git-send-email-ynorov@caviumnetworks.com> In-Reply-To: <1467131978-669-1-git-send-email-ynorov@caviumnetworks.com> References: <1467131978-669-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-ClientProxiedBy: AM5PR0901CA0028.eurprd09.prod.outlook.com (10.164.186.166) To DM3PR07MB2251.namprd07.prod.outlook.com (10.164.33.149) X-MS-Office365-Filtering-Correlation-Id: 3bb30c2b-5251-45ea-35be-08d39f730b53 X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2251; 2:6X2pPEGYNXmRK04EobzAxMrlAe92W6RGjdCXnb36z/64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/qsyR6i7eEd6GBI7X9bqk2tJBWpj39px4mCjD2CvxKOmkwFhlOxtU0LX693KxkWZdMpjQFnCOdjHKpHJ5KtS16W+eFGG3x8ntoZkRFsaxVq7fC1KRLVSG77TXsvFHIbU8OZxpewhF5fJJEuv1u+1bmDdD1LhtWZC2JbogvGIWva4be3y5G0780TIBydAqwEnuKf8xzwKL5xcEyMOux4me5FjdwQD/1cWVs+aW75cZgNT/EUQ8kD2YLW697BTk9aH/XZ/p5lf6jR8dP6ho+B37FNnM4qkktwsDls0KAqs0/S+3Bn6NxmDS7cCJGRjOS4GvZych5mqZJS4hIfM4M= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:DM3PR07MB2251; BCL:0; PCL:0; RULEID:; SRVR:DM3PR07MB2251; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2251; 4:Hkj5N62jIlCLO0QfLKzM17Api0S9VYHrsLzVs2jcj1uaYObCWywuGFOxCvCEDEIl+gmFFZh6ZxqTQaEgzfZgqo/1kaM62q4ydU9J79gwR9jz2daauZnxiHtlJARwz4w97tuIwIXhU5rfI7WW8EZFhzu6FzGurL2G67J38/mehrWtx0TASLfpo/6NxQDeQADJGROYvdn91JPG6Erfwg2q0K+FFLNYBS31FcCOlGMMcOeJVo4S/W9IaXOcVrm0L2jaPQGil7ojOt8tipUji0wCDiFFEMJ3L1tZET/xdlDSuh5JPfaHnYfeuFvnKkPoErVlCva3gtemc1g4VjePRtpR/DDPOyV6bZSvu2WtG4UcpMa+YgkVACAKy5+3NDJ0QfEi X-Forefront-PRVS: 0987ACA2E2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(189002)(199003)(36756003)(5003940100001)(19580405001)(19580395003)(77096005)(4326007)(2906002)(4001430100002)(66066001)(47776003)(50226002)(68736007)(50466002)(7736002)(6116002)(305945005)(92566002)(7846002)(229853001)(42186005)(76506005)(48376002)(101416001)(97736004)(2950100001)(50986999)(107886002)(5001770100001)(33646002)(8676002)(3846002)(105586002)(81156014)(106356001)(81166006)(189998001)(76176999)(586003)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR07MB2251; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM3PR07MB2251; 23:oYQhewmKFs0kLCX35XS/YkZPZpMSrpd+kBp33BuEN?= =?us-ascii?Q?RBJkx6gb70wJyyjL6Cju/smRyGFNKHs+OryN4g5r+oJ25yjyPurry/uHrBDq?= =?us-ascii?Q?HRdEV4kFqmTjQBxVHSKRP+y/Uuv2+a31gWDipvhg4EbITClTSVmoJLyOu+Im?= =?us-ascii?Q?Q0pW+3dzVg7yuyBSa/W+MTiYiAl08rOt+S02qntxQMJLHGK0hc0iCAsDHXnY?= =?us-ascii?Q?BKc8bw9vrbN7I16PAPixBVs/zpr41NJsZg9YTuL00OQ30CI4GQbGJI3Bc3Yy?= =?us-ascii?Q?M6ioMh7TTrZolu9DK3uSSsdOdS93ClX/lSCTHCi7XHLxFa7kpE1Syn1egUvJ?= =?us-ascii?Q?XSiKi60Bmt8NhHv0jzuFSfujPb7hI2UyilTy5bIfEsjEWfR/U51Lpc7U5Hg5?= =?us-ascii?Q?dqW3bMVTmZVgOICHpmfJfmmK6NJuJtC76cMeHPkfawGm1RB6sb9CcwuaxxRZ?= =?us-ascii?Q?DAh3nfydfu10NVJs0Vt7wgpK9/VLsvmFMBhfgcMDrD7O5G9LQai62PCqRN8i?= =?us-ascii?Q?KxEf2cIsK9L1C2Zvx76+LHX7f+6Q+t33RsjF5RDiCol7cCk78VwzJ99I8yk2?= =?us-ascii?Q?NQRSli9pL582gB3H0oJno+olqmcSL+B7K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jkZ+7iy3ceUAYk9LjDZyLj8Et4xpwlYUVd+croHiyGwfOsEyvZo2THpCXs3tevnUmTFVkKVucznXNhPw8CM00gCPrxo2M7FhZBRFm6ol9SlmzNw==; 24:3vnb98cuYips1+wH02F2HcfI09+AXgkCVCAsZfpVMqPW4V5vr86vUQuWQRDmhOXfciU6K+bqUVj2J3s+1Kd9/ICEN8nJqeZNF6EnxKEMvAI=; 7:0A2CGY/JK6mk9joQJfB3VfRELs8v0KNXCyGaZWFpcvFPdHLa9uFnPMYfcPb/3DAI+dGOo5+oC4h/0A65cpvgeFBfAkl/0AZ0+6K+olY1uX7k0j/htcgioTAEwtF9Tv8pBkdGu3TKorQFwWyhtN8mOI2NUkZLwwfAHaOYti5fskJegKzhaGrpu/5O/O1ezUZfR3/sCXCgTJBgGo879Rpt9FIICv5IQ3Ra6XjjvyU63vdG7+5ZqkVMekIDnWOtKC1BZBWV5+KyFxIOi5vnh/Fsdg== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2016 16:41:24.5947 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2251 From: Andrew Pinski Just like the other patches, this patch allows for getcontext.S to be used between ILP32 and LP64. * sysdeps/unix/sysv/linux/aarch64/getcontext.S: Use PTR_REG when doing an add so wrapping of the pointer is correct for ILP32. Signed-off-by: Yury Norov --- sysdeps/unix/sysv/linux/aarch64/getcontext.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/sysdeps/unix/sysv/linux/aarch64/getcontext.S b/sysdeps/unix/sysv/linux/aarch64/getcontext.S index c2dd5b8..71e526c 100644 --- a/sysdeps/unix/sysv/linux/aarch64/getcontext.S +++ b/sysdeps/unix/sysv/linux/aarch64/getcontext.S @@ -90,7 +90,7 @@ ENTRY(__getcontext) /* Grab the signal mask */ /* rt_sigprocmask (SIG_BLOCK, NULL, &ucp->uc_sigmask, _NSIG8) */ - add x2, x0, #UCONTEXT_SIGMASK + add PTR_REG (2), PTR_REG (0), #UCONTEXT_SIGMASK mov x0, SIG_BLOCK mov x1, 0 mov x3, _NSIG8