From d6b6b2261667f0a4688fa0cf9f0699596d7efc93 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Mon, 10 Oct 2022 12:34:21 +0200 Subject: payloads,src: Replace ALIGN(x, a) by ALIGN_UP(x, a) for clarity Signed-off-by: Elyes Haouas Change-Id: I80f3d2c90c58daa62651f6fd635c043b1ce38b84 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68255 Tested-by: build bot (Jenkins) Reviewed-by: Fred Reitberger Reviewed-by: Felix Held --- src/soc/intel/quark/memmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/intel/quark') diff --git a/src/soc/intel/quark/memmap.c b/src/soc/intel/quark/memmap.c index 97a9fd88f2..46671b2414 100644 --- a/src/soc/intel/quark/memmap.c +++ b/src/soc/intel/quark/memmap.c @@ -12,7 +12,7 @@ void fill_postcar_frame(struct postcar_frame *pcf) /* Locate the top of RAM */ top_of_low_usable_memory = (uintptr_t) cbmem_top(); - top_of_ram = ALIGN(top_of_low_usable_memory, 16 * MiB); + top_of_ram = ALIGN_UP(top_of_low_usable_memory, 16 * MiB); /* Cache postcar and ramstage */ postcar_frame_add_mtrr(pcf, top_of_ram - (16 * MiB), 16 * MiB, -- cgit v1.2.3