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>
This commit is contained in:
parent
879c0d7edf
commit
f509b617b0
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue