payloads,src: Replace ALIGN(x, a) by ALIGN_UP(x, a) for clarity
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: I80f3d2c90c58daa62651f6fd635c043b1ce38b84 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68255 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
		@@ -228,7 +228,7 @@ void *bootmem_allocate_buffer(size_t size)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* 4KiB alignment. */
 | 
			
		||||
	size = ALIGN(size, 4096);
 | 
			
		||||
	size = ALIGN_UP(size, 4096);
 | 
			
		||||
	region = NULL;
 | 
			
		||||
	memranges_each_entry(r, &bootmem) {
 | 
			
		||||
		if (range_entry_base(r) >= max_addr)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user