smbios: Correct gd_smbios_start()
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>
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user