diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-03-30 07:20:10 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-03-31 12:17:12 -0400 |
commit | a809d46066d5171ed446d59a51cd1e57d99fcfc3 (patch) | |
tree | ede5e0f23d1577da4685034894f66f1de2529937 /arch/mips/kernel/syscall.c | |
parent | 30ee615bb86ba640c9ec7f85fb95c1b0e31c41be (diff) |
MIPS: Fix gigaton of warning building with microMIPS.
With binutils 2.24 the attempt to switch with microMIPS mode to MIPS III
mode through .set mips3 results in *lots* of warnings like
{standard input}: Assembler messages:
{standard input}:397: Warning: the 64-bit MIPS architecture does not support the `smartmips' extension
during a kernel build. Fixed by using .set arch=r4000 instead.
This breaks support for building the kernel with binutils 2.13 which
was supported for 32 bit kernels only anyway and 2.14 which was a bad
vintage for MIPS anyway.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/syscall.c')
-rw-r--r-- | arch/mips/kernel/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c index b79d13f95bf0..4a4f9dda5658 100644 --- a/arch/mips/kernel/syscall.c +++ b/arch/mips/kernel/syscall.c | |||
@@ -110,7 +110,7 @@ static inline int mips_atomic_set(unsigned long addr, unsigned long new) | |||
110 | 110 | ||
111 | if (cpu_has_llsc && R10000_LLSC_WAR) { | 111 | if (cpu_has_llsc && R10000_LLSC_WAR) { |
112 | __asm__ __volatile__ ( | 112 | __asm__ __volatile__ ( |
113 | " .set mips3 \n" | 113 | " .set arch=r4000 \n" |
114 | " li %[err], 0 \n" | 114 | " li %[err], 0 \n" |
115 | "1: ll %[old], (%[addr]) \n" | 115 | "1: ll %[old], (%[addr]) \n" |
116 | " move %[tmp], %[new] \n" | 116 | " move %[tmp], %[new] \n" |
@@ -135,7 +135,7 @@ static inline int mips_atomic_set(unsigned long addr, unsigned long new) | |||
135 | : "memory"); | 135 | : "memory"); |
136 | } else if (cpu_has_llsc) { | 136 | } else if (cpu_has_llsc) { |
137 | __asm__ __volatile__ ( | 137 | __asm__ __volatile__ ( |
138 | " .set mips3 \n" | 138 | " .set arch=r4000 \n" |
139 | " li %[err], 0 \n" | 139 | " li %[err], 0 \n" |
140 | "1: ll %[old], (%[addr]) \n" | 140 | "1: ll %[old], (%[addr]) \n" |
141 | " move %[tmp], %[new] \n" | 141 | " move %[tmp], %[new] \n" |