[U-Boot] [PATCH v3 2/3] riscv: qemu: Use different SYS_TEXT_BASE for S-mode

Auer, Lukas lukas.auer at aisec.fraunhofer.de
Wed Nov 21 13:48:07 UTC 2018


On Wed, 2018-11-21 at 09:11 +0530, Anup Patel wrote:
> When u-boot runs in S-mode, the M-mode runtime firmware
> (BBL or equivalent) uses memory range in 0x80000000 to
> 0x80200000. Due to this, we cannot use 0x80000000 as
> SYS_TEXT_BASE when running in S-mode. Instead for S-mode,
> we use 0x80200000 as SYS_TEXT_BASE.
> 
> Even Linux RISC-V kernel ignores/reserves memory range
> 0x80000000 to 0x80200000 because it runs in S-mode.
> 
> Signed-off-by: Anup Patel <anup at brainfault.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Tested-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>  board/emulation/qemu-riscv/Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 

Reviewed-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>


More information about the U-Boot mailing list