Message ID | 1443564860-31208-15-git-send-email-ynorov@caviumnetworks.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCHN3LUNYYJBBOE4VSYAKGQEGJRJCGA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id C88D222B1E for <linaro@patches.linaro.org>; Tue, 29 Sep 2015 22:18:32 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf12883350wic.3 for <linaro@patches.linaro.org>; Tue, 29 Sep 2015 15:18:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type :spamdiagnosticoutput:spamdiagnosticmetadata:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=SjgCzwAglrrBdyZKamt6izNxdWOsy8/f/M6oMusdAeQ=; b=MDRzSiTD/uwlR0HzbRtNVU4BbGFy79COE7/xqeYhyrbRi11Da0Tf9yi+CzNhU9qUTt ILc0MfZR5RmCzYoVN7JBC42NOiNHc0LN07kQqLuJv7JZNMhZ8PPuNysb9TE8yJUzfas+ Yg3SU3nLC23SvqbaYvlYkaVDML2auXBIgsrGMbsIlMwMfBHbTmLgJKQN5gkW8K4bS3x6 ei4ZuPo8nc1h4KOwV/oZRc2jvoplhlZfMZBC0QQ1JftiGJFXU8Sesv6XZ9B4PIUvZKk6 cSXPoIu9xF1E3Wd47uI+TQk54F3phBhkVNb45ufZPRAdXpYeuEPXUFZsN+nSGItWpcuY 5WLg== X-Gm-Message-State: ALoCoQkGxJjypufAAxP7T0StOwIdwgMN3wbQL18MC89K+MgTdZapz7A3JCdfiCLTsT19DGOBwlLh X-Received: by 10.180.210.71 with SMTP id ms7mr151533wic.4.1443565112118; Tue, 29 Sep 2015 15:18:32 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.163.101 with SMTP id yh5ls4622lab.97.gmail; Tue, 29 Sep 2015 15:18:31 -0700 (PDT) X-Received: by 10.25.44.80 with SMTP id s77mr59597lfs.37.1443565111961; Tue, 29 Sep 2015 15:18:31 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id q130si11967379lfq.155.2015.09.29.15.18.31 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Sep 2015 15:18:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by laclj5 with SMTP id lj5so25412802lac.3 for <patchwork-forward@linaro.org>; Tue, 29 Sep 2015 15:18:31 -0700 (PDT) X-Received: by 10.152.7.38 with SMTP id g6mr98188laa.106.1443565111846; Tue, 29 Sep 2015 15:18:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp2397873lbq; Tue, 29 Sep 2015 15:18:30 -0700 (PDT) X-Received: by 10.68.190.105 with SMTP id gp9mr473451pbc.152.1443565110408; Tue, 29 Sep 2015 15:18:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ys4si40518024pac.68.2015.09.29.15.18.30; Tue, 29 Sep 2015 15:18:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756437AbbI2WS2 (ORCPT <rfc822;pingbo.wen@linaro.org> + 30 others); Tue, 29 Sep 2015 18:18:28 -0400 Received: from mail-bl2on0059.outbound.protection.outlook.com ([65.55.169.59]:20413 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754942AbbI2WRp (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 29 Sep 2015 18:17:45 -0400 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> CC: <yury.norov@gmail.com>, <philipp.tomsich@theobroma-systems.com>, <apinski@cavium.com>, <christoph.muellner@theobroma-systems.com>, <klimov.linux@gmail.com>, Yury Norov <ynorov@caviumnetworks.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 Content-Type: text/plain 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/4OeJe2vGw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p/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?F1y7kJvE8IMyKdxUxtncUiQHIlt41d66I9eTP76hVUkdKyQQyNW9NNhTByXz?= =?us-ascii?Q?QDPN2wS5CQ8kbXU09K1HfwgzyBGeYL7cVG427KsYpVQfAx4H3GpCMzZf4gQ+?= =?us-ascii?Q?GSaZCdzYbP0a+aK91hrtkj1R/6dPvO0hTbrrFamOI9sqdTHWo8IiiF+h5wIr?= =?us-ascii?Q?auUXIzb/pJxUq3kLkq6YDhjOU2rBiW5m1Epc+9ECFKtzXMWr0Z6r0WvzAoqt?= =?us-ascii?Q?8qard/H9s2Y2ya2/Pj8H/7kiSHT76zfUY6i2/V9uJ2YJ5Qga3yw60Hgqk9ig?= =?us-ascii?Q?HICsLeoJlF6QDwQMNBPShrJWH8QLjhxe/hGCwA4rT5nrDdbbegqti5lEww0b?= =?us-ascii?Q?P/ZKvN+RgFN7vw3ZHdeh/OF/0Y8TPsAknegQhS4ZOkjpWjutOPFHcuyqv4+z?= =?us-ascii?Q?jUQyr/3SUakF20hEuClsa4hfDqZEPqjllva9Qt7j9RTEPqA1B8S81XaLRcRX?= =?us-ascii?Q?U45PpVyPmmYUNdsDXXJhGncuH7aHf7ojxz4gP/PjZ7k/A4qnxwF7obF6GSyl?= =?us-ascii?Q?z69jdAClCrcPGSMqjeylUCBbhrUcku7O3vXLSuvtr6J5TYrf/x5+uiyZJK0i?= =?us-ascii?Q?FTdvLxJAq8pGjvvZFJEathVzfCqQ68nWT/IFk5UpRJgddo8A7dIuZ6fWHIx1?= =?us-ascii?Q?PXHxq+5ZvrzvbZUrFvswDC8W9IRjd+Y4qJesmJXwD8eQv335aN+UYsf6Tykn?= =?us-ascii?Q?YCN1MRIGhjHurBU2OgSoHYRRzoxYiIcFWGFyUjdsGlTH/JvA8EPTbz8jF0SC?= =?us-ascii?Q?+73xuw+QqchedzK5fMzN4gj8bxJj8PQ1mljFDhZ41MD7N0v2WM4geT/NCs7s?= =?us-ascii?Q?Auj+7TOjkisMcrTXpbklxn+GkUcpwVV209u2BoG3FeUM6XQIgRUWygBIr5aR?= =?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 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linux-kernel-owner@vger.kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
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)