mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 20:25:21 +08:00
bsps/sparc: Change asm to __asm__ to compile with -pedantic.
This commit is contained in:
committed by
Joel Sherrill
parent
f23bd591c2
commit
324032549e
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user