diff mbox series

[v8,09/25] efi: Fix ll_boot_init() operation with the app

Message ID 20211229185759.1432518-9-sjg@chromium.org
State Accepted, archived
Commit 9079486461c369df3f5a1d8bfb5003f8769554dc
Delegated to: Heinrich Schuchardt
Headers show
Series efi: Improvements to U-Boot running on top of UEFI | expand

Commit Message

Simon Glass Dec. 29, 2021, 6:57 p.m. UTC
This should return false when the EFI app is running, since UEFI has done
the required low-level init. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v8:
- Tidy up the comment as well

 include/init.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Comments

Heinrich Schuchardt Dec. 31, 2021, 4:58 a.m. UTC | #1
On 12/29/21 19:57, Simon Glass wrote:
> This should return false when the EFI app is running, since UEFI has done
> the required low-level init. Fix it.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
diff mbox series

Patch

diff --git a/include/init.h b/include/init.h
index f2cd46dead0..dcd682c1bf6 100644
--- a/include/init.h
+++ b/include/init.h
@@ -14,8 +14,11 @@ 
 
 #include <linux/types.h>
 
-/* Avoid using CONFIG_EFI_STUB directly as we may boot from other loaders */
-#ifdef CONFIG_EFI_STUB
+/*
+ * In case of the EFI app the UEFI firmware provides the low-level
+ * initialisation.
+ */
+#ifdef CONFIG_EFI
 #define ll_boot_init()	false
 #else
 #include <asm/global_data.h>