
12 Dec
2018
12 Dec
'18
12:23 a.m.
On Tue, 2018-12-11 at 01:35 -0800, Bin Meng wrote:
Avoid reading mhartid CSR directly, instead use the one we saved in the global data structure before.
With this patch, BBL no longer needs to be hacked to provide the mhartid CSR emulation for S-mode U-Boot.
Signed-off-by: Bin Meng bmeng.cn@gmail.com
Changes in v3:
- new patch to change to use boot_hart from global data
Changes in v2: None
arch/riscv/lib/bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Lukas Auer lukas.auer@aisec.fraunhofer.de