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

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

See merge request idf/esp-idf!4379
This commit is contained in:
Jiang Jiang Jian 2019-03-01 18:49:00 +08:00
commit e9a764d9a5

View file

@ -205,7 +205,7 @@ BaseType_t xPortInterruptedFromISRContext();
/* 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));