From 94cf99f310409f8c86681a0ee7177f2bbfeaa24a Mon Sep 17 00:00:00 2001 From: ligd Date: Tue, 6 Sep 2022 21:05:53 +0800 Subject: [PATCH] sim: fix signal crash in SMP mode reproduce: sim:smp ostest reason: shouldn't do sim_sigdeliver() in irq handler Signed-off-by: ligd --- arch/sim/src/sim/up_interruptcontext.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/sim/src/sim/up_interruptcontext.c b/arch/sim/src/sim/up_interruptcontext.c index 78a8d3134d..630941fdb8 100644 --- a/arch/sim/src/sim/up_interruptcontext.c +++ b/arch/sim/src/sim/up_interruptcontext.c @@ -89,10 +89,6 @@ void *up_doirq(int irq, void *context) CURRENT_REGS = NULL; #ifdef CONFIG_SMP - /* Handle signal */ - - sim_sigdeliver(); - /* Then switch contexts */ longjmp(regs, 1);