Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/63711 )
Change subject: lib/coreboot_table.c: Use align macro ......................................................................
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 --- M src/lib/coreboot_table.c 1 file changed, 1 insertion(+), 3 deletions(-)
Approvals: build bot (Jenkins): Verified Felix Held: Looks good to me, approved
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';