diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-09-11 12:06:07 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-09-12 15:27:30 +0000 |
commit | 2cd41c63717da6668470d3f0b6be0d383029bbe7 (patch) | |
tree | 3065db93258fcabc727a77d77c2c5a9c5cf40df5 /src/mainboard | |
parent | d0827aace33c1cded9e15736657937dda794eaea (diff) |
mb/asus/f2a85-m/irq_tables.c: Use ALIGN_UP macro
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Change-Id: I223282147b3265133b8b249368cfe4cdf4cafa5c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67506
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/asus/f2a85-m/irq_tables.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <arch/pirq_routing.h> #include <console/console.h> +#include <commonlib/bsd/helpers.h> #include <device/pci_def.h> #include <stdint.h> #include <string.h> @@ -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); |