diff --git a/arch/arm/src/common/arm_blocktask.c b/arch/arm/src/common/arm_blocktask.c index 46986634c00..dd8cb365a10 100644 --- a/arch/arm/src/common/arm_blocktask.c +++ b/arch/arm/src/common/arm_blocktask.c @@ -131,15 +131,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/arm/src/common/arm_exit.c b/arch/arm/src/common/arm_exit.c index a998a15851a..377106df385 100644 --- a/arch/arm/src/common/arm_exit.c +++ b/arch/arm/src/common/arm_exit.c @@ -136,16 +136,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 */ arm_fullcontextrestore(tcb->xcp.regs); diff --git a/arch/arm/src/common/arm_releasepending.c b/arch/arm/src/common/arm_releasepending.c index 6a50f3f9993..8cccae80c94 100644 --- a/arch/arm/src/common/arm_releasepending.c +++ b/arch/arm/src/common/arm_releasepending.c @@ -98,15 +98,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/arm/src/common/arm_reprioritizertr.c b/arch/arm/src/common/arm_reprioritizertr.c index 3f223b72cc1..d019d9dee76 100644 --- a/arch/arm/src/common/arm_reprioritizertr.c +++ b/arch/arm/src/common/arm_reprioritizertr.c @@ -153,15 +153,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/arm/src/common/arm_unblocktask.c b/arch/arm/src/common/arm_unblocktask.c index 47357f253aa..5b347c0dfc1 100644 --- a/arch/arm/src/common/arm_unblocktask.c +++ b/arch/arm/src/common/arm_unblocktask.c @@ -115,15 +115,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);