summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/mips64/kernel/scall_64.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips64/kernel/scall_64.S b/arch/mips64/kernel/scall_64.S
index 9241797c7..0e9d40e17 100644
--- a/arch/mips64/kernel/scall_64.S
+++ b/arch/mips64/kernel/scall_64.S
@@ -31,9 +31,12 @@
.align 5
NESTED(handle_sys64, PT_SIZE, sp)
+/* When 32-bit compatibility is configured scall_o32.S already did this. */
+#ifndef CONFIG_MIPS32_COMPAT
.set noat
SAVE_SOME
.set at
+#endif
ld t1, PT_EPC(sp) # skip syscall on return
sltiu t0, v0, MAX_SYSCALL_NO + 1 # check syscall number