]> granicus.if.org Git - esp-idf/commit
xtensa: make XTHAL_GET_INTERRUPT, XTHAL_GET_CCOUNT volatile
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 2 Jul 2018 03:31:19 +0000 (11:31 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 2 Jul 2018 03:31:19 +0000 (11:31 +0800)
commitda179e0098edcc228875f377415cc723c1d175a8
tree4d194daad72122567c227fcf3477c49fd1277351
parenta8fa4201b979ab90583bb7961721ab97e4376c57
xtensa: make XTHAL_GET_INTERRUPT, XTHAL_GET_CCOUNT volatile

INTERRUPT and CCOUNT registers will change outside of program control.
Making the inline assembly used to read these registers volatile
indicates this fact to the compiler.

Fixes https://github.com/espressif/esp-idf/issues/2127
components/esp32/include/xtensa/core-macros.h