Re: [PATCH] riscv: Avoid interrupts being erroneously enabled in handle_exception()

2019-09-20 Thread Paul Walmsley
On Mon, 16 Sep 2019, Vincent Chen wrote: > When the handle_exception function addresses an exception, the interrupts > will be unconditionally enabled after finishing the context save. However, > It may erroneously enable the interrupts if the interrupts are disabled > before entering the handle_e

[PATCH] riscv: Avoid interrupts being erroneously enabled in handle_exception()

2019-09-16 Thread Vincent Chen
When the handle_exception function addresses an exception, the interrupts will be unconditionally enabled after finishing the context save. However, It may erroneously enable the interrupts if the interrupts are disabled before entering the handle_exception. For example, one of the WARN_ON() condi