diff options
| author | 2020-12-13 22:50:36 +0900 | |
|---|---|---|
| committer | 2021-01-07 18:04:25 -0800 | |
| commit | 643437b996bac9267785e0bd528332e2d5811067 (patch) | |
| tree | 74d64129a077a3d02bcc6e4d52d5e203d23bc6a4 /samples/git:/ssh:/git@git.zx2c4.com | |
| parent | riscv: Fix sifive serial driver (diff) | |
| download | linux-dev-643437b996bac9267785e0bd528332e2d5811067.tar.xz linux-dev-643437b996bac9267785e0bd528332e2d5811067.zip | |
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>
Diffstat (limited to 'samples/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
