mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-26 05:47:12 +08:00
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/bsp.h, include/tm27.h, tools/debug_c/serial_gdb.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>
|
||||
|
||||
* include/bsp.h, include/tm27.h, tools/debug_c/serial_gdb.h:
|
||||
Use "__asm__" instead of "asm" for improved c99-compliance.
|
||||
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
|
||||
@@ -81,7 +81,7 @@ extern void Wait_X_ms (unsigned);
|
||||
\
|
||||
_counter = (_microseconds); \
|
||||
\
|
||||
asm volatile ( "0: nop;" \
|
||||
__asm__ volatile ( "0: nop;" \
|
||||
" mov %0,%0 ;" \
|
||||
" loop 0b" : "=c" (_counter) \
|
||||
: "0" (_counter) \
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#define Install_tm27_vector(handler)
|
||||
|
||||
#define Cause_tm27_intr() asm volatile( "int $0x90" : : );
|
||||
#define Cause_tm27_intr() __asm__ volatile( "int $0x90" : : );
|
||||
|
||||
#define Clear_tm27_intr() /* empty */
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ extern "C" {
|
||||
|
||||
void init_serial_gdb( void );
|
||||
|
||||
#define breakpoint() asm("int $3")
|
||||
#define breakpoint() __asm__ ("int $3")
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user