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 /bsps/powerpc/include/libcpu/spr.h | |
parent | psxconfig01: Increase region area (diff) | |
download | rtems-5810a08b574413a3aa66552d5eef62ab9bae0ce9.tar.bz2 |
Use __asm__ for standard C compatibility
Diffstat (limited to '')
-rw-r--r-- | bsps/powerpc/include/libcpu/spr.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bsps/powerpc/include/libcpu/spr.h b/bsps/powerpc/include/libcpu/spr.h index dea0cde63c..4655f24def 100644 --- a/bsps/powerpc/include/libcpu/spr.h +++ b/bsps/powerpc/include/libcpu/spr.h @@ -51,20 +51,20 @@ static inline unsigned long _read_##reg(void) \ static inline unsigned long _read_MSR(void) { unsigned long val; - asm volatile("mfmsr %0" : "=r" (val)); + __asm__ volatile("mfmsr %0" : "=r" (val)); return val; } static inline void _write_MSR(unsigned long val) { - asm volatile("mtmsr %0" : : "r" (val)); + __asm__ volatile("mtmsr %0" : : "r" (val)); return; } static inline unsigned long _read_SR(void * va) { unsigned long val; - asm volatile ( + __asm__ volatile ( ".machine \"push\"\n" ".machine \"any\"\n" "mfsrin %0,%1\n" @@ -77,7 +77,7 @@ static inline unsigned long _read_SR(void * va) static inline void _write_SR(unsigned long val, void * va) { - asm volatile ( + __asm__ volatile ( ".machine \"push\"\n" ".machine \"any\"\n" "mtsrin %0,%1\n" |