]> granicus.if.org Git - esp-idf/commitdiff
Fix compile error using asm
authorStefan Profanter <git@s.profanter.me>
Wed, 16 May 2018 11:25:38 +0000 (13:25 +0200)
committerAngus Gratton <gus@projectgus.com>
Mon, 4 Jun 2018 06:44:35 +0000 (16:44 +1000)
In function 'xPortGetCoreID':
error: expected ')' before ':' token
         :"=r"(id));

Merges https://github.com/espressif/esp-idf/pull/1965

components/freertos/include/freertos/portable.h

index 9fe74b60c0afdfd27b846afaec83de10aa27a224..33b740e8903f5977fa74a1cf69eb08f15a78893d 100644 (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__ (
         "rsr.prid %0\n"
         " extui %0,%0,13,1"
         :"=r"(id));