diff options
-rw-r--r-- | arch/s390/kernel/compat_wrap.c | 10 | ||||
-rw-r--r-- | arch/s390/kernel/compat_wrapper.S | 45 | ||||
-rw-r--r-- | arch/s390/kernel/syscalls.S | 20 |
3 files changed, 20 insertions, 55 deletions
diff --git a/arch/s390/kernel/compat_wrap.c b/arch/s390/kernel/compat_wrap.c index 5357190c814e..93f13f2350d4 100644 --- a/arch/s390/kernel/compat_wrap.c +++ b/arch/s390/kernel/compat_wrap.c | |||
@@ -33,3 +33,13 @@ COMPAT_SYSCALL_WRAP1(oldumount, char __user *, name); | |||
33 | COMPAT_SYSCALL_WRAP1(alarm, unsigned int, seconds); | 33 | COMPAT_SYSCALL_WRAP1(alarm, unsigned int, seconds); |
34 | COMPAT_SYSCALL_WRAP2(access, const char __user *, filename, int, mode); | 34 | COMPAT_SYSCALL_WRAP2(access, const char __user *, filename, int, mode); |
35 | COMPAT_SYSCALL_WRAP1(nice, int, increment); | 35 | COMPAT_SYSCALL_WRAP1(nice, int, increment); |
36 | COMPAT_SYSCALL_WRAP2(kill, int, pid, int, sig); | ||
37 | COMPAT_SYSCALL_WRAP2(rename, const char __user *, oldname, const char __user *, newname); | ||
38 | COMPAT_SYSCALL_WRAP2(mkdir, const char __user *, pathname, umode_t, mode); | ||
39 | COMPAT_SYSCALL_WRAP1(rmdir, const char __user *, pathname); | ||
40 | COMPAT_SYSCALL_WRAP1(dup, unsigned int, fildes); | ||
41 | COMPAT_SYSCALL_WRAP1(pipe, int __user *, fildes); | ||
42 | COMPAT_SYSCALL_WRAP1(brk, compat_ulong_t, brk); | ||
43 | COMPAT_SYSCALL_WRAP2(signal, int, sig, __sighandler_t, handler); | ||
44 | COMPAT_SYSCALL_WRAP1(acct, const char __user *, name); | ||
45 | COMPAT_SYSCALL_WRAP2(umount, char __user *, name, int, flags); | ||
diff --git a/arch/s390/kernel/compat_wrapper.S b/arch/s390/kernel/compat_wrapper.S index 09e65cd2e24e..e1b9d4ab0796 100644 --- a/arch/s390/kernel/compat_wrapper.S +++ b/arch/s390/kernel/compat_wrapper.S | |||
@@ -34,55 +34,10 @@ ENTRY(compat_sys_utime_wrapper) | |||
34 | llgtr %r3,%r3 # struct compat_utimbuf * | 34 | llgtr %r3,%r3 # struct compat_utimbuf * |
35 | jg compat_sys_utime # branch to system call | 35 | jg compat_sys_utime # branch to system call |
36 | 36 | ||
37 | ENTRY(sys32_kill_wrapper) | ||
38 | lgfr %r2,%r2 # int | ||
39 | lgfr %r3,%r3 # int | ||
40 | jg sys_kill # branch to system call | ||
41 | |||
42 | ENTRY(sys32_rename_wrapper) | ||
43 | llgtr %r2,%r2 # const char * | ||
44 | llgtr %r3,%r3 # const char * | ||
45 | jg sys_rename # branch to system call | ||
46 | |||
47 | ENTRY(sys32_mkdir_wrapper) | ||
48 | llgtr %r2,%r2 # const char * | ||
49 | lgfr %r3,%r3 # int | ||
50 | jg sys_mkdir # branch to system call | ||
51 | |||
52 | ENTRY(sys32_rmdir_wrapper) | ||
53 | llgtr %r2,%r2 # const char * | ||
54 | jg sys_rmdir # branch to system call | ||
55 | |||
56 | ENTRY(sys32_dup_wrapper) | ||
57 | llgfr %r2,%r2 # unsigned int | ||
58 | jg sys_dup # branch to system call | ||
59 | |||
60 | ENTRY(sys32_pipe_wrapper) | ||
61 | llgtr %r2,%r2 # u32 * | ||
62 | jg sys_pipe # branch to system call | ||
63 | |||
64 | ENTRY(compat_sys_times_wrapper) | 37 | ENTRY(compat_sys_times_wrapper) |
65 | llgtr %r2,%r2 # struct compat_tms * | 38 | llgtr %r2,%r2 # struct compat_tms * |
66 | jg compat_sys_times # branch to system call | 39 | jg compat_sys_times # branch to system call |
67 | 40 | ||
68 | ENTRY(sys32_brk_wrapper) | ||
69 | llgtr %r2,%r2 # unsigned long | ||
70 | jg sys_brk # branch to system call | ||
71 | |||
72 | ENTRY(sys32_signal_wrapper) | ||
73 | lgfr %r2,%r2 # int | ||
74 | llgtr %r3,%r3 # __sighandler_t | ||
75 | jg sys_signal | ||
76 | |||
77 | ENTRY(sys32_acct_wrapper) | ||
78 | llgtr %r2,%r2 # char * | ||
79 | jg sys_acct # branch to system call | ||
80 | |||
81 | ENTRY(sys32_umount_wrapper) | ||
82 | llgtr %r2,%r2 # char * | ||
83 | lgfr %r3,%r3 # int | ||
84 | jg sys_umount # branch to system call | ||
85 | |||
86 | ENTRY(compat_sys_ioctl_wrapper) | 41 | ENTRY(compat_sys_ioctl_wrapper) |
87 | llgfr %r2,%r2 # unsigned int | 42 | llgfr %r2,%r2 # unsigned int |
88 | llgfr %r3,%r3 # unsigned int | 43 | llgfr %r3,%r3 # unsigned int |
diff --git a/arch/s390/kernel/syscalls.S b/arch/s390/kernel/syscalls.S index ec1de1b3ecd2..da6bffd5c473 100644 --- a/arch/s390/kernel/syscalls.S +++ b/arch/s390/kernel/syscalls.S | |||
@@ -45,22 +45,22 @@ SYSCALL(sys_access,sys_access,compat_sys_access) | |||
45 | SYSCALL(sys_nice,sys_nice,compat_sys_nice) | 45 | SYSCALL(sys_nice,sys_nice,compat_sys_nice) |
46 | NI_SYSCALL /* 35 old ftime syscall */ | 46 | NI_SYSCALL /* 35 old ftime syscall */ |
47 | SYSCALL(sys_sync,sys_sync,sys_sync) | 47 | SYSCALL(sys_sync,sys_sync,sys_sync) |
48 | SYSCALL(sys_kill,sys_kill,sys32_kill_wrapper) | 48 | SYSCALL(sys_kill,sys_kill,compat_sys_kill) |
49 | SYSCALL(sys_rename,sys_rename,sys32_rename_wrapper) | 49 | SYSCALL(sys_rename,sys_rename,compat_sys_rename) |
50 | SYSCALL(sys_mkdir,sys_mkdir,sys32_mkdir_wrapper) | 50 | SYSCALL(sys_mkdir,sys_mkdir,compat_sys_mkdir) |
51 | SYSCALL(sys_rmdir,sys_rmdir,sys32_rmdir_wrapper) /* 40 */ | 51 | SYSCALL(sys_rmdir,sys_rmdir,compat_sys_rmdir) /* 40 */ |
52 | SYSCALL(sys_dup,sys_dup,sys32_dup_wrapper) | 52 | SYSCALL(sys_dup,sys_dup,compat_sys_dup) |
53 | SYSCALL(sys_pipe,sys_pipe,sys32_pipe_wrapper) | 53 | SYSCALL(sys_pipe,sys_pipe,compat_sys_pipe) |
54 | SYSCALL(sys_times,sys_times,compat_sys_times_wrapper) | 54 | SYSCALL(sys_times,sys_times,compat_sys_times_wrapper) |
55 | NI_SYSCALL /* old prof syscall */ | 55 | NI_SYSCALL /* old prof syscall */ |
56 | SYSCALL(sys_brk,sys_brk,sys32_brk_wrapper) /* 45 */ | 56 | SYSCALL(sys_brk,sys_brk,compat_sys_brk) /* 45 */ |
57 | SYSCALL(sys_setgid16,sys_ni_syscall,compat_sys_s390_setgid16) /* old setgid16 syscall*/ | 57 | SYSCALL(sys_setgid16,sys_ni_syscall,compat_sys_s390_setgid16) /* old setgid16 syscall*/ |
58 | SYSCALL(sys_getgid16,sys_ni_syscall,compat_sys_s390_getgid16) /* old getgid16 syscall*/ | 58 | SYSCALL(sys_getgid16,sys_ni_syscall,compat_sys_s390_getgid16) /* old getgid16 syscall*/ |
59 | SYSCALL(sys_signal,sys_signal,sys32_signal_wrapper) | 59 | SYSCALL(sys_signal,sys_signal,compat_sys_signal) |
60 | SYSCALL(sys_geteuid16,sys_ni_syscall,compat_sys_s390_geteuid16) /* old geteuid16 syscall */ | 60 | SYSCALL(sys_geteuid16,sys_ni_syscall,compat_sys_s390_geteuid16) /* old geteuid16 syscall */ |
61 | SYSCALL(sys_getegid16,sys_ni_syscall,compat_sys_s390_getegid16) /* 50 old getegid16 syscall */ | 61 | SYSCALL(sys_getegid16,sys_ni_syscall,compat_sys_s390_getegid16) /* 50 old getegid16 syscall */ |
62 | SYSCALL(sys_acct,sys_acct,sys32_acct_wrapper) | 62 | SYSCALL(sys_acct,sys_acct,compat_sys_acct) |
63 | SYSCALL(sys_umount,sys_umount,sys32_umount_wrapper) | 63 | SYSCALL(sys_umount,sys_umount,compat_sys_umount) |
64 | NI_SYSCALL /* old lock syscall */ | 64 | NI_SYSCALL /* old lock syscall */ |
65 | SYSCALL(sys_ioctl,sys_ioctl,compat_sys_ioctl_wrapper) | 65 | SYSCALL(sys_ioctl,sys_ioctl,compat_sys_ioctl_wrapper) |
66 | SYSCALL(sys_fcntl,sys_fcntl,compat_sys_fcntl_wrapper) /* 55 */ | 66 | SYSCALL(sys_fcntl,sys_fcntl,compat_sys_fcntl_wrapper) /* 55 */ |