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