hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/powerpc/include/asm/cmpxchg.h
....@@ -6,7 +6,6 @@
66 #include <linux/compiler.h>
77 #include <asm/synch.h>
88 #include <linux/bug.h>
9
-#include <asm/asm-405.h>
109
1110 #ifdef __BIG_ENDIAN
1211 #define BITOFF_CAL(size, off) ((sizeof(u32) - size - off) * BITS_PER_BYTE)
....@@ -29,7 +28,6 @@
2928 "1: lwarx %0,0,%3\n" \
3029 " andc %1,%0,%5\n" \
3130 " or %1,%1,%4\n" \
32
- PPC405_ERR77(0,%3) \
3331 " stwcx. %1,0,%3\n" \
3432 " bne- 1b\n" \
3533 : "=&r" (prev), "=&r" (tmp), "+m" (*(u32*)p) \
....@@ -60,7 +58,6 @@
6058 " bne- 2f\n" \
6159 " andc %1,%0,%6\n" \
6260 " or %1,%1,%5\n" \
63
- PPC405_ERR77(0,%3) \
6461 " stwcx. %1,0,%3\n" \
6562 " bne- 1b\n" \
6663 br2 \
....@@ -92,7 +89,6 @@
9289
9390 __asm__ __volatile__(
9491 "1: lwarx %0,0,%2 \n"
95
- PPC405_ERR77(0,%2)
9692 " stwcx. %3,0,%2 \n\
9793 bne- 1b"
9894 : "=&r" (prev), "+m" (*(volatile unsigned int *)p)
....@@ -109,7 +105,6 @@
109105
110106 __asm__ __volatile__(
111107 "1: lwarx %0,0,%2\n"
112
- PPC405_ERR77(0, %2)
113108 " stwcx. %3,0,%2\n"
114109 " bne- 1b"
115110 : "=&r" (prev), "+m" (*p)
....@@ -127,7 +122,6 @@
127122
128123 __asm__ __volatile__(
129124 "1: ldarx %0,0,%2 \n"
130
- PPC405_ERR77(0,%2)
131125 " stdcx. %3,0,%2 \n\
132126 bne- 1b"
133127 : "=&r" (prev), "+m" (*(volatile unsigned long *)p)
....@@ -144,7 +138,6 @@
144138
145139 __asm__ __volatile__(
146140 "1: ldarx %0,0,%2\n"
147
- PPC405_ERR77(0, %2)
148141 " stdcx. %3,0,%2\n"
149142 " bne- 1b"
150143 : "=&r" (prev), "+m" (*p)
....@@ -229,7 +222,6 @@
229222 "1: lwarx %0,0,%2 # __cmpxchg_u32\n\
230223 cmpw 0,%0,%3\n\
231224 bne- 2f\n"
232
- PPC405_ERR77(0,%2)
233225 " stwcx. %4,0,%2\n\
234226 bne- 1b"
235227 PPC_ATOMIC_EXIT_BARRIER
....@@ -252,7 +244,6 @@
252244 "1: lwarx %0,0,%2 # __cmpxchg_u32\n\
253245 cmpw 0,%0,%3\n\
254246 bne- 2f\n"
255
- PPC405_ERR77(0,%2)
256247 " stwcx. %4,0,%2\n\
257248 bne- 1b"
258249 "\n\
....@@ -273,7 +264,6 @@
273264 "1: lwarx %0,0,%2 # __cmpxchg_u32_relaxed\n"
274265 " cmpw 0,%0,%3\n"
275266 " bne- 2f\n"
276
- PPC405_ERR77(0, %2)
277267 " stwcx. %4,0,%2\n"
278268 " bne- 1b\n"
279269 "2:"
....@@ -301,7 +291,6 @@
301291 "1: lwarx %0,0,%2 # __cmpxchg_u32_acquire\n"
302292 " cmpw 0,%0,%3\n"
303293 " bne- 2f\n"
304
- PPC405_ERR77(0, %2)
305294 " stwcx. %4,0,%2\n"
306295 " bne- 1b\n"
307296 PPC_ACQUIRE_BARRIER