diff --git a/arch/mips/src/common/mips_exit.c b/arch/mips/src/common/mips_exit.c index 3251c226033..c516cf137a3 100644 --- a/arch/mips/src/common/mips_exit.c +++ b/arch/mips/src/common/mips_exit.c @@ -137,16 +137,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 */ up_fullcontextrestore(tcb->xcp.regs); diff --git a/arch/mips/src/mips32/mips_blocktask.c b/arch/mips/src/mips32/mips_blocktask.c index 24496ab9f76..5971f02137d 100644 --- a/arch/mips/src/mips32/mips_blocktask.c +++ b/arch/mips/src/mips32/mips_blocktask.c @@ -136,15 +136,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. - */ - - group_addrenv(nexttcb); -#endif /* Reset scheduler parameters */ nxsched_resume_scheduler(nexttcb); diff --git a/arch/mips/src/mips32/mips_releasepending.c b/arch/mips/src/mips32/mips_releasepending.c index 33fa8081c48..4c061e5bd41 100644 --- a/arch/mips/src/mips32/mips_releasepending.c +++ b/arch/mips/src/mips32/mips_releasepending.c @@ -107,15 +107,6 @@ void up_release_pending(void) 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. - */ - - group_addrenv(nexttcb); -#endif /* Update scheduler parameters */ nxsched_resume_scheduler(nexttcb); diff --git a/arch/mips/src/mips32/mips_reprioritizertr.c b/arch/mips/src/mips32/mips_reprioritizertr.c index 5d04a586388..7a99968d9c2 100644 --- a/arch/mips/src/mips32/mips_reprioritizertr.c +++ b/arch/mips/src/mips32/mips_reprioritizertr.c @@ -159,15 +159,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) 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. - */ - - group_addrenv(nexttcb); -#endif /* Update scheduler parameters */ nxsched_resume_scheduler(nexttcb); diff --git a/arch/mips/src/mips32/mips_unblocktask.c b/arch/mips/src/mips32/mips_unblocktask.c index c822d2ee0ca..586fb4b226b 100644 --- a/arch/mips/src/mips32/mips_unblocktask.c +++ b/arch/mips/src/mips32/mips_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. - */ - - group_addrenv(nexttcb); -#endif /* Update scheduler parameters */ nxsched_resume_scheduler(nexttcb);