From d6b6b2261667f0a4688fa0cf9f0699596d7efc93 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Mon, 10 Oct 2022 12:34:21 +0200 Subject: payloads,src: Replace ALIGN(x, a) by ALIGN_UP(x, a) for clarity Signed-off-by: Elyes Haouas Change-Id: I80f3d2c90c58daa62651f6fd635c043b1ce38b84 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68255 Tested-by: build bot (Jenkins) Reviewed-by: Fred Reitberger Reviewed-by: Felix Held --- src/soc/intel/denverton_ns/acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/soc/intel/denverton_ns/acpi.c') diff --git a/src/soc/intel/denverton_ns/acpi.c b/src/soc/intel/denverton_ns/acpi.c index 808affa67f..399bb64713 100644 --- a/src/soc/intel/denverton_ns/acpi.c +++ b/src/soc/intel/denverton_ns/acpi.c @@ -152,7 +152,7 @@ unsigned long southcluster_write_acpi_tables(const struct device *device, acpi_header_t *ssdt2; current = acpi_write_hpet(device, current, rsdp); - current = (ALIGN(current, 16)); + current = (ALIGN_UP(current, 16)); ssdt2 = (acpi_header_t *)current; memset(ssdt2, 0, sizeof(acpi_header_t)); @@ -162,7 +162,7 @@ unsigned long southcluster_write_acpi_tables(const struct device *device, acpi_add_table(rsdp, ssdt2); printk(BIOS_DEBUG, "ACPI: * SSDT2 @ %p Length %x\n", ssdt2, ssdt2->length); - current = (ALIGN(current, 16)); + current = (ALIGN_UP(current, 16)); } else { ssdt2 = NULL; printk(BIOS_DEBUG, "ACPI: * SSDT2 not generated.\n"); -- cgit v1.2.3