diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-11 09:08:14 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-11 09:08:14 +0000 |
commit | 9f9371f5622052010cf6cbc4409d15bad979b83d (patch) | |
tree | 4df791c8395e14cff8ece5abc3ee54c504d2ce14 /cpukit/score/cpu/arm/cpu.c | |
parent | 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-9f9371f5622052010cf6cbc4409d15bad979b83d.tar.bz2 |
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, rtems/score/cpu.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
Diffstat (limited to 'cpukit/score/cpu/arm/cpu.c')
-rw-r--r-- | cpukit/score/cpu/arm/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/cpu/arm/cpu.c b/cpukit/score/cpu/arm/cpu.c index 551c80cde3..00ff4aabcd 100644 --- a/cpukit/score/cpu/arm/cpu.c +++ b/cpukit/score/cpu/arm/cpu.c @@ -64,7 +64,7 @@ void _CPU_ISR_Set_level( uint32_t level ) { uint32_t arm_switch_reg; - asm volatile ( + __asm__ volatile ( ARM_SWITCH_TO_ARM "mrs %[arm_switch_reg], cpsr\n" "bic %[arm_switch_reg], #" _CPU_ISR_LEVEL_STRINGOF( CPU_MODES_INTERRUPT_MASK ) "\n" @@ -81,7 +81,7 @@ uint32_t _CPU_ISR_Get_level( void ) ARM_SWITCH_REGISTERS; uint32_t level; - asm volatile ( + __asm__ volatile ( ARM_SWITCH_TO_ARM "mrs %[level], cpsr\n" "and %[level], #" _CPU_ISR_LEVEL_STRINGOF( CPU_MODES_INTERRUPT_MASK ) "\n" |