]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: qemu: Use different SYS_TEXT_BASE for S-mode
authorAnup Patel <anup@brainfault.org>
Mon, 3 Dec 2018 05:27:41 +0000 (10:57 +0530)
committerAndes <uboot@andestech.com>
Wed, 5 Dec 2018 06:13:59 +0000 (14:13 +0800)
commitf2e64f6905545792d7a61e22e550528c8c5a29dc
tree94981fa9a4818ca876fce2ba26edd4b21c182c5e
parent3ae60c0a3c5dda962aceddf073ee475ab24bc4a8
riscv: qemu: Use different SYS_TEXT_BASE for S-mode

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@brainfault.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
board/emulation/qemu-riscv/Kconfig