u-boot/arch/x86/lib
Heinrich Schuchardt 52c62acc34 x86: all firmware tables must be paragraph aligned
On qemu-x86_64_defconfig the following was observed:

    => efidebug tables
    00000000000f0074  eb9d2d31-2d88-11d3-9a16-0090273fc14d  SMBIOS table

The SMBIOS configuration table does not point to a paragraph-aligned
(16 byte aligned) address. The reason is that in write_tables() rom_addr is
not aligned and copied to gd->arch.smbios_start.

The Simple Firmware Interface requires that the SFI table is paragraph-
aligned but our code does not guarantee this.

As all tables written in write_tables() must be paragraph-aligned, we
should implement the address rounding in write_tables() and not in table
specific routines like copy_pirq_routing_table().

Add paragraph-alignment in write_tables().

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2024-04-20 10:15:03 +02:00
..
coreboot x86: coreboot: Record the position of the SMBIOS tables 2023-09-22 06:05:40 +08:00
fsp x86: fsp: Use mtrr_set_next_var() for graphics memory 2023-08-01 10:06:46 +08:00
fsp1 x86: Convert arch_fsp_init() to use events 2023-08-31 13:16:54 -04:00
fsp2 x86: Convert arch_fsp_init() to use events 2023-08-31 13:16:54 -04:00
acpi.c
acpi_nhlt.c acpi: rename aslc_id, aslc_revision 2024-03-27 09:15:39 +01:00
acpi_s3.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
acpi_table.c acpi: rename aslc_id, aslc_revision 2024-03-27 09:15:39 +01:00
acpigen.c x86: acpi: Add PCT and PTC tables 2020-09-25 11:27:18 +08:00
asm-offsets.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bdinfo.c x86: Record the start and end of the tables 2023-07-17 17:23:08 +08:00
bios.c x86: Correct copying of BIOS mode information 2023-08-09 23:31:11 +08:00
bios.h
bios_asm.S WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
bios_interrupts.c
bootm.c bootm: Adjust arguments of boot_os_fn 2023-12-21 16:07:52 -05:00
cmd_boot.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
coreboot_table.c video: Renname vbe.h to vesa.h 2022-08-12 08:14:23 -04:00
crt0_ia32_efi.S
crt0_x86_64_efi.S
div64.c
e820.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
early_cmos.c
elf_ia32_efi.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
elf_x86_64_efi.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
hob.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
i8254.c x86: i8254: Include required ibmpc.h header 2023-08-09 23:31:12 +08:00
i8259.c
init_helpers.c x86: broadwell: Set up MTRRs 2023-09-22 06:03:46 +08:00
interrupts.c x86: Show the interrupt pointer with 'irqinfo' 2020-11-06 09:51:29 +08:00
lpc-uclass.c treewide: Simply conditions with the new OF_REAL 2021-09-25 09:46:15 -06:00
Makefile Revert "Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled"" 2024-04-18 08:29:35 -06:00
mpspec.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mrccache.c x86: Convert some debug statements to use logging 2023-07-17 17:23:14 +08:00
northbridge-uclass.c
physmem.c x86: Drop CFG_SYS_STACK_SIZE 2023-08-09 23:31:12 +08:00
pinctrl_ich6.c dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
pirq_routing.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pmu.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
ramtest.c
reloc_ia32_efi.c
reloc_x86_64_efi.c
relocate.c treewide: unify the linker symbol reference format 2023-08-09 09:21:42 -04:00
scu.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
sections.c treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
sfi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
spl.c Revert "Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled"" 2024-04-18 08:29:35 -06:00
string.c
tables.c x86: all firmware tables must be paragraph aligned 2024-04-20 10:15:03 +02:00
tpl.c x86: Add some log categories 2023-09-22 06:03:46 +08:00
zimage.c x86: zboot: Use zboot_start() in zboot_run() 2024-04-10 13:49:16 -06:00