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:
Ralf Corsepius
2011-02-11 10:06:49 +00:00
parent 3e6eed7683
commit 69722335e5
4 changed files with 8 additions and 3 deletions

View File

@@ -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>.

View File

@@ -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)
);

View File

@@ -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 */

View File

@@ -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" );
}
/*