Always use ".set mips3" rather than select between "mips2" or "mips3"
for assembling ll/sc sequences to avoid problems with 64-bit configurations. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
69c75fb458
commit
c4559f67b7
@ -42,7 +42,7 @@ static inline int __sem_update_count(struct semaphore *sem, int incr)
|
||||
|
||||
if (cpu_has_llsc && R10000_LLSC_WAR) {
|
||||
__asm__ __volatile__(
|
||||
" .set mips2 \n"
|
||||
" .set mips3 \n"
|
||||
"1: ll %0, %2 # __sem_update_count \n"
|
||||
" sra %1, %0, 31 \n"
|
||||
" not %1 \n"
|
||||
@ -55,7 +55,7 @@ static inline int __sem_update_count(struct semaphore *sem, int incr)
|
||||
: "r" (incr), "m" (sem->count));
|
||||
} else if (cpu_has_llsc) {
|
||||
__asm__ __volatile__(
|
||||
" .set mips2 \n"
|
||||
" .set mips3 \n"
|
||||
"1: ll %0, %2 # __sem_update_count \n"
|
||||
" sra %1, %0, 31 \n"
|
||||
" not %1 \n"
|
||||
|
Reference in New Issue
Block a user