forked from Imagelibrary/rtems
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cchip/cchip.c, include/tm27.h, startup/spurious.c: 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>
|
||||
|
||||
* cchip/cchip.c, include/tm27.h, startup/spurious.c:
|
||||
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>.
|
||||
|
||||
@@ -38,7 +38,7 @@ void cchip1_set_isr(void *handler, int irqno, void *arg);
|
||||
#define READ_REG(address) _READ_REG((unsigned int)address)
|
||||
static __inline__ unsigned int _READ_REG(unsigned int addr) {
|
||||
unsigned int tmp;
|
||||
asm("lda [%1]1, %0 "
|
||||
__asm__ ("lda [%1]1, %0 "
|
||||
: "=r"(tmp)
|
||||
: "r"(addr)
|
||||
);
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
set_vector( (handler), TEST_VECTOR, 1 );
|
||||
|
||||
#define Cause_tm27_intr() \
|
||||
asm volatile( "ta 0x10; nop " );
|
||||
__asm__ volatile( "ta 0x10; nop " );
|
||||
|
||||
#define Clear_tm27_intr() /* empty */
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ rtems_isr bsp_spurious_handler(
|
||||
* What else can we do but stop ...
|
||||
*/
|
||||
|
||||
asm volatile( "mov 1, %g1; ta 0x0" );
|
||||
__asm__ volatile( "mov 1, %g1; ta 0x0" );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user