]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
smbios: Correct gd_smbios_start()
authorSimon Glass <sjg@chromium.org>
Sun, 31 Dec 2023 15:25:48 +0000 (08:25 -0700)
committerSimon Glass <sjg@chromium.org>
Sun, 7 Jan 2024 20:45:06 +0000 (13:45 -0700)
This should access arch-specific properties. Fix it and update the
existing usage.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/asm-generic/global_data.h
lib/efi_loader/efi_smbios.c

index 99bde9ec7e4bddb42f67de29f69f0dac81be7512..fcc3c6e14ca3db6ed3a0401986e0c9eb4c5cb82e 100644 (file)
@@ -553,7 +553,7 @@ static_assert(sizeof(struct global_data) == GD_SIZE);
 #endif
 
 #ifdef CONFIG_SMBIOS
-#define gd_smbios_start()      gd->smbios_start
+#define gd_smbios_start()      gd->arch.smbios_start
 #define gd_set_smbios_start(addr)      gd->arch.smbios_start = addr
 #else
 #define gd_smbios_start()      0UL
index bbb8421ce149229a7395e797aa60e631af6a76c0..49adc87e45a319096eb0e61312418a943154c947 100644 (file)
@@ -28,7 +28,7 @@ efi_status_t efi_smbios_register(void)
        ulong addr;
        efi_status_t ret;
 
-       addr = gd->arch.smbios_start;
+       addr = gd_smbios_start();
        if (!addr) {
                log_err("No SMBIOS tables to install\n");
                return EFI_NOT_FOUND;