mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-08 15:17:50 -04:00
Match existing data type for xCoreID
This commit is contained in:
parent
d77a3709d2
commit
bc1c6079d7
1 changed files with 8 additions and 9 deletions
17
tasks.c
17
tasks.c
|
@ -807,7 +807,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
|
|||
{
|
||||
UBaseType_t uxPrevCriticalNesting;
|
||||
const TCB_t * pxThisTCB;
|
||||
const UBaseType_t xCoreID = portGET_CORE_ID();
|
||||
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();
|
||||
|
||||
/* This must only be called from within a task. */
|
||||
portASSERT_IF_IN_ISR();
|
||||
|
@ -3868,7 +3868,7 @@ void vTaskSuspendAll( void )
|
|||
#else /* #if ( configNUMBER_OF_CORES == 1 ) */
|
||||
{
|
||||
UBaseType_t ulState;
|
||||
const UBaseType_t xCoreID = portGET_CORE_ID();
|
||||
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();
|
||||
|
||||
/* This must only be called from within a task. */
|
||||
portASSERT_IF_IN_ISR();
|
||||
|
@ -4006,8 +4006,7 @@ BaseType_t xTaskResumeAll( void )
|
|||
* tasks from this list into their appropriate ready list. */
|
||||
taskENTER_CRITICAL();
|
||||
{
|
||||
BaseType_t xCoreID;
|
||||
xCoreID = ( BaseType_t ) portGET_CORE_ID();
|
||||
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();
|
||||
|
||||
/* If uxSchedulerSuspended is zero then this function does not match a
|
||||
* previous call to vTaskSuspendAll(). */
|
||||
|
@ -6940,7 +6939,7 @@ static void prvResetNextTaskUnblockTime( void )
|
|||
*/
|
||||
void vTaskYieldWithinAPI( void )
|
||||
{
|
||||
const UBaseType_t xCoreID = portGET_CORE_ID();
|
||||
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();
|
||||
|
||||
traceENTER_vTaskYieldWithinAPI();
|
||||
|
||||
|
@ -6997,7 +6996,7 @@ static void prvResetNextTaskUnblockTime( void )
|
|||
|
||||
void vTaskEnterCritical( void )
|
||||
{
|
||||
const UBaseType_t xCoreID = portGET_CORE_ID();
|
||||
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();
|
||||
|
||||
traceENTER_vTaskEnterCritical();
|
||||
|
||||
|
@ -7050,7 +7049,7 @@ static void prvResetNextTaskUnblockTime( void )
|
|||
UBaseType_t vTaskEnterCriticalFromISR( void )
|
||||
{
|
||||
UBaseType_t uxSavedInterruptStatus = 0;
|
||||
const UBaseType_t xCoreID = portGET_CORE_ID();
|
||||
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();
|
||||
|
||||
traceENTER_vTaskEnterCriticalFromISR();
|
||||
|
||||
|
@ -7127,7 +7126,7 @@ static void prvResetNextTaskUnblockTime( void )
|
|||
|
||||
void vTaskExitCritical( void )
|
||||
{
|
||||
const UBaseType_t xCoreID = portGET_CORE_ID();
|
||||
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();
|
||||
|
||||
traceENTER_vTaskExitCritical();
|
||||
|
||||
|
@ -7190,7 +7189,7 @@ static void prvResetNextTaskUnblockTime( void )
|
|||
|
||||
void vTaskExitCriticalFromISR( UBaseType_t uxSavedInterruptStatus )
|
||||
{
|
||||
const UBaseType_t xCoreID = portGET_CORE_ID();
|
||||
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();
|
||||
|
||||
traceENTER_vTaskExitCriticalFromISR( uxSavedInterruptStatus );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue