aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2014-02-28 06:59:44 -0500
committerHeiko Carstens <heiko.carstens@de.ibm.com>2014-03-04 03:05:43 -0500
commit18421166e8360bbb29b5eedd2cd3a9aedc0c90b3 (patch)
treec1cbc17cf82b2c9f00803ee2b4a9a6a4231a5787 /arch
parent24e4c2aaef149eafc1958205ace2b202de0dbf16 (diff)
s390/compat: convert system call wrappers to C part 10
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/s390/kernel/compat_wrap.c10
-rw-r--r--arch/s390/kernel/compat_wrapper.S60
-rw-r--r--arch/s390/kernel/syscalls.S20
3 files changed, 20 insertions, 70 deletions
diff --git a/arch/s390/kernel/compat_wrap.c b/arch/s390/kernel/compat_wrap.c
index 84d2e256ddab..97197b8ab838 100644
--- a/arch/s390/kernel/compat_wrap.c
+++ b/arch/s390/kernel/compat_wrap.c
@@ -114,3 +114,13 @@ COMPAT_SYSCALL_WRAP3(madvise, compat_ulong_t, start, compat_size_t, len, int, be
114COMPAT_SYSCALL_WRAP5(setxattr, const char __user *, path, const char __user *, name, const void __user *, value, compat_size_t, size, int, flags); 114COMPAT_SYSCALL_WRAP5(setxattr, const char __user *, path, const char __user *, name, const void __user *, value, compat_size_t, size, int, flags);
115COMPAT_SYSCALL_WRAP5(lsetxattr, const char __user *, path, const char __user *, name, const void __user *, value, compat_size_t, size, int, flags); 115COMPAT_SYSCALL_WRAP5(lsetxattr, const char __user *, path, const char __user *, name, const void __user *, value, compat_size_t, size, int, flags);
116COMPAT_SYSCALL_WRAP5(fsetxattr, int, fd, const char __user *, name, const void __user *, value, compat_size_t, size, int, flags); 116COMPAT_SYSCALL_WRAP5(fsetxattr, int, fd, const char __user *, name, const void __user *, value, compat_size_t, size, int, flags);
117COMPAT_SYSCALL_WRAP3(getdents64, unsigned int, fd, struct linux_dirent64 __user *, dirent, unsigned int, count);
118COMPAT_SYSCALL_WRAP4(getxattr, const char __user *, path, const char __user *, name, void __user *, value, compat_size_t, size);
119COMPAT_SYSCALL_WRAP4(lgetxattr, const char __user *, path, const char __user *, name, void __user *, value, compat_size_t, size);
120COMPAT_SYSCALL_WRAP4(fgetxattr, int, fd, const char __user *, name, void __user *, value, compat_size_t, size);
121COMPAT_SYSCALL_WRAP3(listxattr, const char __user *, path, char __user *, list, compat_size_t, size);
122COMPAT_SYSCALL_WRAP3(llistxattr, const char __user *, path, char __user *, list, compat_size_t, size);
123COMPAT_SYSCALL_WRAP3(flistxattr, int, fd, char __user *, list, compat_size_t, size);
124COMPAT_SYSCALL_WRAP2(removexattr, const char __user *, path, const char __user *, name);
125COMPAT_SYSCALL_WRAP2(lremovexattr, const char __user *, path, const char __user *, name);
126COMPAT_SYSCALL_WRAP2(fremovexattr, int, fd, const char __user *, name);
diff --git a/arch/s390/kernel/compat_wrapper.S b/arch/s390/kernel/compat_wrapper.S
index 1e1b71ff9fa6..f23a462947a6 100644
--- a/arch/s390/kernel/compat_wrapper.S
+++ b/arch/s390/kernel/compat_wrapper.S
@@ -159,12 +159,6 @@ ENTRY(compat_sys_nanosleep_wrapper)
159 llgtr %r3,%r3 # struct compat_timespec * 159 llgtr %r3,%r3 # struct compat_timespec *
160 jg compat_sys_nanosleep # branch to system call 160 jg compat_sys_nanosleep # branch to system call
161 161
162ENTRY(sys32_getdents64_wrapper)
163 llgfr %r2,%r2 # unsigned int
164 llgtr %r3,%r3 # void *
165 llgfr %r4,%r4 # unsigned int
166 jg sys_getdents64 # branch to system call
167
168ENTRY(compat_sys_fcntl64_wrapper) 162ENTRY(compat_sys_fcntl64_wrapper)
169 llgfr %r2,%r2 # unsigned int 163 llgfr %r2,%r2 # unsigned int
170 llgfr %r3,%r3 # unsigned int 164 llgfr %r3,%r3 # unsigned int
@@ -175,60 +169,6 @@ ENTRY(sys32_stime_wrapper)
175 llgtr %r2,%r2 # long * 169 llgtr %r2,%r2 # long *
176 jg compat_sys_stime # branch to system call 170 jg compat_sys_stime # branch to system call
177 171
178ENTRY(sys32_getxattr_wrapper)
179 llgtr %r2,%r2 # char *
180 llgtr %r3,%r3 # char *
181 llgtr %r4,%r4 # void *
182 llgfr %r5,%r5 # size_t
183 jg sys_getxattr
184
185ENTRY(sys32_lgetxattr_wrapper)
186 llgtr %r2,%r2 # char *
187 llgtr %r3,%r3 # char *
188 llgtr %r4,%r4 # void *
189 llgfr %r5,%r5 # size_t
190 jg sys_lgetxattr
191
192ENTRY(sys32_fgetxattr_wrapper)
193 lgfr %r2,%r2 # int
194 llgtr %r3,%r3 # char *
195 llgtr %r4,%r4 # void *
196 llgfr %r5,%r5 # size_t
197 jg sys_fgetxattr
198
199ENTRY(sys32_listxattr_wrapper)
200 llgtr %r2,%r2 # char *
201 llgtr %r3,%r3 # char *
202 llgfr %r4,%r4 # size_t
203 jg sys_listxattr
204
205ENTRY(sys32_llistxattr_wrapper)
206 llgtr %r2,%r2 # char *
207 llgtr %r3,%r3 # char *
208 llgfr %r4,%r4 # size_t
209 jg sys_llistxattr
210
211ENTRY(sys32_flistxattr_wrapper)
212 lgfr %r2,%r2 # int
213 llgtr %r3,%r3 # char *
214 llgfr %r4,%r4 # size_t
215 jg sys_flistxattr
216
217ENTRY(sys32_removexattr_wrapper)
218 llgtr %r2,%r2 # char *
219 llgtr %r3,%r3 # char *
220 jg sys_removexattr
221
222ENTRY(sys32_lremovexattr_wrapper)
223 llgtr %r2,%r2 # char *
224 llgtr %r3,%r3 # char *
225 jg sys_lremovexattr
226
227ENTRY(sys32_fremovexattr_wrapper)
228 lgfr %r2,%r2 # int
229 llgtr %r3,%r3 # char *
230 jg sys_fremovexattr
231
232ENTRY(sys32_sched_setaffinity_wrapper) 172ENTRY(sys32_sched_setaffinity_wrapper)
233 lgfr %r2,%r2 # int 173 lgfr %r2,%r2 # int
234 llgfr %r3,%r3 # unsigned int 174 llgfr %r3,%r3 # unsigned int
diff --git a/arch/s390/kernel/syscalls.S b/arch/s390/kernel/syscalls.S
index 053b2712fe28..cb6fc8abb707 100644
--- a/arch/s390/kernel/syscalls.S
+++ b/arch/s390/kernel/syscalls.S
@@ -228,22 +228,22 @@ SYSCALL(sys_setfsgid,sys_setfsgid,compat_sys_setfsgid)
228SYSCALL(sys_pivot_root,sys_pivot_root,compat_sys_pivot_root) 228SYSCALL(sys_pivot_root,sys_pivot_root,compat_sys_pivot_root)
229SYSCALL(sys_mincore,sys_mincore,compat_sys_mincore) 229SYSCALL(sys_mincore,sys_mincore,compat_sys_mincore)
230SYSCALL(sys_madvise,sys_madvise,compat_sys_madvise) 230SYSCALL(sys_madvise,sys_madvise,compat_sys_madvise)
231SYSCALL(sys_getdents64,sys_getdents64,sys32_getdents64_wrapper) /* 220 */ 231SYSCALL(sys_getdents64,sys_getdents64,compat_sys_getdents64) /* 220 */
232SYSCALL(sys_fcntl64,sys_ni_syscall,compat_sys_fcntl64_wrapper) 232SYSCALL(sys_fcntl64,sys_ni_syscall,compat_sys_fcntl64_wrapper)
233SYSCALL(sys_readahead,sys_readahead,compat_sys_s390_readahead) 233SYSCALL(sys_readahead,sys_readahead,compat_sys_s390_readahead)
234SYSCALL(sys_sendfile64,sys_ni_syscall,compat_sys_sendfile64) 234SYSCALL(sys_sendfile64,sys_ni_syscall,compat_sys_sendfile64)
235SYSCALL(sys_setxattr,sys_setxattr,compat_sys_setxattr) 235SYSCALL(sys_setxattr,sys_setxattr,compat_sys_setxattr)
236SYSCALL(sys_lsetxattr,sys_lsetxattr,compat_sys_lsetxattr) /* 225 */ 236SYSCALL(sys_lsetxattr,sys_lsetxattr,compat_sys_lsetxattr) /* 225 */
237SYSCALL(sys_fsetxattr,sys_fsetxattr,compat_sys_fsetxattr) 237SYSCALL(sys_fsetxattr,sys_fsetxattr,compat_sys_fsetxattr)
238SYSCALL(sys_getxattr,sys_getxattr,sys32_getxattr_wrapper) 238SYSCALL(sys_getxattr,sys_getxattr,compat_sys_getxattr)
239SYSCALL(sys_lgetxattr,sys_lgetxattr,sys32_lgetxattr_wrapper) 239SYSCALL(sys_lgetxattr,sys_lgetxattr,compat_sys_lgetxattr)
240SYSCALL(sys_fgetxattr,sys_fgetxattr,sys32_fgetxattr_wrapper) 240SYSCALL(sys_fgetxattr,sys_fgetxattr,compat_sys_fgetxattr)
241SYSCALL(sys_listxattr,sys_listxattr,sys32_listxattr_wrapper) /* 230 */ 241SYSCALL(sys_listxattr,sys_listxattr,compat_sys_listxattr) /* 230 */
242SYSCALL(sys_llistxattr,sys_llistxattr,sys32_llistxattr_wrapper) 242SYSCALL(sys_llistxattr,sys_llistxattr,compat_sys_llistxattr)
243SYSCALL(sys_flistxattr,sys_flistxattr,sys32_flistxattr_wrapper) 243SYSCALL(sys_flistxattr,sys_flistxattr,compat_sys_flistxattr)
244SYSCALL(sys_removexattr,sys_removexattr,sys32_removexattr_wrapper) 244SYSCALL(sys_removexattr,sys_removexattr,compat_sys_removexattr)
245SYSCALL(sys_lremovexattr,sys_lremovexattr,sys32_lremovexattr_wrapper) 245SYSCALL(sys_lremovexattr,sys_lremovexattr,compat_sys_lremovexattr)
246SYSCALL(sys_fremovexattr,sys_fremovexattr,sys32_fremovexattr_wrapper) /* 235 */ 246SYSCALL(sys_fremovexattr,sys_fremovexattr,compat_sys_fremovexattr) /* 235 */
247SYSCALL(sys_gettid,sys_gettid,sys_gettid) 247SYSCALL(sys_gettid,sys_gettid,sys_gettid)
248SYSCALL(sys_tkill,sys_tkill,sys_tkill_wrapper) 248SYSCALL(sys_tkill,sys_tkill,sys_tkill_wrapper)
249SYSCALL(sys_futex,sys_futex,compat_sys_futex) 249SYSCALL(sys_futex,sys_futex,compat_sys_futex)