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:
@@ -1,3 +1,9 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
#define READ_DMA(address) _BRM_REG_READ16((unsigned int)address)
|
#define READ_DMA(address) _BRM_REG_READ16((unsigned int)address)
|
||||||
static __inline__ unsigned short _BRM_REG_READ16(unsigned int addr) {
|
static __inline__ unsigned short _BRM_REG_READ16(unsigned int addr) {
|
||||||
unsigned short tmp;
|
unsigned short tmp;
|
||||||
asm(" lduha [%1]1, %0 "
|
__asm__ (" lduha [%1]1, %0 "
|
||||||
: "=r"(tmp)
|
: "=r"(tmp)
|
||||||
: "r"(addr)
|
: "r"(addr)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ static void grcan_interrupt(struct grcan_priv *pDev);
|
|||||||
static unsigned char __inline__ _grcan_read_nocache_byte(unsigned int address)
|
static unsigned char __inline__ _grcan_read_nocache_byte(unsigned int address)
|
||||||
{
|
{
|
||||||
unsigned char tmp;
|
unsigned char tmp;
|
||||||
asm(" lduba [%1]1, %0 "
|
__asm__ (" lduba [%1]1, %0 "
|
||||||
: "=r"(tmp)
|
: "=r"(tmp)
|
||||||
: "r"(address)
|
: "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)
|
static unsigned int __inline__ _grcan_read_nocache(unsigned int address)
|
||||||
{
|
{
|
||||||
unsigned int tmp;
|
unsigned int tmp;
|
||||||
asm(" lda [%1]1, %0 "
|
__asm__ (" lda [%1]1, %0 "
|
||||||
: "=r"(tmp)
|
: "=r"(tmp)
|
||||||
: "r"(address)
|
: "r"(address)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ static unsigned int sys_freq_hz;
|
|||||||
#define READ_REG(address) _OCCAN_REG_READ((unsigned int)(address))
|
#define READ_REG(address) _OCCAN_REG_READ((unsigned int)(address))
|
||||||
static __inline__ unsigned char _OCCAN_REG_READ(unsigned int addr) {
|
static __inline__ unsigned char _OCCAN_REG_READ(unsigned int addr) {
|
||||||
unsigned char tmp;
|
unsigned char tmp;
|
||||||
asm(" lduba [%1]1, %0 "
|
__asm__ (" lduba [%1]1, %0 "
|
||||||
: "=r"(tmp)
|
: "=r"(tmp)
|
||||||
: "r"(addr)
|
: "r"(addr)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ static GRSPW_DEV *grspw_devs;
|
|||||||
#else
|
#else
|
||||||
static unsigned int _SPW_READ(void *addr) {
|
static unsigned int _SPW_READ(void *addr) {
|
||||||
unsigned int tmp;
|
unsigned int tmp;
|
||||||
asm(" lda [%1]1, %0 "
|
__asm__ (" lda [%1]1, %0 "
|
||||||
: "=r"(tmp)
|
: "=r"(tmp)
|
||||||
: "r"(addr)
|
: "r"(addr)
|
||||||
);
|
);
|
||||||
@@ -215,7 +215,7 @@ static unsigned int _SPW_READ(void *addr) {
|
|||||||
|
|
||||||
static unsigned int _MEM_READ(void *addr) {
|
static unsigned int _MEM_READ(void *addr) {
|
||||||
unsigned int tmp;
|
unsigned int tmp;
|
||||||
asm(" lduba [%1]1, %0 "
|
__asm__ (" lduba [%1]1, %0 "
|
||||||
: "=r"(tmp)
|
: "=r"(tmp)
|
||||||
: "r"(addr)
|
: "r"(addr)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ static void apbuart_hw_open(apbuart_priv *uart);
|
|||||||
#define READ_REG(address) _APBUART_READ_REG((unsigned int)(address))
|
#define READ_REG(address) _APBUART_READ_REG((unsigned int)(address))
|
||||||
static __inline__ unsigned int _APBUART_READ_REG(unsigned int addr) {
|
static __inline__ unsigned int _APBUART_READ_REG(unsigned int addr) {
|
||||||
unsigned int tmp;
|
unsigned int tmp;
|
||||||
asm(" lda [%1]1, %0 "
|
__asm__ (" lda [%1]1, %0 "
|
||||||
: "=r"(tmp)
|
: "=r"(tmp)
|
||||||
: "r"(addr)
|
: "r"(addr)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user