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>
This commit is contained in:
		@@ -39,7 +39,7 @@ struct cpu_info *cpu_info(void)
 | 
				
			|||||||
	"feature, make sure you add the proper assertions " \
 | 
						"feature, make sure you add the proper assertions " \
 | 
				
			||||||
	"(and maybe consider revising the whole thing to work closer to what " \
 | 
						"(and maybe consider revising the whole thing to work closer to what " \
 | 
				
			||||||
	"arm64 is doing now)."
 | 
						"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);
 | 
							CONFIG_STACK_SIZE);
 | 
				
			||||||
	addr -= sizeof(struct cpu_info);
 | 
						addr -= sizeof(struct cpu_info);
 | 
				
			||||||
	return (void *)addr;
 | 
						return (void *)addr;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user