diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-11 09:20:50 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-11 09:20:50 +0000 |
commit | 901ffaca0b28a402b8f6b669c49e48801abfbf85 (patch) | |
tree | 9fda8ad2d14fbdcb41ca8dfbdbded68669b397e0 /cpukit/score/cpu/m32c/rtems | |
parent | 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-901ffaca0b28a402b8f6b669c49e48801abfbf85.tar.bz2 |
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* context_init.c, cpu.c, varvects.h, rtems/score/cpu.h,
rtems/score/m32c.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
Diffstat (limited to 'cpukit/score/cpu/m32c/rtems')
-rw-r--r-- | cpukit/score/cpu/m32c/rtems/score/cpu.h | 8 | ||||
-rw-r--r-- | cpukit/score/cpu/m32c/rtems/score/m32c.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/score/cpu/m32c/rtems/score/cpu.h b/cpukit/score/cpu/m32c/rtems/score/cpu.h index fbb115e4a7..4d75c0a930 100644 --- a/cpukit/score/cpu/m32c/rtems/score/cpu.h +++ b/cpukit/score/cpu/m32c/rtems/score/cpu.h @@ -674,7 +674,7 @@ typedef struct { int _flg; \ m32c_get_flg( _flg ); \ _isr_cookie = _flg; \ - asm volatile( "fclr I" ); \ + __asm__ volatile( "fclr I" ); \ } while(0) /** @@ -712,7 +712,7 @@ typedef struct { do { \ int _flg = (int) (_isr_cookie); \ m32c_set_flg( _flg ); \ - asm volatile( "fclr I" ); \ + __asm__ volatile( "fclr I" ); \ } while(0) /** @@ -734,8 +734,8 @@ typedef struct { */ #define _CPU_ISR_Set_level( _new_level ) \ do { \ - if (_new_level) asm volatile( "fclr I" ); \ - else asm volatile( "fset I" ); \ + if (_new_level) __asm__ volatile( "fclr I" ); \ + else __asm__ volatile( "fset I" ); \ } while(0) /** diff --git a/cpukit/score/cpu/m32c/rtems/score/m32c.h b/cpukit/score/cpu/m32c/rtems/score/m32c.h index 827898eb4a..0c3fe43b7f 100644 --- a/cpukit/score/cpu/m32c/rtems/score/m32c.h +++ b/cpukit/score/cpu/m32c/rtems/score/m32c.h @@ -60,10 +60,10 @@ extern "C" { #define CPU_NAME "m32c" #define m32c_get_flg( _flg ) \ - asm volatile( "stc flg, %0" : "=r" (_flg)) + __asm__ volatile( "stc flg, %0" : "=r" (_flg)) #define m32c_set_flg( _flg ) \ - asm volatile( "ldc %1, flg" : "=r" (_flg) : "r" (_flg) ) + __asm__ volatile( "ldc %1, flg" : "=r" (_flg) : "r" (_flg) ) #ifdef __cplusplus } |