diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2019-06-20 14:45:16 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2019-06-21 12:50:22 +0000 |
commit | f0cbb09a624b8d7e06d744857331aa9c8810d72f (patch) | |
tree | d17183d9e22772cfddab8d4d1b81dfa3722bfe2c /src/cpu/x86/mirror_payload.c | |
parent | e56bf318243f1b541a06e0c52e040a943dbf62bf (diff) |
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>
Diffstat (limited to 'src/cpu/x86/mirror_payload.c')
-rw-r--r-- | src/cpu/x86/mirror_payload.c | 2 |
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); |