From 2cd41c63717da6668470d3f0b6be0d383029bbe7 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 11 Sep 2022 12:06:07 +0200 Subject: mb/asus/f2a85-m/irq_tables.c: Use ALIGN_UP macro Signed-off-by: Elyes Haouas Change-Id: I223282147b3265133b8b249368cfe4cdf4cafa5c Reviewed-on: https://review.coreboot.org/c/coreboot/+/67506 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/mainboard/asus/f2a85-m/irq_tables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainboard/asus/f2a85-m') diff --git a/src/mainboard/asus/f2a85-m/irq_tables.c b/src/mainboard/asus/f2a85-m/irq_tables.c index a87ae3319e..a0997f88c4 100644 --- a/src/mainboard/asus/f2a85-m/irq_tables.c +++ b/src/mainboard/asus/f2a85-m/irq_tables.c @@ -2,6 +2,7 @@ #include #include +#include #include #include #include @@ -36,8 +37,7 @@ unsigned long write_pirq_routing_table(unsigned long addr) int i; /* Align the table to be 16 byte aligned. */ - addr += 15; - addr &= ~15; + addr = ALIGN_UP(addr, 16); /* This table must be between 0xf0000 & 0x100000 */ printk(BIOS_INFO, "Writing IRQ routing tables to 0x%lx...", addr); -- cgit v1.2.3