diff --git a/components/freertos/include/freertos/portable.h b/components/freertos/include/freertos/portable.h index bf0955efa..b9c520c22 100644 --- a/components/freertos/include/freertos/portable.h +++ b/components/freertos/include/freertos/portable.h @@ -199,7 +199,7 @@ BaseType_t xPortInIsrContext(); /* Multi-core: get current core ID */ static inline uint32_t IRAM_ATTR xPortGetCoreID() { int id; - asm ( + __asm__ __volatile__ ( "rsr.prid %0\n" " extui %0,%0,13,1" :"=r"(id));