arch-x86/smbios: use ALIGN_UP instead of ALIGN for better readability
ALIGN_UP is an alias for ALIGN. Change-Id: Ie723ebe80f8f627021151413cb43adce6c88a0dc Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33628 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
3f17c3b33f
commit
fcbb3c5747
|
@ -1150,12 +1150,12 @@ unsigned long smbios_write_tables(unsigned long current)
|
||||||
int max_struct_size = 0;
|
int max_struct_size = 0;
|
||||||
int handle = 0;
|
int handle = 0;
|
||||||
|
|
||||||
current = ALIGN(current, 16);
|
current = ALIGN_UP(current, 16);
|
||||||
printk(BIOS_DEBUG, "%s: %08lx\n", __func__, current);
|
printk(BIOS_DEBUG, "%s: %08lx\n", __func__, current);
|
||||||
|
|
||||||
se = (struct smbios_entry *)current;
|
se = (struct smbios_entry *)current;
|
||||||
current += sizeof(struct smbios_entry);
|
current += sizeof(struct smbios_entry);
|
||||||
current = ALIGN(current, 16);
|
current = ALIGN_UP(current, 16);
|
||||||
|
|
||||||
tables = current;
|
tables = current;
|
||||||
update_max(len, max_struct_size, smbios_write_type0(¤t,
|
update_max(len, max_struct_size, smbios_write_type0(¤t,
|
||||||
|
|
Loading…
Reference in New Issue