File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
RP2350_ARM_NTZ/non_secure Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -867,7 +867,7 @@ static void prvTaskExitError( void )
867
867
* should instead call vTaskDelete( NULL ). Artificially force an assert()
868
868
* to be triggered if configASSERT() is defined, then stop here so
869
869
* application writers can catch the error. */
870
- configASSERT ( portGET_CRITICAL_NESTING_COUNT () == ~0UL );
870
+ configASSERT ( portGET_CRITICAL_NESTING_COUNT ( 0 ) == ~0UL );
871
871
portDISABLE_INTERRUPTS ();
872
872
873
873
while ( ulDummy == 0 )
Original file line number Diff line number Diff line change @@ -153,13 +153,13 @@ void vYieldCore( int xCoreID );
153
153
154
154
/* Critical nesting count management. */
155
155
#if configNUMBER_OF_CORES == 1
156
- #define portGET_CRITICAL_NESTING_COUNT () ulCriticalNesting
156
+ #define portGET_CRITICAL_NESTING_COUNT ( xCoreID ) ulCriticalNesting
157
157
#else
158
158
extern volatile uint32_t ulCriticalNestings [ configNUMBER_OF_CORES ];
159
- #define portGET_CRITICAL_NESTING_COUNT () ( ulCriticalNestings[ portGET_CORE_ID( ) ] )
160
- #define portSET_CRITICAL_NESTING_COUNT ( x ) ( ulCriticalNestings[ portGET_CORE_ID( ) ] = ( x ) )
161
- #define portINCREMENT_CRITICAL_NESTING_COUNT () ( ulCriticalNestings[ portGET_CORE_ID( ) ]++ )
162
- #define portDECREMENT_CRITICAL_NESTING_COUNT () ( ulCriticalNestings[ portGET_CORE_ID( ) ]-- )
159
+ #define portGET_CRITICAL_NESTING_COUNT ( xCoreID ) ( ulCriticalNestings[ ( xCoreID ) ] )
160
+ #define portSET_CRITICAL_NESTING_COUNT ( xCoreID , x ) ( ulCriticalNestings[ ( xCoreID ) ] = ( x ) )
161
+ #define portINCREMENT_CRITICAL_NESTING_COUNT ( xCoreID ) ( ulCriticalNestings[ ( xCoreID ) ]++ )
162
+ #define portDECREMENT_CRITICAL_NESTING_COUNT ( xCoreID ) ( ulCriticalNestings[ ( xCoreID ) ]-- )
163
163
#endif
164
164
/*-----------------------------------------------------------*/
165
165
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ extern void vPortYield(void);
161
161
162
162
#if ( configNUMBER_OF_CORES == 1 )
163
163
extern size_t xCriticalNesting ;
164
- #define portGET_CRITICAL_NESTING_COUNT () xCriticalNesting
164
+ #define portGET_CRITICAL_NESTING_COUNT ( xCoreID ) xCriticalNesting
165
165
#define portENTER_CRITICAL () \
166
166
{ \
167
167
portDISABLE_INTERRUPTS(); \
@@ -190,10 +190,10 @@ extern void vTaskExitCriticalFromISR( UBaseType_t uxSavedInterruptStatus );
190
190
#define portENTER_CRITICAL_FROM_ISR () vTaskEnterCriticalFromISR()
191
191
#define portEXIT_CRITICAL_FROM_ISR ( x ) vTaskExitCriticalFromISR( x )
192
192
193
- #define portGET_CRITICAL_NESTING_COUNT () ( xCriticalNestings[ portGET_CORE_ID( ) ] )
194
- #define portSET_CRITICAL_NESTING_COUNT ( x ) ( xCriticalNestings[ portGET_CORE_ID( ) ] = ( x ) )
195
- #define portINCREMENT_CRITICAL_NESTING_COUNT () ( xCriticalNestings[ portGET_CORE_ID( ) ]++ )
196
- #define portDECREMENT_CRITICAL_NESTING_COUNT () ( xCriticalNestings[ portGET_CORE_ID( ) ]-- )
193
+ #define portGET_CRITICAL_NESTING_COUNT ( xCoreID ) ( xCriticalNestings[ ( xCoreID ) ] )
194
+ #define portSET_CRITICAL_NESTING_COUNT ( xCoreID , x ) ( xCriticalNestings[ ( xCoreID ) ] = ( x ) )
195
+ #define portINCREMENT_CRITICAL_NESTING_COUNT ( xCoreID ) ( xCriticalNestings[ ( xCoreID ) ]++ )
196
+ #define portDECREMENT_CRITICAL_NESTING_COUNT ( xCoreID ) ( xCriticalNestings[ ( xCoreID ) ]-- )
197
197
198
198
#endif /* if ( configNUMBER_OF_CORES == 1 ) */
199
199
You can’t perform that action at this time.
0 commit comments