diff options
author | Simon Glass <sjg@chromium.org> | 2025-01-10 17:00:24 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-01-22 17:08:23 -0600 |
commit | 5a7e8839e4191299cd78755e0ff06e11ae15b2be (patch) | |
tree | 9e4a15e3a66e3566ecc08b61dc2ccc52b9ea2caa /arch/x86/lib/tables.c | |
parent | d013e80be7d2efa5f5afa27a50501faa5f89ee27 (diff) |
x86: Align the SMBIOS table to a 4K boundary
This isn't strictly needed, but with UPL we use the reserved-memory
nodes to indicate where the SMBIOS table is. Tianocore requires 4KB
alignment on these regions, so it is easier to adjust the alignment
to match.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib/tables.c')
-rw-r--r-- | arch/x86/lib/tables.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/lib/tables.c b/arch/x86/lib/tables.c index 9e4f21ae5ad..44fe80c5224 100644 --- a/arch/x86/lib/tables.c +++ b/arch/x86/lib/tables.c @@ -63,7 +63,11 @@ static struct table_info table_list[] = { { "acpi", write_acpi_tables, BLOBLISTT_ACPI_TABLES, SZ_64K, SZ_4K}, #endif #ifdef CONFIG_GENERATE_SMBIOS_TABLE - { "smbios", write_smbios_table, BLOBLISTT_SMBIOS_TABLES, SZ_4K, SZ_256}, + /* + * align this to a 4K boundary, since UPL adds a reserved-memory node + * for it + */ + { "smbios", write_smbios_table, BLOBLISTT_SMBIOS_TABLES, SZ_4K, SZ_4K}, #endif }; |