From: Paul Mundt Date: Sat, 9 Dec 2006 00:14:35 +0000 (+0900) Subject: sh: Fixup kernel_execve() for syscall cleanups. X-Git-Tag: MMI-PSA29.97-13-9~45878^2~5^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=79890c512444aa55a7a42ac5e7d29d7a4edba11b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git sh: Fixup kernel_execve() for syscall cleanups. SH-2 and SH-2A need to use a different syscall base for the trapa vector than the other parts, so fixup the logic in the kernel_execve() case. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/kernel/sys_sh.c b/arch/sh/kernel/sys_sh.c index f38874def74b..e18f183e1035 100644 --- a/arch/sh/kernel/sys_sh.c +++ b/arch/sh/kernel/sys_sh.c @@ -314,6 +314,12 @@ asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1, #endif } +#if defined(CONFIG_CPU_SH2) || defined(CONFIG_CPU_SH2A) +#define SYSCALL_ARG3 "trapa #0x23" +#else +#define SYSCALL_ARG3 "trapa #0x13" +#endif + /* * Do a system call from kernel instead of calling sys_execve so we * end up with proper pt_regs.