RISC-V: Initialize SBI early
authorAtish Patra <atish.patra@wdc.com>
Thu, 5 Nov 2020 00:04:36 +0000 (16:04 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 26 Nov 2020 00:05:17 +0000 (16:05 -0800)
commit62149f3564c5a59cb42834cbe97e6f36ad81a029
tree8b7bcec6c469028991a71d934f3153d086aa32f5
parent5cb0080f1bfdccb56d5c225d1cd648cdb33fa9bb
RISC-V: Initialize SBI early

Currently, SBI is initialized towards the end of arch setup. This prevents
the set memory operations to be invoked earlier as it requires a full tlb
flush.

Initialize SBI as early as possible.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Tested-by: Greentime Hu <greentime.hu@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/setup.c