Message ID | 1443564860-31208-15-git-send-email-ynorov@caviumnetworks.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CCF02BEEA4 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 29 Sep 2015 22:30:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 00A502067D for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 29 Sep 2015 22:30:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 02F3A20678 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 29 Sep 2015 22:30:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zh3OA-0005j0-6W; Tue, 29 Sep 2015 22:28:46 +0000 Received: from mail-bn1on0061.outbound.protection.outlook.com ([157.56.110.61] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zh3Dc-0003a2-Bt for linux-arm-kernel@lists.infradead.org; Tue, 29 Sep 2015 22:17:53 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (91.78.158.8) by CO2PR07MB619.namprd07.prod.outlook.com (10.141.228.151) with Microsoft SMTP Server (TLS) id 15.1.274.16; Tue, 29 Sep 2015 22:17:38 +0000 From: Yury Norov <ynorov@caviumnetworks.com> To: <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <catalin.marinas@arm.com>, <arnd@arndb.de>, <agraf@suse.de>, <bamvor.zhangjian@huawei.com> Subject: [PATCH v5 14/23] arm64:ilp32 use the native LP64 'start_thread' for ILP32 threads Date: Wed, 30 Sep 2015 01:14:11 +0300 Message-ID: <1443564860-31208-15-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443564860-31208-1-git-send-email-ynorov@caviumnetworks.com> References: <1443564860-31208-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [91.78.158.8] X-ClientProxiedBy: AM3PR07CA0029.eurprd07.prod.outlook.com (10.141.45.157) To CO2PR07MB619.namprd07.prod.outlook.com (10.141.228.151) X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB619; 2:Vpd22hKyCATQIUSEy2CqockuPCUMT5vqjyt2K/IZ2zyiZ04gOMZYO4oVM3LoNeiB6VBJ0oRbnQBzpJIwWxP4Kp4MkIpTiKGY202G3k5Yx9uBC0m5307khSgdtajTgA3Ue9B9ueE8iT4WP3i7t1k/4OeJe2vGwtRt6/tdhS8YKcY=; 3:GhUZDp7aCEf7FLmHJxgIo1M1B4sU9O5+8G6/QRtPeJADjunRZJFTRsTfpY8zaXo1EYqADn1fvrd6wHZ15lAe+uxdzNkTcHz19LdcTMZORQYzCdyniDbinCaKSG68QbxaGX2SUR0+gWJSo8VxxGioZg==; 25:NObO1V0QTCdPJejqodK0tFlYQcBdfjd0nDt9s15AmkdXNYuLofiRPWouVnoCHxhPFe8BZ0wQk3r+uraoHETACviJbguvGk56Nl/4QMf8W68akpHBRjNxx+ad4l/3cUV6PhOMMpddDXk9PTFQaPBGXB9KAncAQ2mlEhfDZlGJBetmP6/xxaYz5RrabxgvnXf8qaPGv/Rk65UAdqKOSdLRnva26qFsG8f2Q21fwqotpCJGBvpQbt1UyLNfzytjIPSkRZLNz3S9Ydk/Vr9eB9iuMQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB619; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB619; 20:iT29qh2GaHNnVMYGWm7QYGzPgn79i/iaIyt7kSjvqCzvHFTdk5jFBcwG9lIvo2K36tG7mjWqPJUrKFyFuYu14j233gd21kQ2Ss2Qz7JW3BP+Rpcz5qGGTpO7cW2179IEqGMshqohUU29xl74inZDeOsr0Yc6DEfpi2iWc+bSA6i0YAxyOiw2C02BsrWFHRva8p0Zt44+JjC3RjsDfEqMo7E6h9e1sTt2kSXNI1oEnwcGExK4CxZvNFJGM8gyO2owjaS43Y0VYNcGE6dgJhIScFR2Z+jDI/E2wfVFJ8xCBq6n4yKwQUjV1hKADeMSZNE2uUDv5ffUYcyvI3aTSNPyWR0wKsxhIfw+2iY9KGPENGOQANl0rs6q/Io5yH4Q7M4ilCdNFoD7o37PPBYLnXdcteU/Oo6rpOPKpG65XQfdAR783fvHIK0wJZfcgzmroYssUlbfnsGBYuT4pZYcUkDowhZny2TgGlBYcIPmaBUmPyog5/qe+MsHBBpP6BGhnlVAS61B+hb1X1RrkkfdeqRqp/IE7Hn50kgKdHl4byz0pFGbSm4xr7Cx88YGn9ZLjiAxIRg1+uxwBQO1dJtW8/ChoJkSC2qIUEQ8QMrPunksLRM= X-Microsoft-Antispam-PRVS: <CO2PR07MB619DBEC2CD67EE4FB4E0634EE4E0@CO2PR07MB619.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(3002001); SRVR:CO2PR07MB619; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB619; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB619; 4:BYfWX2R5NYIoZ/XNDTg4/gCU6b1EhqhCLMM/AsnfIwRwHtQY5kd17GuxaD7q9zZCHNyUugmsF0uI3Yr38a8y8zkIYmP+z0A3bJuV+7kPxFRw5zdZnMajsmML99s/C77NZ98M2FqZErOGkuI9RRNHNfdq2vVyDgetWu65SZe9/4BIzkn5eRpqNGgWougU0CkFZVvMVWtPS2wcLMvTCQUCxYCSmNdbCHQ3wJerM52kJnTxXu+/DZs2nwXC7rknNB4jq3I0H2yX08boyelHVGGbp/apaVJHxw3eL4sKG3xoxxoWLqDxk79S5cuZajBJ6ApPKj2HRjpS/tHkIWHf8jiCxaFpJVpf6/9baBEI0xyvOh0= X-Forefront-PRVS: 0714841678 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(189002)(199003)(42186005)(66066001)(50466002)(64706001)(122386002)(2950100001)(575784001)(48376002)(47776003)(5008740100001)(77156002)(46102003)(33646002)(68736005)(97736004)(5001770100001)(62966003)(92566002)(5001860100001)(50986999)(189998001)(5001920100001)(4001540100001)(101416001)(5007970100001)(40100003)(5001960100002)(2201001)(105586002)(5003940100001)(5001830100001)(76506005)(87976001)(81156007)(229853001)(106356001)(19580395003)(19580405001)(5004730100002)(76176999)(107886002)(50226001)(77096005)(36756003)(4001430100001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB619; 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; CO2PR07MB619; 23:ftuW5GoJze+25avIz+39bImCAYoad26Lro1TBmQxqE?= =?us-ascii?Q?A47bPhIUxc4WgQrCzRAfOciN1KcsKhLOwVKrqs5q7gJnEo6q/OzYAafM3syv?= =?us-ascii?Q?5sRMwacK0Nn4A++q3RX8iGn2f6vO5vGctHhPvVGGjqKFHyuo0KPbEiuY5jri?= =?us-ascii?Q?pYmRv66OP6ia/rQho2qNYt3HQ3gl7oBRrmNRmHe7hnNSd9PwNidtHVCgRSSS?= =?us-ascii?Q?F1y7kJvE8IMyKdxUx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Ir5aR?= =?us-ascii?Q?qSEDdSeIaaOlqtiS4v26TKlMbY0pMR2/9PnjrBp121VkhIsRgDHb+P5F8E1R?= =?us-ascii?Q?Zqzh7hOV/dJd66Z65J/FYKXtpJOii7Ye32jEDSUwrfBbDNYK8xszogxwQKhn?= =?us-ascii?Q?osvYtKJLXuMRivPKa37Ub9EDAYAyj3pQaRARN4CskFbvm0Vp9QTpOH4wj9Oi?= =?us-ascii?Q?uW54IU0b6F5t9N9GplVymDjugh7JGElRys0WST6sK4652ujeG49kM+TDAjPN?= =?us-ascii?Q?GddA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB619; 5:IwWDZ/w7vIwuyTC3ZV9Iddy67x7KKhWKgG7pXspklE8b9fwcQRfCMum2U4c5yYLXqi4hn1zegVHt44t/vDBL+lICpiPij3ap6ZbpzQyqVt1WYEjpszrowZQfiGKCL6itdJ4wHJSp8TPkZqFkBQhTiw==; 24:1pz5Jp9zVS6erL+HqcFg/UINb78Gc+CbU/OyOsvm2Ny/L8+KLu0H6GBcJKv2DrvW+afsARbZcukVYljri5JPLTjkKgMz6VO3PMbXDbp1gUg=; 20:pWo0T6SaRNDrxN+b85K+gZla6lF0cNLbzv9My314bA3IRYUZTZHApqP6iaF3PVkJYZDjvS8d3SKJQUO/9xazAA== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2015 22:17:38.7831 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB619 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150929_151752_747889_30C98374 X-CRM114-Status: UNSURE ( 6.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: yury.norov@gmail.com, klimov.linux@gmail.com, Yury Norov <ynorov@caviumnetworks.com>, apinski@cavium.com, philipp.tomsich@theobroma-systems.com, christoph.muellner@theobroma-systems.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h index f1bba0c..d766f29 100644 --- a/arch/arm64/include/asm/processor.h +++ b/arch/arm64/include/asm/processor.h @@ -28,6 +28,7 @@ #ifdef __KERNEL__ #include <linux/string.h> +#include <linux/thread_info.h> #include <asm/fpsimd.h> #include <asm/hw_breakpoint.h> @@ -123,6 +124,15 @@ static inline void start_thread(struct pt_regs *regs, unsigned long pc, static inline void compat_start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp) { +#ifdef CONFIG_ARM64_ILP32 + /* ILP32 thread are started the same way as LP64 threads. + Note we cannot use is_ilp32_compat_task here as that + would introduce a header depency issue. */ + if (test_thread_flag(TIF_32BIT_AARCH64)) { + start_thread(regs, pc, sp); + return; + } +#endif start_thread_common(regs, pc); regs->pstate = COMPAT_PSR_MODE_USR; if (pc & 1)