commit | f509b617b010f67cf2bc47e1eb03dff498980fcc | [log] [tgz] |
---|---|---|
author | Arthur Heymans <arthur@aheymans.xyz> | Tue Apr 19 12:05:28 2022 +0200 |
committer | Felix Held <felix-coreboot@felixheld.de> | Wed Apr 20 14:43:50 2022 +0000 |
tree | c5e887d30636beed611dd8d8582e6033afdf53f5 | |
parent | 879c0d7edf401b7d8305a3e388d93a074bdae15d [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>
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c index c29d308..698118c 100644 --- a/src/lib/coreboot_table.c +++ b/src/lib/coreboot_table.c
@@ -37,9 +37,7 @@ { 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';