summaryrefslogtreecommitdiff
path: root/platform/generic
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-09-09 06:49:09 +0300
committerAnup Patel <anup@brainfault.org>2020-09-16 06:35:29 +0300
commit172fa1601c7faaa01c547e8c498f5bdefd52d7cb (patch)
treeabd488410a942da16c3c06440bb3c91628431d4a /platform/generic
parent9f935a4a4372657e43b25fe2f4022fdeb3ca2387 (diff)
downloadopensbi-172fa1601c7faaa01c547e8c498f5bdefd52d7cb.tar.xz
lib: sbi: Ensure coldboot HART supports next privilege mode
The coldboot HART jumps to the next booting stage at the end of init_coldboot() so it is absolutely necessary for coldboot HART to support the privilege mode expected by the next booting stage. We extend the coldboot HART selection in sbi_init() to ensure that the selected coldboot HART always supports privilege mode specified in scratch space (i.e. scratch->next_mode). This will further help us allow E-core (without MMU) on SiFive Unleashed and PolarFire ICICLE boards to proceed further and wait in HSM STOPPED state. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'platform/generic')
0 files changed, 0 insertions, 0 deletions