Change inline to static inline functions. Ref Github issue 62.

This commit is contained in:
Jeroen Domburg 2016-10-27 09:15:43 +08:00
parent 5642a8061e
commit 6d54fb004d
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ void vPortEndScheduler( void ) PRIVILEGED_FUNCTION;
#endif #endif
/* Multi-core: get current core ID */ /* Multi-core: get current core ID */
inline uint32_t xPortGetCoreID() { static inline uint32_t xPortGetCoreID() {
int id; int id;
asm volatile( asm volatile(
"rsr.prid %0\n" "rsr.prid %0\n"

View File

@ -234,7 +234,7 @@ static inline unsigned portENTER_CRITICAL_NESTED() { unsigned state = XTOS_SET_I
* *bitwise inverse* of the old mem if the mem wasn't written. This doesn't seem to happen on the * *bitwise inverse* of the old mem if the mem wasn't written. This doesn't seem to happen on the
* ESP32, though. (Would show up directly if it did because the magic wouldn't match.) * ESP32, though. (Would show up directly if it did because the magic wouldn't match.)
*/ */
inline void uxPortCompareSet(volatile uint32_t *addr, uint32_t compare, uint32_t *set) { static inline void uxPortCompareSet(volatile uint32_t *addr, uint32_t compare, uint32_t *set) {
__asm__ __volatile__( __asm__ __volatile__(
"WSR %2,SCOMPARE1 \n" "WSR %2,SCOMPARE1 \n"
"ISYNC \n" "ISYNC \n"