diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2015-01-15 05:34:00 -0500 |
---|---|---|
committer | Markos Chandras <markos.chandras@imgtec.com> | 2015-02-17 10:37:29 -0500 |
commit | fee313d4b880d4f68cd9d1ed013b128f836d3f21 (patch) | |
tree | b65c495c0a78be66c144099a156a4b5f2d9157d1 /arch/mips/kernel/syscall.c | |
parent | 0593a44c6403d0b2afdac94a261ad474719e8322 (diff) |
MIPS: kernel: syscall: Set the appropriate ISA level for MIPS R6
MIPS R6 changed the opcodes for LL/SC instructions so we need to set
the appropriate ISA level.
Cc: Matthew Fortune <Matthew.Fortune@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Diffstat (limited to 'arch/mips/kernel/syscall.c')
-rw-r--r-- | arch/mips/kernel/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c index 604b558809c4..53a7ef9a8f32 100644 --- a/arch/mips/kernel/syscall.c +++ b/arch/mips/kernel/syscall.c | |||
@@ -136,7 +136,7 @@ static inline int mips_atomic_set(unsigned long addr, unsigned long new) | |||
136 | : "memory"); | 136 | : "memory"); |
137 | } else if (cpu_has_llsc) { | 137 | } else if (cpu_has_llsc) { |
138 | __asm__ __volatile__ ( | 138 | __asm__ __volatile__ ( |
139 | " .set arch=r4000 \n" | 139 | " .set "MIPS_ISA_ARCH_LEVEL" \n" |
140 | " li %[err], 0 \n" | 140 | " li %[err], 0 \n" |
141 | "1: ll %[old], (%[addr]) \n" | 141 | "1: ll %[old], (%[addr]) \n" |
142 | " move %[tmp], %[new] \n" | 142 | " move %[tmp], %[new] \n" |