@@ -70,7 +70,7 @@ static inline void fn(unsigned long mask, \
70
70
unsigned long *p = (unsigned long *)_p; \
71
71
__asm__ __volatile__ ( \
72
72
prefix \
73
- "1:" PPC_LLARX( %0,0,%3,0) " \n" \
73
+ "1:" PPC_LLARX " %0,0,%3,0\n" \
74
74
stringify_in_c(op) "%0,%0,%2\n" \
75
75
PPC_STLCX "%0,0,%3\n" \
76
76
"bne- 1b\n" \
@@ -115,13 +115,13 @@ static inline unsigned long fn( \
115
115
unsigned long *p = (unsigned long *)_p; \
116
116
__asm__ __volatile__ ( \
117
117
prefix \
118
- "1:" PPC_LLARX( %0,0,%3,eh) " \n" \
118
+ "1:" PPC_LLARX " %0,0,%3,%4 \n" \
119
119
stringify_in_c(op) "%1,%0,%2\n" \
120
120
PPC_STLCX "%1,0,%3\n" \
121
121
"bne- 1b\n" \
122
122
postfix \
123
123
: "=&r" (old), "=&r" (t) \
124
- : "r" (mask), "r" (p) \
124
+ : "r" (mask), "r" (p), "i" (IS_ENABLED(CONFIG_PPC64) ? eh : 0) \
125
125
: "cc", "memory"); \
126
126
return (old & mask); \
127
127
}
@@ -170,7 +170,7 @@ clear_bit_unlock_return_word(int nr, volatile unsigned long *addr)
170
170
171
171
__asm__ __volatile__ (
172
172
PPC_RELEASE_BARRIER
173
- "1:" PPC_LLARX ( %0 ,0 ,%3 ,0 ) " \n"
173
+ "1:" PPC_LLARX " %0,0,%3,0\n"
174
174
"andc %1,%0,%2\n"
175
175
PPC_STLCX "%1,0,%3\n"
176
176
"bne- 1b\n"
0 commit comments