2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>

* rtems/score/cpu.h:
	Use "__asm__" instead of "asm" for improved c99-compliance.
This commit is contained in:
Ralf Corsepius
2011-02-11 09:11:57 +00:00
parent 0b6cb0cd0b
commit 566fa34827
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -1,3 +1,8 @@
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to
+3 -3
View File
@@ -710,7 +710,7 @@ SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context;
*/
#define _CPU_ISR_Disable( _level ) \
{ \
asm volatile ("cli %0; csync \n" : "=d" (_level) ); \
__asm__ volatile ("cli %0; csync \n" : "=d" (_level) ); \
}
@@ -910,7 +910,7 @@ void _CPU_Context_Initialize(
*/
#define _CPU_Fatal_halt( _error ) \
{ \
asm volatile ( "cli R1; \
__asm__ volatile ( "cli R1; \
R1 = %0; \
_halt: \
idle; \
@@ -1015,7 +1015,7 @@ void _CPU_Context_Initialize(
#if (CPU_USE_GENERIC_BITFIELD_CODE == FALSE)
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
{ \
asm ("bit(1);"):
__asm__ ("bit(1);"):
(_output) = 0; /* do something to prevent warnings */ \
}
#endif