Add address environment support to ALL implementatins of up_reprioritize_rtr()

This commit is contained in:
Gregory Nutt
2014-08-28 07:54:07 -06:00
parent 4b65c894f6
commit 9598412386
10 changed files with 132 additions and 22 deletions
+9
View File
@@ -433,6 +433,15 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
}
nexttcb = (struct tcb_s*)g_readytorun.head;
#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
// context switch
up_switchcontext(rtcb, nexttcb);
}