[U-Boot] [PATCH v3 18/25] riscv: Do some basic architecture level cpu initialization
Auer, Lukas
lukas.auer at aisec.fraunhofer.de
Tue Dec 11 23:17:50 UTC 2018
On Tue, 2018-12-11 at 01:34 -0800, Bin Meng wrote:
> In arch_cpu_init_dm() do some basic architecture level cpu
> initialization, like FPU enable, etc.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>
> ---
>
> Changes in v3:
> - only initialize mcounteren CSR for S-mode
> - only touch satp in M-mode U-Boot
> - move the implementation to arch_cpu_init_dm()
>
> Changes in v2:
> - use csr_set() to set MSTATUS_FS
> - only enabling the cycle, time, and instret counters
> - change to use satp
>
> arch/riscv/cpu/cpu.c | 27 ++++++++++++++++++++++++++-
> 1 file changed, 26 insertions(+), 1 deletion(-)
>
Reviewed-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
More information about the U-Boot
mailing list