Message ID | 20250828020732.981415-3-sjg@u-boot.org |
---|---|
State | New |
Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756346874; bh=CBzvv0IRD0gftzleHgag4HVNaUYIhgVtP/0MS0ve3rg=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=esKOPiOXF1xaOn4AKLomwnVhJKvQETHXk8xf+5zbc+HMeqHJC/tyNdNrFIgKGekrg nTsgVapY2xyT+uXOJyVNuiJYCUP07/NVjFZ+V23RzEaSuxfNFXdG0UPtRy9AbHHBKM BnP6UZBBcpcIr7sE4SNKRRA+YFrVwjqEBuHNGFqH9h7BFWJDrZCfcmL0Zd8AmXDREL 8hosuyLFvPITZrOsAmukdsu0AVfKcooJBAgJytnvjmxTJaHyGi1CPI0SRk7bm7RaRF DvJ6QH/7h5p5cs9Upwih7MGeOz3ZK4oI9f+tjTCMuaiQuzB336O9/ezMsv9vsxCgEl zjDcolsHnuTIQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 975C867821 for <u-boot-concept@u-boot.org>; Wed, 27 Aug 2025 20:07:54 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id BHcI8PWdAP-G for <u-boot-concept@u-boot.org>; Wed, 27 Aug 2025 20:07:54 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756346874; bh=CBzvv0IRD0gftzleHgag4HVNaUYIhgVtP/0MS0ve3rg=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=esKOPiOXF1xaOn4AKLomwnVhJKvQETHXk8xf+5zbc+HMeqHJC/tyNdNrFIgKGekrg nTsgVapY2xyT+uXOJyVNuiJYCUP07/NVjFZ+V23RzEaSuxfNFXdG0UPtRy9AbHHBKM BnP6UZBBcpcIr7sE4SNKRRA+YFrVwjqEBuHNGFqH9h7BFWJDrZCfcmL0Zd8AmXDREL 8hosuyLFvPITZrOsAmukdsu0AVfKcooJBAgJytnvjmxTJaHyGi1CPI0SRk7bm7RaRF DvJ6QH/7h5p5cs9Upwih7MGeOz3ZK4oI9f+tjTCMuaiQuzB336O9/ezMsv9vsxCgEl zjDcolsHnuTIQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 72BCE6780A for <u-boot-concept@u-boot.org>; Wed, 27 Aug 2025 20:07:54 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756346872; bh=6U+ToJHf+pYVr2nZ/+gDyZ+2s9meLhJTfdgkz4Wp4F4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TShhOz1hiUkK4vxHhioGXN53y1oFVg/cs0v0CRHssqvIVkZww9IypPU3InhYcJAZG 23H2/NTCq+8e2Chn7rcWWDICId+3JxGfVUaW9DMVa4PDWPUW6tiFNNJQjEJ4PkgZnD Wksi0lysZXT1D+IdSPzdQ1mzdKIH9hbnZNXHSl1VHHSRPB3Sc6VtPRN+yVkKn0TCzW RPkpgQJ/6/3J/J5h5woI1cTr9mJrKvYcwcdR1wVcFs0eUYFq/u4FzWxUElZ+WcWKdL QdGK8Bo3TQ14iGtNWPPwswGP1cqcZO4Z/O9bPLV8Hu6pAjRDjH/EB71xrPJlcf8bg2 MfOp+tGxy6GYg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 066986777F; Wed, 27 Aug 2025 20:07:52 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id zxEE_HGTV9q3; Wed, 27 Aug 2025 20:07:51 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756346870; bh=5goLnHlazoVD0fRtrevSFiYKDxBfNfXnTNjk19kujm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EZw6Zki/Ns0VVTQEbxWWQApWXLt2cBZlx9a6KG85UekjGmMt+LqZ/HxM5m5/VxxvY nQQHPT83+G1VHRQp9W3G03ZpjNEGoLhzxjLeTVSXeOMW7VYSEKWHhqGD0YseJ8H1B8 bGJGPmQcunCbvcULh8qI4lZvlqkkoBgAN4jiVJzLcSnMMwMw6XVgodl8EZpP5LgSNz ecKY/1n55sTwTsVuGWLVINR5kP28tPjZbO2RrjmlYAS4mZ20gvaoa+ImATAOO8R8jd LbIXuNn0sY7d8Qdb4x0b8TgXtXpPU0Oz7xkl2aCm3WyPCb+pPp6bJZrxsF2NQyj+3/ 0YmT3n/kD3ZfQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 17FC26777E; Wed, 27 Aug 2025 20:07:50 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 27 Aug 2025 20:07:05 -0600 Message-ID: <20250828020732.981415-3-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250828020732.981415-1-sjg@u-boot.org> References: <20250828020732.981415-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: LCE5UCVQRPGW7FBUDYNSSEPH3NZD6PSC X-Message-ID-Hash: LCE5UCVQRPGW7FBUDYNSSEPH3NZD6PSC X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 02/20] efi: app: Avoid switching exception levels on ARM List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/LCE5UCVQRPGW7FBUDYNSSEPH3NZD6PSC/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
efi: App and devicetree improvements
|
|
Commit Message
Simon Glass
Aug. 28, 2025, 2:07 a.m. UTC
From: Simon Glass <sjg@chromium.org> The EFI app runs under the environment provided to it and is not allowed to change the exception level. Remove this call for the app. Signed-off-by: Simon Glass <sjg@chromium.org> --- lib/efi_client/app_run.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/efi_client/app_run.c b/lib/efi_client/app_run.c index d2519985c87..03cc29778d8 100644 --- a/lib/efi_client/app_run.c +++ b/lib/efi_client/app_run.c @@ -31,7 +31,8 @@ static efi_status_t do_bootefi_exec(efi_handle_t handle, void *load_options) efi_status_t ret; /* On ARM switch from EL3 or secure mode to EL2 or non-secure mode */ - switch_to_non_secure_mode(); + if (!IS_ENABLED(CONFIG_EFI_APP)) + switch_to_non_secure_mode(); /* TODO(sjg@chromium.org): Set watchdog */