cpu/x86: use ALIGN_UP instead of ALIGN for better readability
Change-Id: I0afb81740973a0c841ebe6cce984e135e5c395e6 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33635 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
parent
e56bf31824
commit
f0cbb09a62
|
@ -42,7 +42,7 @@ void mirror_payload(struct prog *payload)
|
|||
alignment_diff = (intra_cacheline_mask & (uintptr_t)src);
|
||||
size += alignment_diff;
|
||||
|
||||
size = ALIGN(size, cacheline_size);
|
||||
size = ALIGN_UP(size, cacheline_size);
|
||||
|
||||
printk(BIOS_DEBUG, "Payload aligned size: 0x%zx\n", size);
|
||||
|
||||
|
|
|
@ -321,7 +321,7 @@ static atomic_t *load_sipi_vector(struct mp_params *mp_params)
|
|||
module_size = rmodule_memory_size(&sipi_mod);
|
||||
|
||||
/* Align to 4 bytes. */
|
||||
module_size = ALIGN(module_size, 4);
|
||||
module_size = ALIGN_UP(module_size, 4);
|
||||
|
||||
if (module_size > loc_size) {
|
||||
printk(BIOS_CRIT, "SIPI module size (%d) > region size (%d).\n",
|
||||
|
|
Loading…
Reference in New Issue