forked from Imagelibrary/rtems
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/1553/b1553brm.c, shared/can/grcan.c, shared/can/occan.c, shared/spw/grspw.c, shared/uart/apbuart.c: Use "__asm__" instead of "asm" for improved c99-compliance.
This commit is contained in:
@@ -267,7 +267,7 @@ static void grcan_interrupt(struct grcan_priv *pDev);
|
||||
static unsigned char __inline__ _grcan_read_nocache_byte(unsigned int address)
|
||||
{
|
||||
unsigned char tmp;
|
||||
asm(" lduba [%1]1, %0 "
|
||||
__asm__ (" lduba [%1]1, %0 "
|
||||
: "=r"(tmp)
|
||||
: "r"(address)
|
||||
);
|
||||
@@ -282,7 +282,7 @@ static unsigned char __inline__ _grcan_read_nocache_byte(unsigned int address)
|
||||
static unsigned int __inline__ _grcan_read_nocache(unsigned int address)
|
||||
{
|
||||
unsigned int tmp;
|
||||
asm(" lda [%1]1, %0 "
|
||||
__asm__ (" lda [%1]1, %0 "
|
||||
: "=r"(tmp)
|
||||
: "r"(address)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user