mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-06 06:35:12 +00:00
MIPS: Fix MIPS I build.
Broken by d63c63e889bbeeaa461a8addf1245f89f3ce4ece (lmo) rsp.
f1e39a4a61
(kernel.org).
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Patchwork: http://patchwork.linux-mips.org/patch/746/
This commit is contained in:
parent
2127816366
commit
a91be9ee69
1 changed files with 4 additions and 0 deletions
|
@ -306,6 +306,7 @@ static inline int mips_atomic_set(struct pt_regs *regs,
|
||||||
|
|
||||||
if (cpu_has_llsc && R10000_LLSC_WAR) {
|
if (cpu_has_llsc && R10000_LLSC_WAR) {
|
||||||
__asm__ __volatile__ (
|
__asm__ __volatile__ (
|
||||||
|
" .set mips3 \n"
|
||||||
" li %[err], 0 \n"
|
" li %[err], 0 \n"
|
||||||
"1: ll %[old], (%[addr]) \n"
|
"1: ll %[old], (%[addr]) \n"
|
||||||
" move %[tmp], %[new] \n"
|
" move %[tmp], %[new] \n"
|
||||||
|
@ -320,6 +321,7 @@ static inline int mips_atomic_set(struct pt_regs *regs,
|
||||||
" "STR(PTR)" 1b, 4b \n"
|
" "STR(PTR)" 1b, 4b \n"
|
||||||
" "STR(PTR)" 2b, 4b \n"
|
" "STR(PTR)" 2b, 4b \n"
|
||||||
" .previous \n"
|
" .previous \n"
|
||||||
|
" .set mips0 \n"
|
||||||
: [old] "=&r" (old),
|
: [old] "=&r" (old),
|
||||||
[err] "=&r" (err),
|
[err] "=&r" (err),
|
||||||
[tmp] "=&r" (tmp)
|
[tmp] "=&r" (tmp)
|
||||||
|
@ -329,6 +331,7 @@ static inline int mips_atomic_set(struct pt_regs *regs,
|
||||||
: "memory");
|
: "memory");
|
||||||
} else if (cpu_has_llsc) {
|
} else if (cpu_has_llsc) {
|
||||||
__asm__ __volatile__ (
|
__asm__ __volatile__ (
|
||||||
|
" .set mips3 \n"
|
||||||
" li %[err], 0 \n"
|
" li %[err], 0 \n"
|
||||||
"1: ll %[old], (%[addr]) \n"
|
"1: ll %[old], (%[addr]) \n"
|
||||||
" move %[tmp], %[new] \n"
|
" move %[tmp], %[new] \n"
|
||||||
|
@ -347,6 +350,7 @@ static inline int mips_atomic_set(struct pt_regs *regs,
|
||||||
" "STR(PTR)" 1b, 5b \n"
|
" "STR(PTR)" 1b, 5b \n"
|
||||||
" "STR(PTR)" 2b, 5b \n"
|
" "STR(PTR)" 2b, 5b \n"
|
||||||
" .previous \n"
|
" .previous \n"
|
||||||
|
" .set mips0 \n"
|
||||||
: [old] "=&r" (old),
|
: [old] "=&r" (old),
|
||||||
[err] "=&r" (err),
|
[err] "=&r" (err),
|
||||||
[tmp] "=&r" (tmp)
|
[tmp] "=&r" (tmp)
|
||||||
|
|
Loading…
Add table
Reference in a new issue