Files
linux/arch/riscv/kernel
Greentime Hu d411cf02ed riscv: fix scratch register clearing in M-mode.
This patch fixes that the sscratch register clearing in M-mode. It cleared
sscratch register in M-mode, but it should clear mscratch register. That will
cause kernel trap if the CPU core doesn't support S-mode when trying to access
sscratch.

Fixes: 9e80635619 ("riscv: clear the instruction cache and all registers when booting")
Signed-off-by: Greentime Hu <greentime.hu@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
2019-12-20 03:32:24 -08:00
..
2017-09-26 15:26:49 -07:00
2019-11-17 15:17:39 -08:00
2019-11-17 15:17:39 -08:00
2019-09-04 12:43:00 -07:00
2019-10-28 00:46:01 -07:00
2019-10-28 00:46:01 -07:00