mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-24 17:14:25 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user