From patchwork Tue Jun 21 05:06:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 70508 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1830967qgy; Mon, 20 Jun 2016 22:09:50 -0700 (PDT) X-Received: by 10.66.161.73 with SMTP id xq9mr25449933pab.6.1466485790887; Mon, 20 Jun 2016 22:09:50 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id w85si37809815pfi.6.2016.06.20.22.09.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jun 2016 22:09:50 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-70818-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-70818-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-70818-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=rA91e CUixtY5LSYeLsDlJTU3m0y/1xfrMiaasRoGtVfz3hL7g+S099B0hFwoRTs8uBWgd k6GNiKSedCQhpHJp6182XN8Cvs2Xky9x0fFludtwBIEo71zy7FPtqgAZKYgStTAy saUelNnnLm+UKNEIyPnfaxNID4Z0Wlq2kzRsfU= 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=fQmZC8Z3kzxNZSUuAUN1v2K0MqUeHQGfMEL8iiSSbUW VuX5e4oVj3yGKdhkcomHJSGLG+SPHQ+5ts+tZphT1gCHoMl9kYAY98VREctwh9+T c3bPyX3Cj0j+Yt+sR3MrEXj2DE5/9O2FI3hbk8DwL3jcG5BlY//0EeD1h5BIODrE = Received: (qmail 110588 invoked by alias); 21 Jun 2016 05:09:41 -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 110570 invoked by uid 89); 21 Jun 2016 05:09:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, UNWANTED_LANGUAGE_BODY autolearn=ham version=3.3.2 spammy=907 X-HELO: na01-bl2-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/27] [AARCH64] Use PTR_REG in getcontext.S. Date: Tue, 21 Jun 2016 08:06:53 +0300 Message-ID: <1466485631-3532-11-git-send-email-ynorov@caviumnetworks.com> In-Reply-To: <1466485631-3532-1-git-send-email-ynorov@caviumnetworks.com> References: <1466485631-3532-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-ClientProxiedBy: HE1PR03CA0018.eurprd03.prod.outlook.com (10.163.170.156) To DM3PR07MB2252.namprd07.prod.outlook.com (10.164.33.150) X-MS-Office365-Filtering-Correlation-Id: f6132e52-c405-4de1-01ed-08d3999238f6 X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2252; 2:QFCAspQR/ZHOmH7ixWbTQuNd7hj7qwLZvlWVxKK9X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9imNC996CSp96nhCnFXL/80WDu4kgzoDKjWEMcQSQje6dyxla9zDj6XXmX2pElOl7XvwaiAJBGE8uk9fttZb7g6/lWBpB7pwZ6Cj8rnTrCCVl4izTXmcM0mDicwTlz1nkWKh5GF1B4v81YF2aNKAd364e7L/TAxNzcVDsSBeiAnOv2spk1hdzUcouPiqXIY7DKoaBUMAhykpND72EZH+8pBleIO/fQzHr9ULkw71/GRTP11EXEl1b+/dOxt2htFi2xvDDvxVJkHkpU5YmsMyHxTM8GVBaXiniPQsVtaElbS9wzse83LgpVfppB7jJ8FTotNBsb9fFKwNH3DRW+ZI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:DM3PR07MB2252; BCL:0; PCL:0; RULEID:; SRVR:DM3PR07MB2252; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2252; 4:xxFTRdQbU9dHeuKQcPiK6+DevY+S7q2zGREssGuDJkm8+e002zzaOVTIf46td6bYWng165FKB61u7G0W7JtHx613O9kHpAjAzzOZdlch8BKPBhbNfjy5rkY6NMyGZdyqob/IAy9/rPodF1tyGD4ARoCNEirGKiRtOjZJQJDNzgC43q0kYYw1oWpjGAxdCV1Ay4uXqJnHffXlYSUe/az6ILtqMixdMI/EDV6xuvmW1bEarRSCprb2cfoG+FFGRgqTZkk1mhlH65uxotPLQ+zbt+bHj71I9fiQvvfaFEF0+xWVLSt4AJzcNgzgznVt5mC+wTsUTSqlQDryIi/CIapeqeF5EwTmXxxyOtkLsu2Ath5Ifr9yG5Je+wdduIPnaoRx X-Forefront-PRVS: 098076C36C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(189002)(199003)(47776003)(50466002)(2950100001)(92566002)(8676002)(76506005)(229853001)(76176999)(48376002)(77096005)(81166006)(7736002)(66066001)(68736007)(33646002)(81156014)(97736004)(50986999)(101416001)(36756003)(42186005)(586003)(50226002)(7846002)(107886002)(3846002)(6116002)(189998001)(106356001)(4326007)(4001430100002)(19580405001)(19580395003)(5003940100001)(105586002)(5001770100001)(2906002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR07MB2252; 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; DM3PR07MB2252; 23:z0rIB+EInZ1Vy40IxVInTYSb+T1fpBX8JG9tfYz2p?= =?us-ascii?Q?bKu0y8B5F9UBRW8XSH6IfhGPu69JxrofgEIzewVWO+zHQCgFqKvchP957gOK?= =?us-ascii?Q?fNiLHBp1wudPsRrGawH3wz3YoCSxGqBzKf3qoFSW1QS68ryh7QFqGelRLQ7k?= =?us-ascii?Q?DtRKu48vXcSPPmbSQxVJt/3k+1T+uZMtm4TwRM0xS52GV8zIc9AJVAfYBM12?= =?us-ascii?Q?20cHnMwfaD2tuxeBJ02B/deJfV+6OTd0kGM++yTsZwF2xiEJsclpa+GQKrEf?= =?us-ascii?Q?4WglJ561F2YuqSA2xG8fEgYorC+EjrKIWWFJcTIYVxe8nyt0dZzQStpQiPoJ?= =?us-ascii?Q?+DpHraVi4GYctUwo8o2JktPXV5vgGHFPvobCbHxdGSeBv53Rs8RS3MjAS5dH?= =?us-ascii?Q?DNIb44NcLSkTCiZE7STynKz00OWz9UdZv2KiPxqZ1eSyk+CXTPxIPxCCQ5Nr?= =?us-ascii?Q?JPqiMYFcZn+JTbV/qZa2QxJSPkjCuRLFizurJ3piGCtr/omhvUQCUFJ2m0Tf?= =?us-ascii?Q?R3guaSE0cuzmSEk7FkBZUQLP+MWPKBRNDWg/RjZV2XGNTJongqw72cguqRwT?= =?us-ascii?Q?pA5aZCxmHMVePWeA3ZE8vvutVfqKpCGzpQExNA4uOOppsDdYVYww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ZwB9BgIdjKbzKhNlRWkiClTXxkjxN9Qg==; 24:mB59RjwDyPd1EW/ps3Y66i18QhpM4OEkE73SkyviX9hkhCwKlb51ylQCMj/ziztLB/cdRONaSeXrMIjVkuVWcrk9y9CjrvXM1Q5JnyppVQU=; 7:STjVR4Uoq+t4jdgx/4vlhIbcro30kmcqC6IgIs6JB/pelcKtDZPbACleObDvUEmyshOe7OUJqejOeoF9YC79UyM0KJAQvDSAocVampi34XPWblkcsb34+B/wLh/T9/6nfeNFR83MH81N9IdzMCEq4QvXT0rC2Y+bvKPmI23ZsF5pN/L2jB2buV/Zksc0U6kR8ApGCJpEaEDS3el98T1S/2T3L+U3dMbwByXH3NJGtHQu9tDHnzm1b20QosSKYaEX SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2016 05:09:28.4469 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2252 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