Re: [PATCH] MIPS: Fix IRQ tracing when call handle_fpe()
From: Thomas Bogendoerfer
Date: Tue May 26 2020 - 09:07:20 EST
On Tue, May 26, 2020 at 02:03:14PM +0800, Lichao Liu wrote:
> From: YuanJunQing <yuanjunqing66@xxxxxxx>
> Register "a1" is unsaved in this function,
> when CONFIG_TRACE_IRQFLAGS is enabled,
> the TRACE_IRQS_OFF macro will call trace_hardirqs_off(),
> and this may change register "a1".
> The variment of register "a1" may send SIGFPE signal
> to task when call do_fpe(),and this may kill the task.
> Signed-off-by: YuanJunQing <yuanjunqing66@xxxxxxx>
if you send patches from other people, please add your
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]