From 2e7b10356f16dcb4b0f927e8337f2c008e71f627 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 17 Apr 2022 22:55:05 +0800 Subject: [PATCH] arch/sparc: Remove unneeded group_addrenv call which handled by up_doirq Signed-off-by: Xiang Xiao --- arch/sparc/src/common/up_exit.c | 10 ---------- arch/sparc/src/sparc_v8/up_blocktask.c | 9 --------- arch/sparc/src/sparc_v8/up_unblocktask.c | 9 --------- 3 files changed, 28 deletions(-) diff --git a/arch/sparc/src/common/up_exit.c b/arch/sparc/src/common/up_exit.c index 061033b08c..b622154a0d 100644 --- a/arch/sparc/src/common/up_exit.c +++ b/arch/sparc/src/common/up_exit.c @@ -156,16 +156,6 @@ void up_exit(int status) tcb = this_task(); -#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. - */ - - (void)group_addrenv(tcb); -#endif - /* Reset scheduler parameters */ nxsched_resume_scheduler(tcb); diff --git a/arch/sparc/src/sparc_v8/up_blocktask.c b/arch/sparc/src/sparc_v8/up_blocktask.c index af9dcb4aa7..dc3e7bb8b2 100644 --- a/arch/sparc/src/sparc_v8/up_blocktask.c +++ b/arch/sparc/src/sparc_v8/up_blocktask.c @@ -138,15 +138,6 @@ void up_block_task(struct tcb_s *tcb, tstate_t task_state) struct tcb_s *nexttcb = this_task(); -#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. - */ - - (void)group_addrenv(nexttcb); -#endif /* Reset scheduler parameters */ nxsched_resume_scheduler(nexttcb); diff --git a/arch/sparc/src/sparc_v8/up_unblocktask.c b/arch/sparc/src/sparc_v8/up_unblocktask.c index 6785d4c65d..d09511bd1e 100644 --- a/arch/sparc/src/sparc_v8/up_unblocktask.c +++ b/arch/sparc/src/sparc_v8/up_unblocktask.c @@ -122,15 +122,6 @@ void up_unblock_task(struct tcb_s *tcb) struct tcb_s *nexttcb = this_task(); -#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. - */ - - (void)group_addrenv(nexttcb); -#endif /* Update scheduler parameters */ nxsched_resume_scheduler(nexttcb);