summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cpu/x86/mirror_payload.c2
-rw-r--r--src/cpu/x86/mp_init.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/x86/mirror_payload.c b/src/cpu/x86/mirror_payload.c
index 5f0493a510..6da21646fc 100644
--- a/src/cpu/x86/mirror_payload.c
+++ b/src/cpu/x86/mirror_payload.c
@@ -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);
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c
index b7b8fe2afa..9528149627 100644
--- a/src/cpu/x86/mp_init.c
+++ b/src/cpu/x86/mp_init.c
@@ -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",