Merge branch 'bugfix/make_get_coreid_volatile_backport_v3.0' into 'release/v3.0'

freertos: Make xPortGetCoreID() volatile (backport v3.0)

See merge request idf/esp-idf!4377
This commit is contained in:
Jiang Jiang Jian 2019-03-05 14:27:19 +08:00
commit feb6973aa6

View file

@ -199,7 +199,7 @@ BaseType_t xPortInIsrContext();
/* Multi-core: get current core ID */ /* Multi-core: get current core ID */
static inline uint32_t IRAM_ATTR xPortGetCoreID() { static inline uint32_t IRAM_ATTR xPortGetCoreID() {
int id; int id;
asm ( __asm__ __volatile__ (
"rsr.prid %0\n" "rsr.prid %0\n"
" extui %0,%0,13,1" " extui %0,%0,13,1"
:"=r"(id)); :"=r"(id));