1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
|
Author: Guillem Jover <guillem@debian.org>
---
src/hme.c | 22 ++++++++--------
src/rconsole.c | 8 +++---
src/system.h | 74 ++++++++++++++++++++++++++++-----------------------------
3 files changed, 52 insertions(+), 52 deletions(-)
--- a/src/hme.c
+++ b/src/hme.c
@@ -655,10 +655,10 @@ extern inline void pcihme_write_rxd(stru
unsigned int flags,
unsigned int addr)
{
- __asm__ __volatile__("
- stwa %3, [%0] %2
- stwa %4, [%1] %2
-" : /* no outputs */
+ __asm__ __volatile__(
+ "stwa %3, [%0] %2\n\t"
+ "stwa %4, [%1] %2\n\t"
+ : /* no outputs */
: "r" (&rp->rx_addr), "r" (&rp->rx_flags),
"i" (ASI_PL), "r" (addr), "r" (flags));
}
@@ -667,10 +667,10 @@ extern inline void pcihme_write_txd(stru
unsigned int flags,
unsigned int addr)
{
- __asm__ __volatile__("
- stwa %3, [%0] %2
- stwa %4, [%1] %2
-" : /* no outputs */
+ __asm__ __volatile__(
+ "stwa %3, [%0] %2\n\t"
+ "stwa %4, [%1] %2\n\t"
+ : /* no outputs */
: "r" (&tp->tx_addr), "r" (&tp->tx_flags),
"i" (ASI_PL), "r" (addr), "r" (flags));
}
@@ -2404,7 +2404,7 @@ static inline void pci_happy_meal_tx(str
TXD(("[%d]", elem));
this = &txbase[elem];
#ifdef __sparc_v9__
- __asm__ __volatile__("lduwa [%1] %2, %0"
+ __asm__ __volatile__("lduwa [%1] %2, %0\n\t"
: "=r" (flags)
: "r" (&this->tx_flags), "i" (ASI_PL));
#else
@@ -2447,7 +2447,7 @@ static inline void pci_happy_meal_rx(str
RXD(("RX<"));
this = &rxbase[elem];
#ifdef __sparc_v9__
- __asm__ __volatile__("lduwa [%1] %2, %0"
+ __asm__ __volatile__("lduwa [%1] %2, %0\n\t"
: "=r" (flags)
: "r" (&this->rx_flags), "i" (ASI_PL));
#else
@@ -2530,7 +2530,7 @@ static inline void pci_happy_meal_rx(str
elem = NEXT_RX(elem);
this = &rxbase[elem];
#ifdef __sparc_v9__
- __asm__ __volatile__("lduwa [%1] %2, %0"
+ __asm__ __volatile__("lduwa [%1] %2, %0\n\t"
: "=r" (flags)
: "r" (&this->rx_flags), "i" (ASI_PL));
#else
--- a/src/rconsole.c
+++ b/src/rconsole.c
@@ -52,18 +52,18 @@ static Rf_scan lat7_body[ LAT7_NCHARS*LA
#endif
static __inline__ void stfb_w(void *ptr, unsigned int data) {
- __asm__ __volatile__ ("sta %0, [%1] %2" : :
+ __asm__ __volatile__ ("sta %0, [%1] %2\n\t" : :
"r" (data), "r" (ptr), "i" (ASI_M_BYPASS));
}
static __inline__ void stfb_b(void *ptr, unsigned int data) {
- __asm__ __volatile__ ("stba %0, [%1] %2" : :
+ __asm__ __volatile__ ("stba %0, [%1] %2\n\t" : :
"r" (data), "r" (ptr), "i" (ASI_M_BYPASS));
}
static __inline__ unsigned int ldfb_w(void *ptr) {
unsigned int data;
- __asm__ __volatile__ ("lda [%1] %2, %0" :
+ __asm__ __volatile__ ("lda [%1] %2, %0\n\t" :
"=r" (data) :
"r" (ptr), "i" (ASI_M_BYPASS));
return data;
@@ -71,7 +71,7 @@ static __inline__ unsigned int ldfb_w(vo
static __inline__ unsigned int ldfb_b(void *ptr) {
unsigned int data;
- __asm__ __volatile__ ("lduba [%1] %2, %0" :
+ __asm__ __volatile__ ("lduba [%1] %2, %0\n\t" :
"=r" (data) :
"r" (ptr), "i" (ASI_M_BYPASS));
return data;
--- a/src/system.h
+++ b/src/system.h
@@ -164,10 +164,10 @@ extern void init_eeprom(void); /* Only
extern __inline__ void setipl(unsigned long __orig_psr)
{
- __asm__ __volatile__("
- wr %0, 0x0, %%psr
- nop; nop; nop
-" : /* no outputs */
+ __asm__ __volatile__(
+ "wr %0, 0x0, %%psr\n\t"
+ "nop; nop; nop\n\t"
+ : /* no outputs */
: "r" (__orig_psr)
: "memory", "cc");
}
@@ -176,13 +176,13 @@ extern __inline__ void __cli(void)
{
unsigned long tmp;
- __asm__ __volatile__("
- rd %%psr, %0
- nop; nop; nop; /* Sun4m + Cypress + SMP bug */
- or %0, %1, %0
- wr %0, 0x0, %%psr
- nop; nop; nop
-" : "=r" (tmp)
+ __asm__ __volatile__(
+ "rd %%psr, %0\n\t"
+ "nop; nop; nop;\n\t" /* Sun4m + Cypress + SMP bug */
+ "or %0, %1, %0\n\t"
+ "wr %0, 0x0, %%psr\n\t"
+ "nop; nop; nop\n\t"
+ : "=r" (tmp)
: "i" (PSR_PIL)
: "memory");
}
@@ -191,13 +191,13 @@ extern __inline__ void __sti(void)
{
unsigned long tmp;
- __asm__ __volatile__("
- rd %%psr, %0
- nop; nop; nop; /* Sun4m + Cypress + SMP bug */
- andn %0, %1, %0
- wr %0, 0x0, %%psr
- nop; nop; nop
-" : "=r" (tmp)
+ __asm__ __volatile__(
+ "rd %%psr, %0\n\t"
+ "nop; nop; nop;\n\t" /* Sun4m + Cypress + SMP bug */
+ "andn %0, %1, %0\n\t"
+ "wr %0, 0x0, %%psr\n\t"
+ "nop; nop; nop\n\t"
+ : "=r" (tmp)
: "i" (PSR_PIL)
: "memory");
}
@@ -214,18 +214,18 @@ extern __inline__ unsigned long swap_pil
{
unsigned long retval;
- __asm__ __volatile__("
- rd %%psr, %0
- nop; nop; nop; /* Sun4m + Cypress + SMP bug */
- and %0, %2, %%g1
- and %1, %2, %%g2
- xorcc %%g1, %%g2, %%g0
- be 1f
- nop
- wr %0, %2, %%psr
- nop; nop; nop;
-1:
-" : "=r" (retval)
+ __asm__ __volatile__(
+ "rd %%psr, %0\n\t"
+ "nop; nop; nop;\n\t" /* Sun4m + Cypress + SMP bug */
+ "and %0, %2, %%g1\n\t"
+ "and %1, %2, %%g2\n\t"
+ "xorcc %%g1, %%g2, %%g0\n\t"
+ "be 1f\n\t"
+ "nop\n\t"
+ "wr %0, %2, %%psr\n\t"
+ "nop; nop; nop;\n\t"
+ "1:\n\t"
+ : "=r" (retval)
: "r" (__new_psr), "i" (PSR_PIL)
: "g1", "g2", "memory", "cc");
@@ -236,13 +236,13 @@ extern __inline__ unsigned long read_psr
{
unsigned long retval;
- __asm__ __volatile__("
- rd %%psr, %0
- nop; nop; nop; /* Sun4m + Cypress + SMP bug */
- or %0, %1, %%g1
- wr %%g1, 0x0, %%psr
- nop; nop; nop
-" : "=r" (retval)
+ __asm__ __volatile__(
+ "rd %%psr, %0\n\t"
+ "nop; nop; nop;\n\t" /* Sun4m + Cypress + SMP bug */
+ "or %0, %1, %%g1\n\t"
+ "wr %%g1, 0x0, %%psr\n\t"
+ "nop; nop; nop\n\t"
+ : "=r" (retval)
: "i" (PSR_PIL)
: "g1", "memory");
|