]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: bootm: Change to use boot_hart from global data
authorBin Meng <bmeng.cn@gmail.com>
Wed, 12 Dec 2018 14:12:46 +0000 (06:12 -0800)
committerAndes <uboot@andestech.com>
Tue, 18 Dec 2018 01:56:27 +0000 (09:56 +0800)
commit3c52cbe27448827769c323a2b60a01128c75ea2e
tree1aeb3b890762be543efb0b454a59b84e7779006c
parent7ce227534ccfae3a948c91c1fd1ce8bf21a002a1
riscv: bootm: Change to use boot_hart from global data

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>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Anup Patel <anup@brainfault.org>
arch/riscv/lib/bootm.c