linux-stable/arch/riscv
Damien Le Moal 643437b996
riscv: Enable interrupts during syscalls with M-Mode
When running is M-Mode (no MMU config), MPIE does not get set. This
results in all syscalls being executed with interrupts disabled as
handle_exception never sets SR_IE as it always sees SR_PIE being
cleared. Fix this by always force enabling interrupts in
handle_syscall when CONFIG_RISCV_M_MODE is enabled.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-01-07 18:04:25 -08:00
..
boot riscv: Ignore Image.* and loader.bin 2020-11-09 11:54:46 -08:00
configs RISC-V: Add EFI stub support. 2020-10-02 14:31:21 -07:00
include local64.h: make <asm/local64.h> mandatory 2020-12-29 15:36:49 -08:00
kernel riscv: Enable interrupts during syscalls with M-Mode 2021-01-07 18:04:25 -08:00
lib riscv: provide memmove implementation 2020-12-10 17:27:54 -08:00
mm RISC-V: Fix usage of memblock_enforce_memory_limit 2020-12-21 21:02:14 -08:00
net treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
Kbuild riscv: Allow device trees to be built into the kernel 2020-05-18 11:38:05 -07:00
Kconfig RISC-V Patches for the 5.11 Merge Window, Part 1 2020-12-18 10:43:07 -08:00
Kconfig.debug RISC-V: Remove EARLY_PRINTK support 2018-12-17 10:23:46 -08:00
Kconfig.socs clk: sifive: Use common name for prci configuration 2020-12-16 12:22:59 -08:00
Makefile riscv: Clean up boot dir 2020-11-09 11:54:45 -08:00