Message ID | 20250819185900.835939-4-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=1755630031; bh=dVMKQ8oysW20INe9eKfj62GpozyA+4LOO/gj6UfusGo=; 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=A8x/GXuYUXcimaDpn+v/rVyJDmPQpxi76/tqAiu0kH/VYNCdNXR0o555DLV+rd8FY tGEhU3lxGZmEQx9w0WGjJtwd//nk4uqcM83a3SYIkPe107YIWRS/iEvytC0gosXLX4 9EHbCs8Qg8wqy4jdcgkFoGiM+e3f8G7DXkiGW/6LF/U6nj7Y8FSYZhyjIlV8kYh1qY HRGH7b6CL1zqDF1t5ZXLYsf28H+lTxiOWsGMhl0sYVsr5uxSisGKWZwRBr3UNYcJHS A3MT3A4sKrV5th/SXxncOo3URpR56XLR4By4y5nTScO9V0mZrlo2+ia7EFladJuVc/ pGYxrrwVZHZQg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0E1A2675FC for <u-boot-concept@u-boot.org>; Tue, 19 Aug 2025 13:00:31 -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 opSolWVrHNGb for <u-boot-concept@u-boot.org>; Tue, 19 Aug 2025 13:00:31 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630030; bh=dVMKQ8oysW20INe9eKfj62GpozyA+4LOO/gj6UfusGo=; 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=IxMuEhDTfFQ5R6YKoW5TIOCeeuX8tz/nR6QlNrNfA0splf1g3C8yhVrELG1buGTpk mMUnFqQmxCkEECJkj4W3z5ERQ5J1NW5qARwylqu+1cPiOeoUfPZjoRygBbs+VveSPZ sRVlAYKINI9cN5dCyzV8sPZCZDigY2F31q9roFG9tJOJNllnN+Jzy55bwql1a3Ru4g MCCPydfvGX9p/4YlgqCA0DYutily9aR1jLTmmXcRKzwd8bl1EfBZVrRYra6QCkGYw5 KyHsDskNGOIjTBKM5pf7NenwFXJmZ+uSojs5av2VQHlPBYqSEkHeV1eOKAPHtc4qsp zlG4fSOwgSmdQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id F1DF0675F2 for <u-boot-concept@u-boot.org>; Tue, 19 Aug 2025 13:00:30 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630028; bh=iigmcJMCIE0IN1Ihchr+om/S0KqTQ2g2PKxqFHYQd9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j2RCNKPqtLuWdiro5jzlUgUYVsZX7jz1dSs2hO/qBEWMl6rpPa6L8ErRUHSeypM0e KBHXYZfAGUkaTFxxiY8+5V/WTMocBKKUjFx1opnJw22KwCJmdSZtGE/jJgeSl1DYHJ fd0moxkUeAbDRIh15wk0Own5Q7QkXDfkNlwQaxR/TlqTEVn9FE/I/jlAg3lOGDWUdU rCbVw2UdOjvhju0Jo2wLRq/2zOL46TP9Q1RPzsA/xj72+AEGaJ8EsHxG5NNgJjAFG0 HCLOiuy70OhIqIt9T5T8/LWmxtzLtYmIbO/pXsP0MIVrgnWkNkjW4GMK78cxtCu2SK BDTpi16puMYZw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 85AC4675DE; Tue, 19 Aug 2025 13:00:28 -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 Jyem7ZejM39F; Tue, 19 Aug 2025 13:00:28 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630027; bh=2JqiDZxcunmeRsvMu01tQfHlurxjR+6jUrga158N4qs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f+p/QbUwupzfnmGKfXhu2/WlUMgz0vxUAsoKh2zrki0FmTG/kufWb7GR7Tt6QPUCH 4Y/RJ3lZr10s8PzL42raYIbV1ox8Ts8WsRDcaexQ3S4ZI2MVrB+LoAGrWukccuXdlr ZykFUFYkp6gv7iUfiSqmII3FpRUmEHYgrr+Gr5vn0xUqD7cL3I7GBSohWNjHTqXhTc XBMItUzPnkSo+gS2kUqgchm0bvB77s/Lw2e4gwoWaSFQCdUmsiD9b/NBFHVnd+9Hld q8b6OcL2KQcdCIOCWgx3wMXbZVzYg1Cz15hFje4P8LfwhnNDePsjewAqeyAuaPR1Y1 GiS+o1DiYARoA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id C88C6675F2; Tue, 19 Aug 2025 13:00:26 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 19 Aug 2025 12:58:34 -0600 Message-ID: <20250819185900.835939-4-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: ZYMKN5TDAJKX52OAW6Z7UCNDWU7BV7GB X-Message-ID-Hash: ZYMKN5TDAJKX52OAW6Z7UCNDWU7BV7GB 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: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 03/22] arm: Show the exception level with bdinfo 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/ZYMKN5TDAJKX52OAW6Z7UCNDWU7BV7GB/> 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: Improvements for the EFI app on ARM
|
|
Commit Message
Simon Glass
Aug. 19, 2025, 6:58 p.m. UTC
From: Simon Glass <sjg@chromium.org> Some machines start U-Boot in a different exception level, so provide a way to view it. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v2: - Use the existing current_el() function arch/arm/lib/bdinfo.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/arch/arm/lib/bdinfo.c b/arch/arm/lib/bdinfo.c index 73033310879..d7426efbd7c 100644 --- a/arch/arm/lib/bdinfo.c +++ b/arch/arm/lib/bdinfo.c @@ -11,6 +11,7 @@ #include <init.h> #include <asm/global_data.h> #include <asm/mach-types.h> +#include <asm/system.h> DECLARE_GLOBAL_DATA_PTR; @@ -61,4 +62,7 @@ void arch_print_bdinfo(void) printf("Early malloc usage: %x / %x\n", gd->malloc_ptr, CONFIG_VAL(SYS_MALLOC_F_LEN)); #endif +#ifdef CONFIG_ARM64 + lprint_num_l("CurrentEL", current_el()); +#endif }