linux_dsm_epyc7002/arch/riscv
Damien Le Moal 6bc83cce3e riscv: Enable interrupts during syscalls with M-Mode
[ Upstream commit 643437b996bac9267785e0bd528332e2d5811067 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-27 11:54:59 +01:00
..
boot
configs
include riscv: Fixup CONFIG_GENERIC_TIME_VSYSCALL 2021-01-19 18:27:20 +01:00
kernel riscv: Enable interrupts during syscalls with M-Mode 2021-01-27 11:54:59 +01:00
lib
mm riscv: Fix KASAN memory mapping. 2021-01-19 18:27:20 +01:00
net
Kbuild
Kconfig
Kconfig.debug
Kconfig.socs
Makefile