ソースを参照

Fixed issue #413

- Fixed copy'n'paste error from Core to Core A
Beetix 7 年 前
コミット
a6df6733f6
1 ファイル変更2 行追加2 行削除
  1. 2 2
      CMSIS/Core_A/Include/cmsis_gcc.h

+ 2 - 2
CMSIS/Core_A/Include/cmsis_gcc.h

@@ -171,7 +171,7 @@ __STATIC_FORCEINLINE  uint32_t __REV(uint32_t value)
 #else
 #else
   uint32_t result;
   uint32_t result;
 
 
-  __ASM volatile ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
+  __ASM volatile ("rev %0, %1" : "=r" (result) : "r" (value) );
   return result;
   return result;
 #endif
 #endif
 }
 }
@@ -204,7 +204,7 @@ __STATIC_FORCEINLINE  int16_t __REVSH(int16_t value)
 #else
 #else
   int16_t result;
   int16_t result;
 
 
-  __ASM volatile ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
+  __ASM volatile ("revsh %0, %1" : "=r" (result) : "r" (value) );
   return result;
   return result;
 #endif
 #endif
 }
 }