Revision d411cf02ed0260dacc4b2fd61dd5040fc2aa97e7 authored by Greentime Hu on 19 December 2019, 06:44:59 UTC, committed by Paul Walmsley on 20 December 2019, 11:32:24 UTC
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: 9e80635619b5 ("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>
1 parent 0312a3d
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 4.2 KB |
Makefile | -rw-r--r-- | 774 bytes |
font_10x18.c | -rw-r--r-- | 140.6 KB |
font_6x10.c | -rw-r--r-- | 60.8 KB |
font_6x11.c | -rw-r--r-- | 66.6 KB |
font_7x14.c | -rw-r--r-- | 79.3 KB |
font_8x16.c | -rw-r--r-- | 93.9 KB |
font_8x8.c | -rw-r--r-- | 49.9 KB |
font_acorn_8x8.c | -rw-r--r-- | 15.7 KB |
font_mini_4x6.c | -rw-r--r-- | 54.6 KB |
font_pearl_8x8.c | -rw-r--r-- | 54.6 KB |
font_sun12x22.c | -rw-r--r-- | 181.5 KB |
font_sun8x16.c | -rw-r--r-- | 22.1 KB |
font_ter16x32.c | -rw-r--r-- | 100.8 KB |
fonts.c | -rw-r--r-- | 3.0 KB |
Computing file changes ...