bsps/sparc: Change asm to __asm__ to compile with -pedantic.

This commit is contained in:
Daniel Cederman
2014-03-21 09:57:25 -05:00
committed by Joel Sherrill
parent f23bd591c2
commit 324032549e
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -395,7 +395,7 @@ static __inline__ int bsp_irq_fixup(int irq)
static inline unsigned int leon_r32_no_cache(uintptr_t addr)
{
unsigned int tmp;
asm volatile (" lda [%1] 1, %0\n" : "=r"(tmp) : "r"(addr));
__asm__ volatile (" lda [%1] 1, %0\n" : "=r"(tmp) : "r"(addr));
return tmp;
}
@@ -89,10 +89,10 @@ void apbuart_outbyte_polled(
send:
while ( (regs->status & LEON_REG_UART_STATUS_THE) == 0 ) {
/* Lower bus utilization while waiting for UART */
asm volatile ("nop"::); asm volatile ("nop"::);
asm volatile ("nop"::); asm volatile ("nop"::);
asm volatile ("nop"::); asm volatile ("nop"::);
asm volatile ("nop"::); asm volatile ("nop"::);
__asm__ volatile ("nop"::); __asm__ volatile ("nop"::);
__asm__ volatile ("nop"::); __asm__ volatile ("nop"::);
__asm__ volatile ("nop"::); __asm__ volatile ("nop"::);
__asm__ volatile ("nop"::); __asm__ volatile ("nop"::);
}
regs->data = (unsigned int) ch;
+1 -1
View File
@@ -291,7 +291,7 @@ extern rtems_interrupt_lock LEON3_IrqCtrl_Lock;
static inline unsigned int leon_r32_no_cache(uintptr_t addr)
{
unsigned int tmp;
asm volatile (" lda [%1] 1, %0\n" : "=r"(tmp) : "r"(addr));
__asm__ volatile (" lda [%1] 1, %0\n" : "=r"(tmp) : "r"(addr));
return tmp;
}