summaryrefslogtreecommitdiff
path: root/src/cpu/x86/mirror_payload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/x86/mirror_payload.c')
-rw-r--r--src/cpu/x86/mirror_payload.c2
1 files changed, 1 insertions, 1 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);