diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-28 07:54:07 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-28 07:54:07 -0600 |
commit | 4226c6c8e4f1feadfd3b084b48681a63d48a9af4 (patch) | |
tree | 794fd8016b8666350343db513f921acab5aeb891 /nuttx/arch/rgmp | |
parent | e3df43d45273609e6cee0a1b1a38f64c218d37c2 (diff) | |
download | px4-nuttx-4226c6c8e4f1feadfd3b084b48681a63d48a9af4.tar.gz px4-nuttx-4226c6c8e4f1feadfd3b084b48681a63d48a9af4.tar.bz2 px4-nuttx-4226c6c8e4f1feadfd3b084b48681a63d48a9af4.zip |
Add address environment support to ALL implementatins of up_reprioritize_rtr()
Diffstat (limited to 'nuttx/arch/rgmp')
-rw-r--r-- | nuttx/arch/rgmp/src/nuttx.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nuttx/arch/rgmp/src/nuttx.c b/nuttx/arch/rgmp/src/nuttx.c index 386e588c9..ea0a4311f 100644 --- a/nuttx/arch/rgmp/src/nuttx.c +++ b/nuttx/arch/rgmp/src/nuttx.c @@ -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); } |