aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/system.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-08-25 12:22:09 -0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:32:11 -0400
commitf99d3023f317fb3916b46465cc07a0cad3faa0a5 (patch)
tree727715d292ec4752f71423922e0511e82e585090 /include/asm-mips/system.h
parente607d6c8b8dd684936fda4b2cc37ad9f9104bed4 (diff)
Sprinkle a few more .set mipsX over xchg to make sure we dont' end up with
64-bit instructions on 32-bit processors, they tend to be unhappy about that kind of food ;-) Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/system.h')
-rw-r--r--include/asm-mips/system.h4
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