summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src/common/up_unblocktask.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/z80/src/common/up_unblocktask.c')
-rw-r--r--nuttx/arch/z80/src/common/up_unblocktask.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/nuttx/arch/z80/src/common/up_unblocktask.c b/nuttx/arch/z80/src/common/up_unblocktask.c
index 257b19c6f..12dcc4d51 100644
--- a/nuttx/arch/z80/src/common/up_unblocktask.c
+++ b/nuttx/arch/z80/src/common/up_unblocktask.c
@@ -133,20 +133,11 @@ void up_unblock_task(FAR struct tcb_s *tcb)
rtcb = (FAR struct tcb_s*)g_readytorun.head;
/* Then setup so that the context will be performed on exit
- * from the interrupt.
+ * from the interrupt. Any necessary address environment
+ * changes will be made when the interrupt returns.
*/
SET_IRQCONTEXT(rtcb);
-
-#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(rtcb);
-#endif
}
/* We are not in an interrupt handler. Copy the user C context