mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 21:24:32 +02:00
freertos: Fix GCC 11 SMP FreeRTOS build errors
This commit fixes the following build errors in SMP FreeRTOS when building with GCC 11: - "-Wattributes" warning due to conflicting attributes on xPortInterruptedFromISRContext() - "-Wtype-limits" warning due to taskVALID_CORE_ID() not casting xCoreID
This commit is contained in:
@@ -271,7 +271,7 @@ typedef enum
|
|||||||
#define taskSCHEDULER_RUNNING ( ( BaseType_t ) 2 )
|
#define taskSCHEDULER_RUNNING ( ( BaseType_t ) 2 )
|
||||||
|
|
||||||
/* Check if core value is valid */
|
/* Check if core value is valid */
|
||||||
#define taskVALID_CORE_ID( xCoreID ) ( ( BaseType_t ) ( ( 0 <= xCoreID ) && ( xCoreID < configNUM_CORES ) ) )
|
#define taskVALID_CORE_ID( xCoreID ) ( ( BaseType_t ) ( ( 0 <= (BaseType_t) xCoreID ) && ( (BaseType_t) xCoreID < configNUM_CORES ) ) )
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
* TASK CREATION API
|
* TASK CREATION API
|
||||||
|
@@ -267,7 +267,7 @@ static inline BaseType_t xPortInIsrContext(void)
|
|||||||
return xPortCheckIfInISR();
|
return xPortCheckIfInISR();
|
||||||
}
|
}
|
||||||
|
|
||||||
BaseType_t IRAM_ATTR xPortInterruptedFromISRContext(void);
|
BaseType_t xPortInterruptedFromISRContext(void);
|
||||||
|
|
||||||
static inline UBaseType_t xPortSetInterruptMaskFromISR(void)
|
static inline UBaseType_t xPortSetInterruptMaskFromISR(void)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user