
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 } -- 2.43.0