mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Move some variables from function scope back to being file scope for the benefit of some kernel aware debuggers that were left working in a non-functioning mode after the V10.1.0 release - not last change for this purpose.
This commit is contained in:
parent
a11b1a494d
commit
b0ce1f61c9
|
@ -352,6 +352,8 @@ PRIVILEGED_DATA TCB_t * volatile pxCurrentTCB = NULL;
|
||||||
|
|
||||||
/* Lists for ready and blocked tasks. --------------------*/
|
/* Lists for ready and blocked tasks. --------------------*/
|
||||||
PRIVILEGED_DATA static List_t pxReadyTasksLists[ configMAX_PRIORITIES ];/*< Prioritised ready tasks. */
|
PRIVILEGED_DATA static List_t pxReadyTasksLists[ configMAX_PRIORITIES ];/*< Prioritised ready tasks. */
|
||||||
|
PRIVILEGED_DATA static List_t xDelayedTaskList1; /*< Delayed tasks. */
|
||||||
|
PRIVILEGED_DATA static List_t xDelayedTaskList2; /*< Delayed tasks (two lists are used - one for delays that have overflowed the current tick count. */
|
||||||
PRIVILEGED_DATA static List_t * volatile pxDelayedTaskList; /*< Points to the delayed task list currently being used. */
|
PRIVILEGED_DATA static List_t * volatile pxDelayedTaskList; /*< Points to the delayed task list currently being used. */
|
||||||
PRIVILEGED_DATA static List_t * volatile pxOverflowDelayedTaskList; /*< Points to the delayed task list currently being used to hold tasks that have overflowed the current tick count. */
|
PRIVILEGED_DATA static List_t * volatile pxOverflowDelayedTaskList; /*< Points to the delayed task list currently being used to hold tasks that have overflowed the current tick count. */
|
||||||
PRIVILEGED_DATA static List_t xPendingReadyList; /*< Tasks that have been readied while the scheduler was suspended. They will be moved to the ready list when the scheduler is resumed. */
|
PRIVILEGED_DATA static List_t xPendingReadyList; /*< Tasks that have been readied while the scheduler was suspended. They will be moved to the ready list when the scheduler is resumed. */
|
||||||
|
@ -3488,8 +3490,6 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
|
||||||
static void prvInitialiseTaskLists( void )
|
static void prvInitialiseTaskLists( void )
|
||||||
{
|
{
|
||||||
UBaseType_t uxPriority;
|
UBaseType_t uxPriority;
|
||||||
PRIVILEGED_DATA static List_t xDelayedTaskList1; /*< Delayed tasks. */
|
|
||||||
PRIVILEGED_DATA static List_t xDelayedTaskList2; /*< Delayed tasks (two lists are used - one for delays that have overflowed the current tick count. */
|
|
||||||
|
|
||||||
for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
|
for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
|
||||||
{
|
{
|
||||||
|
|
|
@ -128,6 +128,8 @@ which static variables must be declared volatile. */
|
||||||
/* The list in which active timers are stored. Timers are referenced in expire
|
/* The list in which active timers are stored. Timers are referenced in expire
|
||||||
time order, with the nearest expiry time at the front of the list. Only the
|
time order, with the nearest expiry time at the front of the list. Only the
|
||||||
timer service task is allowed to access these lists. */
|
timer service task is allowed to access these lists. */
|
||||||
|
PRIVILEGED_DATA static List_t xActiveTimerList1;
|
||||||
|
PRIVILEGED_DATA static List_t xActiveTimerList2;
|
||||||
PRIVILEGED_DATA static List_t *pxCurrentTimerList;
|
PRIVILEGED_DATA static List_t *pxCurrentTimerList;
|
||||||
PRIVILEGED_DATA static List_t *pxOverflowTimerList;
|
PRIVILEGED_DATA static List_t *pxOverflowTimerList;
|
||||||
|
|
||||||
|
@ -892,9 +894,6 @@ BaseType_t xResult;
|
||||||
|
|
||||||
static void prvCheckForValidListAndQueue( void )
|
static void prvCheckForValidListAndQueue( void )
|
||||||
{
|
{
|
||||||
PRIVILEGED_DATA static List_t xActiveTimerList1;
|
|
||||||
PRIVILEGED_DATA static List_t xActiveTimerList2;
|
|
||||||
|
|
||||||
/* Check that the list from which active timers are referenced, and the
|
/* Check that the list from which active timers are referenced, and the
|
||||||
queue used to communicate with the timer service, have been
|
queue used to communicate with the timer service, have been
|
||||||
initialised. */
|
initialised. */
|
||||||
|
|
Loading…
Reference in a new issue