diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-11 09:14:20 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-11 09:14:20 +0000 |
commit | c05f6238b9756bf28d59c11da0ef53d1f4d6d503 (patch) | |
tree | dff80695767b7a297280041750f2cbb4bf4d3fea /cpukit/score/cpu/i386/rtems/score/cpu.h | |
parent | 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-c05f6238b9756bf28d59c11da0ef53d1f4d6d503.tar.bz2 |
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, sse_test.c, rtems/score/cpu.h, rtems/score/i386.h,
rtems/score/interrupts.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
Diffstat (limited to 'cpukit/score/cpu/i386/rtems/score/cpu.h')
-rw-r--r-- | cpukit/score/cpu/i386/rtems/score/cpu.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h b/cpukit/score/cpu/i386/rtems/score/cpu.h index a45db39e67..e793b3372c 100644 --- a/cpukit/score/cpu/i386/rtems/score/cpu.h +++ b/cpukit/score/cpu/i386/rtems/score/cpu.h @@ -354,8 +354,8 @@ SCORE_EXTERN void *_CPU_Interrupt_stack_high; #define _CPU_ISR_Set_level( _new_level ) \ { \ - if ( _new_level ) asm volatile ( "cli" ); \ - else asm volatile ( "sti" ); \ + if ( _new_level ) __asm__ volatile ( "cli" ); \ + else __asm__ volatile ( "sti" ); \ } uint32_t _CPU_ISR_Get_level( void ); @@ -456,7 +456,7 @@ uint32_t _CPU_ISR_Get_level( void ); #define _CPU_Fatal_halt( _error ) \ { \ - asm volatile ( "cli ; \ + __asm__ volatile ( "cli ; \ movl %0,%%eax ; \ hlt" \ : "=r" ((_error)) : "0" ((_error)) \ @@ -483,7 +483,7 @@ uint32_t _CPU_ISR_Get_level( void ); \ _output = 0; \ \ - asm volatile ( "bsfw %0,%1 " \ + __asm__ volatile ( "bsfw %0,%1 " \ : "=r" (__value_in_register), "=r" (_output) \ : "0" (__value_in_register), "1" (_output) \ ); \ |