summaryrefslogtreecommitdiff
path: root/src/arch/arm
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2019-06-20 14:22:26 +0200
committerFelix Held <felix-coreboot@felixheld.de>2019-06-21 12:49:30 +0000
commite1d57f7610921471d5fef0c78f7f9bb054a6ada1 (patch)
tree71e9bfaa32d835ffbbd84eef89a3f03d893dfedf /src/arch/arm
parent84b5aa3f50bf0874be9554be432ed91bed64802b (diff)
downloadcoreboot-e1d57f7610921471d5fef0c78f7f9bb054a6ada1.tar.xz
arch/arm/cpu: use ALIGN_UP instead of ALIGN for better readability
Change-Id: Id0e281ece0a647721c18402029cd6980f75d5908 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33631 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/arch/arm')
-rw-r--r--src/arch/arm/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/arm/cpu.c b/src/arch/arm/cpu.c
index fae1a37efc..93d5675f35 100644
--- a/src/arch/arm/cpu.c
+++ b/src/arch/arm/cpu.c
@@ -39,7 +39,7 @@ struct cpu_info *cpu_info(void)
"feature, make sure you add the proper assertions " \
"(and maybe consider revising the whole thing to work closer to what " \
"arm64 is doing now)."
- uintptr_t addr = ALIGN((uintptr_t)__builtin_frame_address(0),
+ uintptr_t addr = ALIGN_UP((uintptr_t)__builtin_frame_address(0),
CONFIG_STACK_SIZE);
addr -= sizeof(struct cpu_info);
return (void *)addr;