diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-01-17 02:45:06 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-01-18 14:05:00 +0000 |
commit | 68143e88a8d66d4a3ba09c220e03dd3d7471687d (patch) | |
tree | 1ecd607d63480e79d222009dca6e26615ea2a437 | |
parent | 8f1e00410778c322f9057c0d44756dfbdce4ba8d (diff) |
soc/amd/cezanne/agesa_acpi: use acpi_align_current to align IVRS & ALIB
This changes the alignment of the IVRS table from 8 bytes to 16 bytes
and aligns the ALIB table to a 16 byte boundary.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I4de66ab11508814da5d7fb440a1083a52551bcf5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72023
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
-rw-r--r-- | src/soc/amd/cezanne/agesa_acpi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/amd/cezanne/agesa_acpi.c b/src/soc/amd/cezanne/agesa_acpi.c index 4adf95952c..ce4753b092 100644 --- a/src/soc/amd/cezanne/agesa_acpi.c +++ b/src/soc/amd/cezanne/agesa_acpi.c @@ -13,10 +13,11 @@ uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current acpi_ivrs_t *ivrs; /* add ALIB SSDT from HOB */ + current = acpi_align_current(current); current = add_agesa_fsp_acpi_table(AMD_FSP_ACPI_ALIB_HOB_GUID, "ALIB", rsdp, current); /* IVRS */ - current = ALIGN_UP(current, 8); + current = acpi_align_current(current); ivrs = (acpi_ivrs_t *)current; acpi_create_ivrs(ivrs, acpi_fill_ivrs); current += ivrs->header.length; |