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/mainboard/emulation/qemu-i440fx/fw_cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainboard/emulation') diff --git a/src/mainboard/emulation/qemu-i440fx/fw_cfg.c b/src/mainboard/emulation/qemu-i440fx/fw_cfg.c index 3206e4cec7..5c23988ba6 100644 --- a/src/mainboard/emulation/qemu-i440fx/fw_cfg.c +++ b/src/mainboard/emulation/qemu-i440fx/fw_cfg.c @@ -249,7 +249,7 @@ unsigned long fw_cfg_acpi_tables(unsigned long start) uint64_t addr8; switch (s[i].command) { case BIOS_LINKER_LOADER_COMMAND_ALLOCATE: - current = ALIGN(current, s[i].alloc.align); + current = ALIGN_UP(current, s[i].alloc.align); if (fw_cfg_check_file(&f, s[i].alloc.file)) goto err; @@ -329,7 +329,7 @@ unsigned long fw_cfg_acpi_tables(unsigned long start) printk(BIOS_DEBUG, "QEMU: loaded ACPI tables from fw_cfg.\n"); free(s); free(addrs); - return ALIGN(current, 16); + return ALIGN_UP(current, 16); err: printk(BIOS_DEBUG, "QEMU: loading ACPI tables from fw_cfg failed.\n"); -- cgit v1.2.3