summaryrefslogtreecommitdiff
path: root/src/lib/coreboot_table.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-04-19 12:05:28 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-04-20 14:43:50 +0000
commitf509b617b010f67cf2bc47e1eb03dff498980fcc (patch)
treec5e887d30636beed611dd8d8582e6033afdf53f5 /src/lib/coreboot_table.c
parent879c0d7edf401b7d8305a3e388d93a074bdae15d (diff)
lib/coreboot_table.c: Use align macro
Change-Id: Ie874fe2c023157fad0adc021faa45e70822208da Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63711 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/lib/coreboot_table.c')
-rw-r--r--src/lib/coreboot_table.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index c29d3081b5..698118c75a 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -37,9 +37,7 @@ static struct lb_header *lb_table_init(unsigned long addr)
{
struct lb_header *header;
- /* 16 byte align the address */
- addr += 15;
- addr &= ~15;
+ addr = ALIGN_UP(addr, 16);
header = (void *)addr;
header->signature[0] = 'L';