Message ID | 20210114072810.11873-1-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp447873jap; Thu, 14 Jan 2021 04:25:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoZaLjqGHJYlsXBryhf/qNbd8ALBHir2/I7dJ2fUhJ9WCoN6d885XCjpwWRZSS82hB8GUM X-Received: by 2002:a17:907:961d:: with SMTP id gb29mr5117465ejc.460.1610627139987; Thu, 14 Jan 2021 04:25:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1610627139; cv=pass; d=google.com; s=arc-20160816; b=OD39lP4mzRrAVAefUEJH1D1eCn5AoMWdr/AEVvilvEv5LSjdsnPi7D1nvud8N96zXh aV6TWh+tUHy5Oxa1UnmP2SYZsGRHMk550M/7RSmqOXr1zQth4K7PF6CEaE03fzcFUZge dLiWZd1zIxPMNoeg3JDPKdxOXKA05X/LJg4GXZP0P9VTlArE93LnDjRSD8XWvNhScVlH kDf57vw9h04DkHfufK08Wkqxl72DXWh+Hfd44wsek0gfFZAyoVmbB5Io64gex+B0WGfa qOaiSQ28++InUkrH4zwv3Y9zgTdOlIee6fQ6zKFIkbU5Hzz1pSRxXvbSB3VqrHh501Hj Eu6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature; bh=5/l97LVeFZSELvy55SjZwXvP3aVUYukzeUoVVGS1VSY=; b=JSYXixBPs9BSuJwLR01MCoIp+G/xoeWM5WzNWJcXnJv8XKrXeKK/EZ2W0OvprNxNzT 7NwLossLqYsnYWfMLduGv4w9DYri80Jsb1FHaCj6LYlP3Kir6eGmUz6X2eL9ieiyH3bv gonb+exU+nYLT6n0KxyjaHspPave4APFydLztYww+8aOHrxISbc7c8Y5JBerxsgAxx+V hBXzGWk+CKnzUE1lEMjX03WrJxA92VWFl4VL2Ojw1sGMyFUlnsUqW+TwvpIxlyIBIhvP EEhxxP+vbXw1FGuiZzNVbY4sUSskkDrkvln62x3tw9cY0atgP1X7q2Av2Q2GNlx2meDx AqRA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=JsjCyHWf; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id y36si1781934ede.158.2021.01.14.04.25.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 04:25:39 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=JsjCyHWf; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 26D1B8271C; Thu, 14 Jan 2021 13:25:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="JsjCyHWf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1D12D8271A; Thu, 14 Jan 2021 07:59:09 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02on060b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe05::60b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2B633826F5 for <u-boot@lists.denx.de>; Thu, 14 Jan 2021 07:59:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A/ffcONq9lPwExSihooUV1LbwH8Pa3gzu47CWOrkn97CTO1Q9aBxD4BXDK/eEjSIOqDlerxiRovOUgOtTFCwEpAsC/MMAPrBmqpLux9dWLTkTb6VKYHuglvsj/XtNeKqDErfTAuFE2QWShTWBoPLajzNq4HjKBdJ6vnBEGpB2l2qGPGSou3YJ3qkNEC3efg7Q8BU+22thcYMSexcNkGfuA+roMFHsqVBRYScNjtMXL2FtkWiCWuaGpiBcM2zjdMbyBK62f3wrbOlHxyirm7QH73YVJtP9jSKXMe62DiwvlwUS7FagFPIqHdBw8pPlaA4N2NXeU2XHkZWRyNz0k92Jg== 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-SenderADCheck; bh=5/l97LVeFZSELvy55SjZwXvP3aVUYukzeUoVVGS1VSY=; b=Kus4qGqWVeP/tEalvkvO4ipRDaCOdCRpgqpfXmny1H7XfTNBemMXjZDA9I9/J9SsPKuYppiHUNyJn9P+wtsP9jrNCVUZ1ix3jI746kWE+sgVftDBA3JjK1+onDyGnlo2mZQwNJWgA0GEC5RGvRrYvfoBj2vn72WYsynO/8Y/8rEvxwNVwpIu2JorPSmQgoWMHA/No7qCobA4kV+ud5EpWl9Wy85FPD1EJtCA6djdLCPfK2MCpUXdxVTi38dlpCryxYH/DeoJ5uuRFoHXmNlW9I3Hd+hwTmiPNMhrCY8bXxtziZTjFf42DKUJRJT723B/11Ps8hDCv59A89AZRmVdvw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5/l97LVeFZSELvy55SjZwXvP3aVUYukzeUoVVGS1VSY=; b=JsjCyHWfcZmTVHSthLPFVoJmTpNvUj002/uni1UF5PPZ1e155OhnXSnZyn76xCCi7SAOnL1MlI2a9+YsLhZc70KE328JdrWk6Uag3encKL5uhyGI+WyL/i2fIarsB7eHjG56m9OVf6Jvlls3zNGD4Pld0Dlid8FgrjTCD4uzNnk= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none; denx.de; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4634.eurprd04.prod.outlook.com (2603:10a6:5:39::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.12; Thu, 14 Jan 2021 06:59:03 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5%10]) with mapi id 15.20.3742.012; Thu, 14 Jan 2021 06:59:03 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan <peng.fan@nxp.com> Subject: [PATCH 01/13] imx: lowlevel: implement armv8_el2_to_aarch32 Date: Thu, 14 Jan 2021 15:27:58 +0800 Message-Id: <20210114072810.11873-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.28.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR03CA0144.apcprd03.prod.outlook.com (2603:1096:4:c8::17) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR03CA0144.apcprd03.prod.outlook.com (2603:1096:4:c8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.6 via Frontend Transport; Thu, 14 Jan 2021 06:59:00 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8b7ccbec-20e5-4be4-9b2f-08d8b859e08e X-MS-TrafficTypeDiagnostic: DB7PR04MB4634: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB7PR04MB4634CA54FA2AE78EAD9A7AAFC9A80@DB7PR04MB4634.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:389; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v1PginEEjg+fpKSfK0hphvsmAJWdF878WpeAp6BFmT+5q+ja5YcvpPsg5YJwB67MURyrrOshkWl0MyFNCzi+u1LCnnzFqRjfYOdcmZKiMHGdGufLnuQZQ5Y7IBeh6Ao9w8U3FbV1h9UGCSt4UgsUXZ6N0oi7JAkO/yqXR3q0oOnQInZEwNNlwHRrDZlcojap63nLOTdZvo1YQDp82auh9b6f36T9Uukijg/BFytWvC4TMUZ+CRM3Z4XwmhnLtMExFWgTsQDoScysnl4LJSsAMoPk8/uY1AXSUFT3gM5AT3xn8aOGTqr12UZyotqw+KyVz4Gg4c4wG5SiXGlaYTiZ2rba+hIH8+YKCnpVB/lma2zdSylZ5KHvhWRYntK+884unBIBrFBAn6AaFZ1r9t1jxQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(396003)(39860400002)(376002)(346002)(6506007)(66556008)(86362001)(4326008)(8676002)(2906002)(316002)(6486002)(5660300002)(66476007)(66946007)(8936002)(478600001)(52116002)(956004)(16526019)(26005)(1076003)(2616005)(6512007)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: YwokVbtDOxlhgSJF/OglAy77zbuYcFQxDJuYxiQ5h8LsyijnkRqMz9KmgKVlx4fB7fk5zByWib2yfgKkDDj78QIbLVjO3YbVuq79vkT84LeTshbs1gTiIrpUbrJSZWc35dJhbFS9XdwOOXSAf3tKje2Q2QLCUK4HAYro6NKnJ5lN7CdQ9FVz8H4AbiQ0RSvw/xgV4QsHiGtesAneDa47CWR79BEYB5EubdHT1xxcyfNz9ueLTG3MSRz3MnNM4ZczZxe5HkMzT26pQEcDhdzoyJv4NxycpyoEDK2c4eLbnxN/vN0WNYJHeZXyQpoGSkJcpRrBF5+2aCAockZ9ZAhaOFozqYEH+ELUFYfUUeCKFkTRphkS8ZdgvDdiTE+WvZGsy4Zy3uzEP+sxEgf4y2tWvCUogu8NPHtwtZHmyEMSk7uFcsrA7I2vbzxSDetS5ELsWaiTx222n8Zwm1HjTlMBEf1pCwtRuQ5GxXmKPHkuL/HMsV/atpLfyoqpUDn17E0Lw5mLMehiG15KrO/oxpxvR/Lwt8cY9tCV8+OuHZUwf3QTEj7vCK2CkCUcpxsiMlUBx+MBylyD+EPMcDYhi3b/enhbUaZ0xa+Jy2VEFLT6IXBmSzV+WZ4gnG+DIOd3fd+XL5E6sWSMa3Or4OGpaSHSXX6wpjBfS8psqff/rTjmi1DHJ2RfHsPKNOB4Geus+pHnzuBSoAdoSNio5exxmnweiaCEaVyNSwWeXboulgQ7oA71e2fUJQYe84eASAt3j1I/g11TzAju3rq9vtNqGb3O1fwXo95u5rq/4s2HGE3f6T0NCt++PyqyDoKat5d4fA0UHk2ELT0yZ5VXT5dYqffQuSVY96zNf30QnlLgNi9kG+oj/OXeSJUSTVw+kRc6GbZSkU8ZBqfxTLcsrOJILrRToHjK9szCTRjYIx0b0YcZD5SOf5TUug6stuwPwibXKq/xnye7gsR9qqWWp2zLlEV63YBS/LLjSGnmKJkiySyMOpb1e4YFU5RGoMQy5gnvCYu+ X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jan 2021 06:59:03.0398 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 8b7ccbec-20e5-4be4-9b2f-08d8b859e08e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qeSXcPOPCICDCwBl844bHQSzZTol32Z4wrN7SWqRBVivhNSrSIXxUMCLBrwXjYsowylAXI2TBdSpXyMX91BTwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4634 X-Mailman-Approved-At: Thu, 14 Jan 2021 13:25:35 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
[01/13] imx: lowlevel: implement armv8_el2_to_aarch32
|
expand
|
diff --git a/arch/arm/mach-imx/lowlevel.S b/arch/arm/mach-imx/lowlevel.S index 158fdb7d87..c500aa8123 100644 --- a/arch/arm/mach-imx/lowlevel.S +++ b/arch/arm/mach-imx/lowlevel.S @@ -20,3 +20,26 @@ ENTRY(lowlevel_init) isb ret ENDPROC(lowlevel_init) + +/* + * Switch from AArch64 EL2 to AArch32 EL2 + * @param inputs: + * x0: argument, zero + * x1: machine nr + * x2: fdt address + * x3: input argument + * x4: kernel entry point + * @param outputs for secure firmware: + * x0: function id + * x1: kernel entry point + * x2: machine nr + * x3: fdt address +*/ +.global armv8_el2_to_aarch32 +armv8_el2_to_aarch32: + mov x3, x2 + mov x2, x1 + mov x1, x4 + ldr x0, =0xc20000fd + smc #0 + ret