diff options
| author | Kun Qin <kuqin@microsoft.com> | 2026-06-09 01:34:50 -0700 |
|---|---|---|
| committer | Kun Qin <kuqin@microsoft.com> | 2026-06-25 18:03:05 +0000 |
| commit | d698ebe25574ebc2bb9bfda57bdeb70c126b2257 (patch) | |
| tree | 9e535c3bc3435b4ec62538a41ed90cfd5710b4e7 | |
| parent | 5da9bc26bb5bfbb466a092d2169f0c82ea49b938 (diff) | |
| download | arm-trusted-firmware-d698ebe25574ebc2bb9bfda57bdeb70c126b2257.tar.gz arm-trusted-firmware-d698ebe25574ebc2bb9bfda57bdeb70c126b2257.zip | |
fix(qemu): add TB_FW_CONFIG_SIZE and TOS_FW_CONFIG_SIZE defines
The shared QEMU BL2 setup code in plat/qemu/common/qemu_bl2_setup.c
references TOS_FW_CONFIG_SIZE, and the sibling qemu_sbsa platform
already defines both TB_FW_CONFIG_SIZE and TOS_FW_CONFIG_SIZE. The
qemu platform was missing these and only defined the *_BASE and
*_LIMIT macros with PAGE_SIZE inlined.
Add the missing TB_FW_CONFIG_SIZE and TOS_FW_CONFIG_SIZE macros and
use them when computing the corresponding *_LIMIT values, so the
qemu platform matches qemu_sbsa and the common code resolves the
size correctly.
Change-Id: I1eda1402f99c748e79db198489ce2915aebe8cca
Signed-off-by: Kun Qin <kuqin@microsoft.com>
| -rw-r--r-- | plat/qemu/qemu/include/platform_def.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plat/qemu/qemu/include/platform_def.h b/plat/qemu/qemu/include/platform_def.h index 72f343eb5..14e3823d3 100644 --- a/plat/qemu/qemu/include/platform_def.h +++ b/plat/qemu/qemu/include/platform_def.h @@ -112,9 +112,11 @@ #define BL_RAM_SIZE (SEC_SRAM_SIZE - SHARED_RAM_SIZE) #define TB_FW_CONFIG_BASE BL_RAM_BASE -#define TB_FW_CONFIG_LIMIT (TB_FW_CONFIG_BASE + PAGE_SIZE) +#define TB_FW_CONFIG_SIZE PAGE_SIZE +#define TB_FW_CONFIG_LIMIT (TB_FW_CONFIG_BASE + TB_FW_CONFIG_SIZE) #define TOS_FW_CONFIG_BASE TB_FW_CONFIG_LIMIT -#define TOS_FW_CONFIG_LIMIT (TOS_FW_CONFIG_BASE + PAGE_SIZE) +#define TOS_FW_CONFIG_SIZE PAGE_SIZE +#define TOS_FW_CONFIG_LIMIT (TOS_FW_CONFIG_BASE + TOS_FW_CONFIG_SIZE) /* * BL1 specific defines. |
