forked from Imagelibrary/rtems
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* amba/amba.c, include/tm27.h, shmsupp/lock.c, startup/bspstart.c, startup/spurious.c: Use "__asm__" instead of "asm" for improved c99-compliance.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* amba/amba.c, include/tm27.h, shmsupp/lock.c, startup/bspstart.c,
|
||||
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>.
|
||||
|
||||
@@ -35,7 +35,7 @@ int LEON3_Cpu_Index = 0;
|
||||
|
||||
unsigned int getasr17(void);
|
||||
|
||||
asm(" .text \n"
|
||||
__asm__ (" .text \n"
|
||||
"getasr17: \n"
|
||||
"retl \n"
|
||||
"mov %asr17, %o0\n"
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ void Shm_Initialize_lock(
|
||||
* a deadlock condition.
|
||||
*/
|
||||
|
||||
asm(
|
||||
__asm__ (
|
||||
".text\n"
|
||||
".align 4\n"
|
||||
"LEON3_Atomic_Swap:\n"
|
||||
@@ -65,7 +65,7 @@ void Shm_Lock(
|
||||
Shm_isrstat = isr_level;
|
||||
while ( lock_value ) {
|
||||
lock_value = LEON3_Atomic_Swap(lock_value, lockptr);
|
||||
/* asm volatile( "" */
|
||||
/* __asm__ volatile( "" */
|
||||
/* : "=r" (lockptr), "=r" (lock_value) */
|
||||
/* : "0" (lockptr), "1" (lock_value) */
|
||||
/* ); */
|
||||
|
||||
@@ -41,7 +41,7 @@ extern void amba_initialize(void);
|
||||
static inline int set_snooping(void)
|
||||
{
|
||||
int tmp;
|
||||
asm(" lda [%1] 2, %0 "
|
||||
__asm__ (" lda [%1] 2, %0 "
|
||||
: "=r"(tmp)
|
||||
: "r"(0xC)
|
||||
);
|
||||
|
||||
@@ -120,7 +120,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