[PATCH v2 16/29] efi: arm: Avoid enabling caches when running under EFI
Simon Glass
sjg at chromium.org
Sat Feb 8 18:11:36 CET 2025
The previous bootloader has already set up the cache, so don't try to do
it again.
This fixes a crash in QEMU when booting from EDK2
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
common/board_r.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/common/board_r.c b/common/board_r.c
index caac092c8e7..c4545e9b483 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -110,8 +110,9 @@ static int initr_reloc(void)
*/
static int initr_caches(void)
{
- /* Enable caches */
- enable_caches();
+ if (ll_boot_init())
+ enable_caches();
+
return 0;
}
#endif
--
2.43.0
More information about the U-Boot
mailing list