[U-Boot] [U-Boot, v10, 03/10] sandbox: Align RAM buffer to the machine page size

Alexander Graf agraf at suse.de
Sat Sep 15 07:54:20 UTC 2018


> At present the sandbox RAM buffer is not aligned to any particular
> address boundary. This makes the internal pointers somewhat random with
> respect to the associated RAM buffer addresses.
> 
> Align the buffer to the page size of the machine to help with this. Note
> that there is a header at the start of the allocated pointer. To avoid
> returning a pointer which is not aligned to a page boundary, we waste
> almost an entire page of memory for each allocation.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Thanks, applied to efi-next

Alex



More information about the U-Boot mailing list