[PATCH] riscv: vector: only enable interrupts in the first-use trap

Palmer Dabbelt palmer at rivosinc.com
Tue Jul 4 07:42:55 PDT 2023


On Sun, 25 Jun 2023 15:54:15 +0000, Andy Chiu wrote:
> The function irqentry_exit_to_user_mode() must be called with interrupt
> disabled. The caller of do_trap_insn_illegal() also assumes running
> without interrupts. So, we should turn off interrupts after
> riscv_v_first_use_handler() returns.
> 
> 

Applied, thanks!

[1/1] riscv: vector: only enable interrupts in the first-use trap
      https://git.kernel.org/palmer/c/26c38cd802c9

Best regards,
-- 
Palmer Dabbelt <palmer at rivosinc.com>




More information about the linux-riscv mailing list