Arthur Heymans has uploaded this change for review. ( 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 --- M src/lib/coreboot_table.c 1 file changed, 1 insertion(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/63711/1
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c index 402b41b..217f370 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';