Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRTOS/FreeRTOS-Kernel.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Julicher <jjulicher@mac.com>2021-05-12 22:13:44 +0300
committerJoseph Julicher <jjulicher@mac.com>2021-05-12 22:13:44 +0300
commitad317efd627bdaa2400046d7f1e850a449607010 (patch)
treee1056e1b5e698a70ea1272e02ce12963a340a943
parent80457ca165e53907e332a79f5af6106a7c5c95cf (diff)
Added multiple IDLE tasks to non-static allocation
-rw-r--r--tasks.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tasks.c b/tasks.c
index 0a88bfbf4..ba16ce2e1 100644
--- a/tasks.c
+++ b/tasks.c
@@ -2715,6 +2715,8 @@ void vTaskStartScheduler( void )
}
#else /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */
{
+ if(xCoreID == 0)
+ {
/* The Idle task is being created using dynamically allocated RAM. */
xReturn = xTaskCreate( prvIdleTask,
cIdleName,
@@ -2722,6 +2724,18 @@ void vTaskStartScheduler( void )
( void * ) NULL,
portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
&xIdleTaskHandle[ xCoreID ] ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
+ }
+ #if( configNUM_CORES > 1 )
+ else
+ {
+ xReturn = xTaskCreate( prvMinimalIdleTask,
+ cIdleName,
+ configMINIMAL_STACK_SIZE,
+ ( void * ) NULL,
+ portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
+ &xIdleTaskHandle[ xCoreID ] ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
+ }
+ #endif
}
#endif /* configSUPPORT_STATIC_ALLOCATION */
}