]> granicus.if.org Git - esp-idf/commit
freertos: Make xPortGetCoreID() volatile
authorDarian Leung <darian@espressif.com>
Tue, 26 Feb 2019 12:58:02 +0000 (20:58 +0800)
committerDarian Leung <darian@espressif.com>
Tue, 26 Feb 2019 12:59:49 +0000 (20:59 +0800)
commit3576e54d79474ab83a220d3296f82174d6e3e333
tree9591b2a4dc197318c484ede4433ba30b1a386dcb
parent140b6e3893317228debf5815b790e967c8562c62
freertos: Make xPortGetCoreID() volatile

When xPortGetCoreID() is called twice within a function,
it might only be called once after compilation. This
commit makes the inline assembly of the function volatile.

Closes #3093
components/freertos/include/freertos/portable.h