[parisc-linux-cvs] Remove multiline ASM statements
Matthew Wilcox
willy@ldl.fc.hp.com
Thu, 07 Jun 2001 11:53:46 -0600
Index: drivers/gsc/gsc.c
===================================================================
RCS file: /home/cvs/parisc/linux/drivers/gsc/gsc.c,v
retrieving revision 1.20
diff -u -p -r1.20 gsc.c
--- gsc.c 2001/03/05 22:03:26 1.20
+++ gsc.c 2001/06/07 17:44:35
@@ -63,9 +63,9 @@ u8 _gsc_readb(void *addr)
u8 ret;
asm volatile(
- " rsm 2,%0
- ldbx 0(%2),%1
- mtsm %0"
+ " rsm 2,%0\n"
+ " ldbx 0(%2),%1\n"
+ " mtsm %0\n"
: "=&r" (flags), "=r" (ret) : "r" (addr) );
return ret;
@@ -77,9 +77,9 @@ u16 _gsc_readw(void *addr)
u16 ret;
asm volatile(
- " rsm 2,%0
- ldhx 0(%2),%1
- mtsm %0"
+ " rsm 2,%0\n"
+ " ldhx 0(%2),%1\n"
+ " mtsm %0\n"
: "=&r" (flags), "=r" (ret) : "r" (addr) );
return ret;
@@ -90,7 +90,7 @@ u32 _gsc_readl(void *addr)
u32 ret;
asm volatile(
- " ldwax 0(%1),%0"
+ " ldwax 0(%1),%0\n"
: "=r" (ret) : "r" (addr) );
return ret;
@@ -101,7 +101,7 @@ u64 _gsc_readq(void *addr)
u64 ret;
#ifdef __LP64__
asm volatile(
- " ldda 0(%1),%0"
+ " ldda 0(%1),%0\n"
: "=r" (ret) : "r" (addr) );
#else
/* two reads may have side effects.. */
@@ -116,9 +116,9 @@ void _gsc_writeb(u8 val, void *addr)
{
long flags;
asm volatile(
- " rsm 2,%0
- stbs %1,0(%2)
- mtsm %0"
+ " rsm 2,%0\n"
+ " stbs %1,0(%2)\n"
+ " mtsm %0\n"
: "=&r" (flags) : "r" (val), "r" (addr) );
}
@@ -126,16 +126,16 @@ void _gsc_writew(u16 val, void *addr)
{
long flags;
asm volatile(
- " rsm 2,%0
- sths %1,0(%2)
- mtsm %0"
+ " rsm 2,%0\n"
+ " sths %1,0(%2)\n"
+ " mtsm %0\n"
: "=&r" (flags) : "r" (val), "r" (addr) );
}
void _gsc_writel(u32 val, void *addr)
{
asm volatile(
- " stwas %0,0(%1)"
+ " stwas %0,0(%1)\n"
: : "r" (val), "r" (addr) );
}
@@ -143,7 +143,7 @@ void _gsc_writeq(u64 val, void *addr)
{
#ifdef __LP64__
asm volatile(
- " stda %0,0(%1)"
+ " stda %0,0(%1)\n"
: : "r" (val), "r" (addr) );
#else
/* two writes may have side effects.. */