summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLukas Auer <[email protected]>2019-03-17 19:28:39 +0100
committerAndes <[email protected]>2019-04-08 09:44:26 +0800
commite04324025275dee6e3e9a968c8d12e98c9b47567 (patch)
treef3cb4c2d3ab49acd16bcf54f9419a32568ba5b73 /scripts
parentf28ad250e6ef95ca58490b4e8651749d4f7e5c06 (diff)
riscv: do not rely on hart ID passed by previous boot stage
RISC-V U-Boot expects the hart ID to be passed to it via register a0 by the previous boot stage. Machine mode firmware such as BBL and OpenSBI do this when starting their payload (U-Boot) in supervisor mode. If U-Boot is running in machine mode, this task must be handled by the boot ROM. Explicitly populate register a0 with the hart ID from the mhartid CSR to avoid possible problems on RISC-V processors with a boot ROM that does not handle this task. Suggested-by: Rick Chen <[email protected]> Signed-off-by: Lukas Auer <[email protected]> Reviewed-by: Anup Patel <[email protected]> Reviewed-by: Atish Patra <[email protected]> Reviewed-by: Bin Meng <[email protected]> Tested-by: Bin Meng <[email protected]> Reviewed-by: Rick Chen <[email protected]> Tested-by: Rick Chen <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions