diff options
-rw-r--r-- | include/asm-mips/system.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h index b1ac3f5bfc3b..b126545e96ed 100644 --- a/include/asm-mips/system.h +++ b/include/asm-mips/system.h | |||
@@ -302,7 +302,9 @@ static inline unsigned long __cmpxchg_u32(volatile int * m, unsigned long old, | |||
302 | " .set mips3 \n" | 302 | " .set mips3 \n" |
303 | "1: ll %0, %2 # __cmpxchg_u32 \n" | 303 | "1: ll %0, %2 # __cmpxchg_u32 \n" |
304 | " bne %0, %z3, 2f \n" | 304 | " bne %0, %z3, 2f \n" |
305 | " .set mips0 \n" | ||
305 | " move $1, %z4 \n" | 306 | " move $1, %z4 \n" |
307 | " .set mips3 \n" | ||
306 | " sc $1, %1 \n" | 308 | " sc $1, %1 \n" |
307 | " beqzl $1, 1b \n" | 309 | " beqzl $1, 1b \n" |
308 | #ifdef CONFIG_SMP | 310 | #ifdef CONFIG_SMP |
@@ -320,7 +322,9 @@ static inline unsigned long __cmpxchg_u32(volatile int * m, unsigned long old, | |||
320 | " .set mips3 \n" | 322 | " .set mips3 \n" |
321 | "1: ll %0, %2 # __cmpxchg_u32 \n" | 323 | "1: ll %0, %2 # __cmpxchg_u32 \n" |
322 | " bne %0, %z3, 2f \n" | 324 | " bne %0, %z3, 2f \n" |
325 | " .set mips0 \n" | ||
323 | " move $1, %z4 \n" | 326 | " move $1, %z4 \n" |
327 | " .set mips3 \n" | ||
324 | " sc $1, %1 \n" | 328 | " sc $1, %1 \n" |
325 | " beqz $1, 1b \n" | 329 | " beqz $1, 1b \n" |
326 | #ifdef CONFIG_SMP | 330 | #ifdef CONFIG_SMP |