[U-Boot] [PATCH] riscv: qemu: Use correct SYS_TEXT_BASE for S-mode on 32bit system
Auer, Lukas
lukas.auer at aisec.fraunhofer.de
Thu Apr 11 12:41:44 UTC 2019
On Thu, 2019-04-11 at 06:52 +0000, Anup Patel wrote:
> For 32bit system, the OpenSBI (or BBL) will jump to 0x80400000 address
> in S-mode whereas for 64bit system it will jump to 0x80200000 address
> in S-mode.
>
> Currently, the S-mode U-Boot sets SYS_TEXT_BASE to 0x80200000 for both
> 32bit and 64bit system. This breaks S-mode U-Boot for 32bit system.
>
> This patch sets different SYS_TEXT_BASE for 32bit and 64bit system so
> that S-mode U-Boot works fine for both.
>
> Signed-off-by: Anup Patel <anup.patel at wdc.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