[PATCH 11/27] vbe: Avoid accessing TEXT_BASE if undefined

Simon Glass sjg at chromium.org
Wed May 28 10:24:37 CEST 2025


Use a condition to ensure this symbol is not accessed in the EFI app.

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

 boot/vbe_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boot/vbe_common.c b/boot/vbe_common.c
index a86986d86e9..f9368a6a9ab 100644
--- a/boot/vbe_common.c
+++ b/boot/vbe_common.c
@@ -174,7 +174,7 @@ int vbe_read_fit(struct udevice *blk, ulong area_offset, ulong area_size,
 	 * external data, so this is quite small, perhaps a few KB.
 	 */
 	if (IS_ENABLED(CONFIG_SANDBOX)) {
-		addr = CONFIG_VAL(TEXT_BASE);
+		addr = IF_ENABLED_INT(CONFIG_SANDBOX, CONFIG_VAL(TEXT_BASE));
 		buf = map_sysmem(addr, size);
 	} else {
 		buf = malloc(aligned_size);
-- 
2.43.0



More information about the U-Boot mailing list