diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-27 15:20:32 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-27 17:01:14 +0200 |
commit | 5810a08b574413a3aa66552d5eef62ab9bae0ce9 (patch) | |
tree | 6b02d98d47cd073239bf8f5f90f93b89ff05bdee /cpukit/score/cpu/or1k/include | |
parent | psxconfig01: Increase region area (diff) | |
download | rtems-5810a08b574413a3aa66552d5eef62ab9bae0ce9.tar.bz2 |
Use __asm__ for standard C compatibility
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/or1k/include/rtems/score/or1k-utility.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/cpu/or1k/include/rtems/score/or1k-utility.h b/cpukit/score/cpu/or1k/include/rtems/score/or1k-utility.h index c7618c9355..58db24fbbd 100644 --- a/cpukit/score/cpu/or1k/include/rtems/score/or1k-utility.h +++ b/cpukit/score/cpu/or1k/include/rtems/score/or1k-utility.h @@ -345,7 +345,7 @@ static inline uint32_t _OR1K_mfspr(uint32_t reg) { uint32_t spr_value; - asm volatile ( + __asm__ volatile ( "l.mfspr %0, %1, 0;\n\t" : "=r" (spr_value) : "r" (reg)); @@ -354,7 +354,7 @@ static inline uint32_t _OR1K_mfspr(uint32_t reg) static inline void _OR1K_mtspr(uint32_t reg, uint32_t value) { - asm volatile ( + __asm__ volatile ( "l.mtspr %1, %0, 0;\n\t" :: "r" (value), "r" (reg) ); @@ -386,12 +386,12 @@ static inline void _OR1K_mtspr(uint32_t reg, uint32_t value) static inline void _OR1K_Sync_mem( void ) { - asm volatile("l.msync"); + __asm__ volatile("l.msync"); } static inline void _OR1K_Sync_pipeline( void ) { - asm volatile("l.psync"); + __asm__ volatile("l.psync"); } /** @@ -402,7 +402,7 @@ static inline void _OR1K_Sync_pipeline( void ) * */ #define _OR1KSIM_CPU_Halt() \ - asm volatile ("l.nop 0xc") + __asm__ volatile ("l.nop 0xc") #ifdef __cplusplus } |