diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2013-12-04 09:35:28 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-03-26 18:09:13 -0400 |
commit | 86bdb2779d67773edcfddfca4d6a4ae055e21964 (patch) | |
tree | 7144188bddd1c1aed9376dac5382b15d373ba721 /arch/mips/kernel | |
parent | aa1af47f5dd1444544e7fa59bf2cc8a8f34f4644 (diff) |
MIPS: kernel: scall32-o32: Use EVA wrappers to fetch syscall arguments
Arguments 4-8 are stored on user's stack, so use the EVA instructions
to fetch them if EVA is enabled.
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/scall32-o32.S | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index ffe89139e0f9..fdc70b400442 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
@@ -6,6 +6,7 @@ | |||
6 | * Copyright (C) 1995-99, 2000- 02, 06 Ralf Baechle <ralf@linux-mips.org> | 6 | * Copyright (C) 1995-99, 2000- 02, 06 Ralf Baechle <ralf@linux-mips.org> |
7 | * Copyright (C) 2001 MIPS Technologies, Inc. | 7 | * Copyright (C) 2001 MIPS Technologies, Inc. |
8 | * Copyright (C) 2004 Thiemo Seufer | 8 | * Copyright (C) 2004 Thiemo Seufer |
9 | * Copyright (C) 2014 Imagination Technologies Ltd. | ||
9 | */ | 10 | */ |
10 | #include <linux/errno.h> | 11 | #include <linux/errno.h> |
11 | #include <asm/asm.h> | 12 | #include <asm/asm.h> |
@@ -74,10 +75,10 @@ NESTED(handle_sys, PT_SIZE, sp) | |||
74 | .set noreorder | 75 | .set noreorder |
75 | .set nomacro | 76 | .set nomacro |
76 | 77 | ||
77 | 1: lw t5, 16(t0) # argument #5 from usp | 78 | 1: user_lw(t5, 16(t0)) # argument #5 from usp |
78 | 4: lw t6, 20(t0) # argument #6 from usp | 79 | 4: user_lw(t6, 20(t0)) # argument #6 from usp |
79 | 3: lw t7, 24(t0) # argument #7 from usp | 80 | 3: user_lw(t7, 24(t0)) # argument #7 from usp |
80 | 2: lw t8, 28(t0) # argument #8 from usp | 81 | 2: user_lw(t8, 28(t0)) # argument #8 from usp |
81 | 82 | ||
82 | sw t5, 16(sp) # argument #5 to ksp | 83 | sw t5, 16(sp) # argument #5 to ksp |
83 | sw t6, 20(sp) # argument #6 to ksp | 84 | sw t6, 20(sp) # argument #6 to ksp |