Add ADDRENV support to ALL implmentations of _exit()

This commit is contained in:
Gregory Nutt
2014-08-27 16:31:02 -06:00
parent 4d24c48901
commit 9bc9d2d86d
8 changed files with 94 additions and 7 deletions
+10
View File
@@ -453,6 +453,16 @@ void _exit(int status)
tcb = (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(tcb);
#endif
/* Then switch contexts */
up_switchcontext(NULL, tcb);