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

2018-11-21 Thread Auer, Lukas
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 0x8000 to > 0x8020. Due to this, we cannot use 0x8000 as > SYS_TEXT_BASE when running in S-mode. Instead for S-mode, > we use 0x80200

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

2018-11-20 Thread Anup Patel
When u-boot runs in S-mode, the M-mode runtime firmware (BBL or equivalent) uses memory range in 0x8000 to 0x8020. Due to this, we cannot use 0x8000 as SYS_TEXT_BASE when running in S-mode. Instead for S-mode, we use 0x8020 as SYS_TEXT_BASE. Even Linux RISC-V kernel ignores/reserve