aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-09-19 21:00:15 -0600
committerBin Meng <bmeng@tinylab.org>2023-09-22 06:05:40 +0800
commit50834884a8159845475fdc28ac196a41fe4d4915 (patch)
treede74554a4ac0e047047d3addb117cba425483aeb /arch/x86/lib
parent1b1d36ec58f43585081b387ee44053278e480171 (diff)
downloadu-boot-50834884a8159845475fdc28ac196a41fe4d4915.zip
u-boot-50834884a8159845475fdc28ac196a41fe4d4915.tar.gz
u-boot-50834884a8159845475fdc28ac196a41fe4d4915.tar.bz2
Record the position of the SMBIOS tables
Remember where these end up so that we can pass this information on to the EFI layer. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/tables.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/lib/tables.c b/arch/x86/lib/tables.c
index 67bc0a7..5b5070f 100644
--- a/arch/x86/lib/tables.c
+++ b/arch/x86/lib/tables.c
@@ -97,6 +97,9 @@ int write_tables(void)
int size = table->size ? : CONFIG_ROM_TABLE_SIZE;
u32 rom_table_end;
+ if (!strcmp("smbios", table->name))
+ gd->arch.smbios_start = rom_addr;
+
if (IS_ENABLED(CONFIG_BLOBLIST_TABLES) && table->tag) {
if (!gd->arch.table_end)
gd->arch.table_end = rom_addr;