[PATCH v2 2/3] sandbox: align LMB memory

Tom Rini trini at konsulko.com
Mon Jun 9 17:51:34 CEST 2025


On Sun, Jun 08, 2025 at 09:54:27AM +0200, Heinrich Schuchardt wrote:

> To implement the EFI_SYSTEM_TABLE_POINTER we need 4 MiB aligned
> memory.
> 
> On the sandbox LMB uses addresses relative to the start of a page aligned
> RAM buffer allocated with mmap(). This leads to a mismatch of alignment
> between EFI which uses pointers and LMB which uses phys_addr_t.
> 
> Ensure that the RAM buffer used for LMB is 4 MiB aligned.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250609/6d4939ea/attachment.sig>


More information about the U-Boot mailing list