From c7823f7914971d69281c421abd23f92836bca1d7 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Tue, 31 May 2022 10:08:29 +0200 Subject: [PATCH] arch/xtensa/xtensa_sigdeliver.c: Remove old code that was preventing jumping back to the assembly signal trampoline and getting into its infinite loop. Signed-off-by: Abdelatif Guettouche --- arch/xtensa/src/common/xtensa_sigdeliver.c | 34 ---------------------- 1 file changed, 34 deletions(-) diff --git a/arch/xtensa/src/common/xtensa_sigdeliver.c b/arch/xtensa/src/common/xtensa_sigdeliver.c index 6f8024c6025..5aefeb14dff 100644 --- a/arch/xtensa/src/common/xtensa_sigdeliver.c +++ b/arch/xtensa/src/common/xtensa_sigdeliver.c @@ -139,40 +139,6 @@ void xtensa_sig_deliver(void) rtcb->xcp.sigdeliver = NULL; /* Allows next handler to be scheduled */ - /* Issue: - * - * Task1 --> process - * --> xtensa_context_save(S1) - * --> s32i a0, a2, (4 * REG_A0) - * --> rtcb->xcp.regs[REG_A0] = A0 - * - * Task preemption - * - * Task2 --> Post signal to Task1 - * --> Wake up Task1 - * - * Task1 --> xtensa_sig_deliver - * --> up_irq_enable() - * --> Task preemption - * - * Task preemption --> xtensa_context_save - * --> rtcb->xcp.regs[REG_A0] = A0 of "xtensa_sig_deliver" - * = _xtensa_sig_trampoline + 6 - * = "j 1b" - * - * Process ... - * - * Task1 --> xtensa_sig_deliver - * --> xtensa_context_restore - * --> xtensa_context_save(S1) - * --> l32i a0, a2, (4 * REG_A0) - * --> a0 = "j 1b" - * --> ret - * --> run "j 1b" - */ - - rtcb->xcp.regs[REG_A0] = regs[REG_A0]; - /* Then restore the correct state for this thread of execution. * NOTE: The co-processor state should already be correct. */