mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Add address environment support to ALL implementatins of up_release_pending()
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/arm/up_releasepending.c
|
* arch/arm/src/arm/up_releasepending.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007-2009, 2014 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
#include "sched/sched.h"
|
#include "sched/sched.h"
|
||||||
|
#include "group/group.h"
|
||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -104,7 +105,9 @@ void up_release_pending(void)
|
|||||||
rtcb = (struct tcb_s*)g_readytorun.head;
|
rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", rtcb);
|
||||||
|
|
||||||
/* Then switch contexts */
|
/* Then switch contexts. Any necessary address environment
|
||||||
|
* changes will be made when the interrupt returns.
|
||||||
|
*/
|
||||||
|
|
||||||
up_restorestate(rtcb->xcp.regs);
|
up_restorestate(rtcb->xcp.regs);
|
||||||
}
|
}
|
||||||
@@ -124,6 +127,15 @@ void up_release_pending(void)
|
|||||||
rtcb = (struct tcb_s*)g_readytorun.head;
|
rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", 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
|
||||||
/* Then switch contexts */
|
/* Then switch contexts */
|
||||||
|
|
||||||
up_fullcontextrestore(rtcb->xcp.regs);
|
up_fullcontextrestore(rtcb->xcp.regs);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/armv7-a/arm_releasepending.c
|
* arch/arm/src/armv7-a/arm_releasepending.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2013-2014 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
#include "sched/sched.h"
|
#include "sched/sched.h"
|
||||||
|
#include "group/group.h"
|
||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -104,7 +105,9 @@ void up_release_pending(void)
|
|||||||
rtcb = (struct tcb_s*)g_readytorun.head;
|
rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", rtcb);
|
||||||
|
|
||||||
/* Then switch contexts */
|
/* Then switch contexts. Any necessary address environment
|
||||||
|
* changes will be made when the interrupt returns.
|
||||||
|
*/
|
||||||
|
|
||||||
up_restorestate(rtcb->xcp.regs);
|
up_restorestate(rtcb->xcp.regs);
|
||||||
}
|
}
|
||||||
@@ -124,6 +127,15 @@ void up_release_pending(void)
|
|||||||
rtcb = (struct tcb_s*)g_readytorun.head;
|
rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", 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
|
||||||
/* Then switch contexts */
|
/* Then switch contexts */
|
||||||
|
|
||||||
up_fullcontextrestore(rtcb->xcp.regs);
|
up_fullcontextrestore(rtcb->xcp.regs);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* arch/avr/src/avr32/up_releasepending.c
|
* arch/avr/src/avr32/up_releasepending.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2010, 2014 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
#include "sched/sched.h"
|
#include "sched/sched.h"
|
||||||
|
#include "group/group.h"
|
||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -104,7 +105,9 @@ void up_release_pending(void)
|
|||||||
rtcb = (struct tcb_s*)g_readytorun.head;
|
rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", rtcb);
|
||||||
|
|
||||||
/* Then switch contexts */
|
/* Then switch contexts. Any necessary address environment
|
||||||
|
* changes will be made when the interrupt returns.
|
||||||
|
*/
|
||||||
|
|
||||||
up_restorestate(rtcb->xcp.regs);
|
up_restorestate(rtcb->xcp.regs);
|
||||||
}
|
}
|
||||||
@@ -118,6 +121,18 @@ void up_release_pending(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
struct tcb_s *nexttcb = (struct tcb_s*)g_readytorun.head;
|
struct tcb_s *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
|
||||||
|
/* Then switch contexs */
|
||||||
|
|
||||||
up_switchcontext(rtcb->xcp.regs, nexttcb->xcp.regs);
|
up_switchcontext(rtcb->xcp.regs, nexttcb->xcp.regs);
|
||||||
|
|
||||||
/* up_switchcontext forces a context switch to the task at the
|
/* up_switchcontext forces a context switch to the task at the
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* arch/hc/src/common/up_releasepending.c
|
* arch/hc/src/common/up_releasepending.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2010, 2014 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
#include "sched/sched.h"
|
#include "sched/sched.h"
|
||||||
|
#include "group/group.h"
|
||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -103,7 +104,9 @@ void up_release_pending(void)
|
|||||||
rtcb = (struct tcb_s*)g_readytorun.head;
|
rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", rtcb);
|
||||||
|
|
||||||
/* Then switch contexts */
|
/* Then switch contexts. Any necessary address environment
|
||||||
|
* changes will be made when the interrupt returns.
|
||||||
|
*/
|
||||||
|
|
||||||
up_restorestate(rtcb->xcp.regs);
|
up_restorestate(rtcb->xcp.regs);
|
||||||
}
|
}
|
||||||
@@ -123,6 +126,15 @@ void up_release_pending(void)
|
|||||||
rtcb = (struct tcb_s*)g_readytorun.head;
|
rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", 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
|
||||||
/* Then switch contexts */
|
/* Then switch contexts */
|
||||||
|
|
||||||
up_fullcontextrestore(rtcb->xcp.regs);
|
up_fullcontextrestore(rtcb->xcp.regs);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* arch/mips/src/mips32/up_releasepending.c
|
* arch/mips/src/mips32/up_releasepending.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011, 2014 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -46,6 +46,7 @@
|
|||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
#include "sched/sched.h"
|
#include "sched/sched.h"
|
||||||
|
#include "group/group.h"
|
||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -106,7 +107,9 @@ void up_release_pending(void)
|
|||||||
rtcb = (struct tcb_s*)g_readytorun.head;
|
rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", rtcb);
|
||||||
|
|
||||||
/* Then switch contexts */
|
/* Then switch contexts. Any necessary address environment
|
||||||
|
* changes will be made when the interrupt returns.
|
||||||
|
*/
|
||||||
|
|
||||||
up_restorestate(rtcb->xcp.regs);
|
up_restorestate(rtcb->xcp.regs);
|
||||||
}
|
}
|
||||||
@@ -120,6 +123,18 @@ void up_release_pending(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
struct tcb_s *nexttcb = (struct tcb_s*)g_readytorun.head;
|
struct tcb_s *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
|
||||||
|
/* Then switch contexts */
|
||||||
|
|
||||||
up_switchcontext(rtcb->xcp.regs, nexttcb->xcp.regs);
|
up_switchcontext(rtcb->xcp.regs, nexttcb->xcp.regs);
|
||||||
|
|
||||||
/* up_switchcontext forces a context switch to the task at the
|
/* up_switchcontext forces a context switch to the task at the
|
||||||
|
|||||||
@@ -376,7 +376,15 @@ void up_release_pending(void)
|
|||||||
if (sched_mergepending()) {
|
if (sched_mergepending()) {
|
||||||
/* The currently active task has changed! */
|
/* The currently active task has changed! */
|
||||||
struct tcb_s *nexttcb = (struct tcb_s*)g_readytorun.head;
|
struct tcb_s *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
|
// context switch
|
||||||
up_switchcontext(rtcb, nexttcb);
|
up_switchcontext(rtcb, nexttcb);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* arch/sh/src/common/up_releasepending.c
|
* arch/sh/src/common/up_releasepending.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2008-2009, 2014 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
#include "sched/sched.h"
|
#include "sched/sched.h"
|
||||||
|
#include "group/group.h"
|
||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -104,7 +105,9 @@ void up_release_pending(void)
|
|||||||
rtcb = (struct tcb_s*)g_readytorun.head;
|
rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", rtcb);
|
||||||
|
|
||||||
/* Then switch contexts */
|
/* Then switch contexts. Any necessary address environment
|
||||||
|
* changes will be made when the interrupt returns.
|
||||||
|
*/
|
||||||
|
|
||||||
current_regs = rtcb->xcp.regs;
|
current_regs = rtcb->xcp.regs;
|
||||||
}
|
}
|
||||||
@@ -124,6 +127,15 @@ void up_release_pending(void)
|
|||||||
rtcb = (struct tcb_s*)g_readytorun.head;
|
rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", 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
|
||||||
/* Then switch contexts */
|
/* Then switch contexts */
|
||||||
|
|
||||||
up_fullcontextrestore(rtcb->xcp.regs);
|
up_fullcontextrestore(rtcb->xcp.regs);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/arm/up_releasepending.c
|
* arch/arm/src/arm/up_releasepending.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011, 2014 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
#include "sched/sched.h"
|
#include "sched/sched.h"
|
||||||
|
#include "group/group.h"
|
||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -104,7 +105,9 @@ void up_release_pending(void)
|
|||||||
rtcb = (struct tcb_s*)g_readytorun.head;
|
rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", rtcb);
|
||||||
|
|
||||||
/* Then switch contexts */
|
/* Then switch contexts. Any necessary address environment
|
||||||
|
* changes will be made when the interrupt returns.
|
||||||
|
*/
|
||||||
|
|
||||||
up_restorestate(rtcb->xcp.regs);
|
up_restorestate(rtcb->xcp.regs);
|
||||||
}
|
}
|
||||||
@@ -124,6 +127,15 @@ void up_release_pending(void)
|
|||||||
rtcb = (struct tcb_s*)g_readytorun.head;
|
rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", 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
|
||||||
/* Then switch contexts */
|
/* Then switch contexts */
|
||||||
|
|
||||||
up_fullcontextrestore(rtcb->xcp.regs);
|
up_fullcontextrestore(rtcb->xcp.regs);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* arch/z80/src/common/up_releasepending.c
|
* arch/z80/src/common/up_releasepending.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007-2009, 2014 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -47,6 +47,7 @@
|
|||||||
#include "chip/chip.h"
|
#include "chip/chip.h"
|
||||||
#include "chip/switch.h"
|
#include "chip/switch.h"
|
||||||
#include "sched/sched.h"
|
#include "sched/sched.h"
|
||||||
|
#include "group/group.h"
|
||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -108,7 +109,8 @@ void up_release_pending(void)
|
|||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", rtcb);
|
||||||
|
|
||||||
/* Then setup so that the context will be performed on exit
|
/* 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);
|
SET_IRQCONTEXT(rtcb);
|
||||||
@@ -129,6 +131,15 @@ void up_release_pending(void)
|
|||||||
rtcb = (FAR struct tcb_s*)g_readytorun.head;
|
rtcb = (FAR struct tcb_s*)g_readytorun.head;
|
||||||
slldbg("New Active Task TCB=%p\n", rtcb);
|
slldbg("New Active Task TCB=%p\n", 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
|
||||||
/* Then switch contexts */
|
/* Then switch contexts */
|
||||||
|
|
||||||
RESTORE_USERCONTEXT(rtcb);
|
RESTORE_USERCONTEXT(rtcb);
|
||||||
|
|||||||
Reference in New Issue
Block a user