You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/04/18 15:34:21 UTC

[incubator-nuttx] 03/04: arch/xtensa: Remove unneeded group_addrenv call which handled by xtensa_irq_dispatch

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit d28892e4542adc279ea3ce16cdc01324a0fdf983
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Apr 17 22:50:34 2022 +0800

    arch/xtensa: Remove unneeded group_addrenv call which handled by xtensa_irq_dispatch
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 arch/xtensa/src/common/xtensa_exit.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/arch/xtensa/src/common/xtensa_exit.c b/arch/xtensa/src/common/xtensa_exit.c
index 612862de41..bbd050afa1 100644
--- a/arch/xtensa/src/common/xtensa_exit.c
+++ b/arch/xtensa/src/common/xtensa_exit.c
@@ -143,16 +143,6 @@ void up_exit(int status)
 
   nxsched_resume_scheduler(tcb);
 
-#ifdef CONFIG_ARCH_ADDRENV
-  /* Make sure that the address environment for the previously running
-   * task is closed down gracefully (data caches dump, MMU flushed) and
-   * set up the address environment for the new thread at the head of
-   * the ready-to-run list.
-   */
-
-  group_addrenv(tcb);
-#endif
-
   /* Then switch contexts */
 
   xtensa_context_restore(tcb->xcp.regs);