diff options
| author | Heinrich Schuchardt <[email protected]> | 2025-06-08 09:54:27 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-06-26 13:45:33 -0600 |
| commit | 5c8de1bcfb0024993d902fb5dcfe87546116799b (patch) | |
| tree | 5436cac5a328331074de9da0c685f4735cada24b /include | |
| parent | d50fd7f91168576918d1b4a6394bf57767ed7cc4 (diff) | |
sandbox: align LMB memory
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 <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/configs/sandbox.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index db2ac7f83bb..44d4960d487 100644 --- a/include/configs/sandbox.h +++ b/include/configs/sandbox.h @@ -14,6 +14,8 @@ #define CFG_SYS_SDRAM_BASE 0 #define CFG_SYS_SDRAM_SIZE \ (SB_TO_UL(CONFIG_SANDBOX_RAM_SIZE_MB) << 20) +/** define SB_SDRAM_ALIGN - Alignment of emulated RAM */ +#define SB_SDRAM_ALIGN 0x400000 #define CFG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\ 115200} |
