* [PATCH] MIPS: Fix the syscall lookup_dcookie in scall64-o32.S
@ 2009-10-10 11:19 Wu Zhangjin
2009-10-11 16:36 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Wu Zhangjin @ 2009-10-10 11:19 UTC (permalink / raw)
To: linux-mips; +Cc: Ralf Baechle, Wu Zhangjin, Chen Jie, Hu Hongbing
When the kernel is 64bit, the application in O32 ABI will pass 4
arguments to syscall lookup_dcookie, but the implementation can only
handle 3 arguments. This patch will fixes it.
Signed-off-by: Chen Jie <chenj@lemote.com>
Signed-off-by: Hu Hongbing <huhb@lemote.com>
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
arch/mips/kernel/linux32.c | 6 ++++++
arch/mips/kernel/scall64-o32.S | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c
index 6242bc6..9dc09be 100644
--- a/arch/mips/kernel/linux32.c
+++ b/arch/mips/kernel/linux32.c
@@ -428,3 +428,9 @@ _sys32_clone(nabi_no_regargs struct pt_regs regs)
return do_fork(clone_flags, newsp, ®s, 0,
parent_tidptr, child_tidptr);
}
+
+asmlinkage long sys32_lookup_dcookie(u32 dcookie_a0, u32 dcookie_a1,
+ char __user *buf, size_t len)
+{
+ return sys_lookup_dcookie(merge_64(dcookie_a0, dcookie_a1), buf, len);
+}
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S
index 9bbf977..ba0dde6 100644
--- a/arch/mips/kernel/scall64-o32.S
+++ b/arch/mips/kernel/scall64-o32.S
@@ -450,7 +450,7 @@ sys_call_table:
PTR sys_io_submit
PTR sys_io_cancel /* 4245 */
PTR sys_exit_group
- PTR sys_lookup_dcookie
+ PTR sys32_lookup_dcookie
PTR sys_epoll_create
PTR sys_epoll_ctl
PTR sys_epoll_wait /* 4250 */
--
1.6.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MIPS: Fix the syscall lookup_dcookie in scall64-o32.S
2009-10-10 11:19 [PATCH] MIPS: Fix the syscall lookup_dcookie in scall64-o32.S Wu Zhangjin
@ 2009-10-11 16:36 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2009-10-11 16:36 UTC (permalink / raw)
To: Wu Zhangjin; +Cc: linux-mips, Chen Jie, Hu Hongbing
On Sat, Oct 10, 2009 at 07:19:49PM +0800, Wu Zhangjin wrote:
> When the kernel is 64bit, the application in O32 ABI will pass 4
> arguments to syscall lookup_dcookie, but the implementation can only
> handle 3 arguments. This patch will fixes it.
Thanks folks, applied - but please use tabs not whitespace for indentation
in the future ...
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-11 16:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-10 11:19 [PATCH] MIPS: Fix the syscall lookup_dcookie in scall64-o32.S Wu Zhangjin
2009-10-11 16:36 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).