diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2014-02-28 06:59:44 -0500 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2014-03-04 03:05:43 -0500 |
commit | 18421166e8360bbb29b5eedd2cd3a9aedc0c90b3 (patch) | |
tree | c1cbc17cf82b2c9f00803ee2b4a9a6a4231a5787 /arch | |
parent | 24e4c2aaef149eafc1958205ace2b202de0dbf16 (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.c | 10 | ||||
-rw-r--r-- | arch/s390/kernel/compat_wrapper.S | 60 | ||||
-rw-r--r-- | arch/s390/kernel/syscalls.S | 20 |
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 | |||
114 | COMPAT_SYSCALL_WRAP5(setxattr, const char __user *, path, const char __user *, name, const void __user *, value, compat_size_t, size, int, flags); | 114 | COMPAT_SYSCALL_WRAP5(setxattr, const char __user *, path, const char __user *, name, const void __user *, value, compat_size_t, size, int, flags); |
115 | COMPAT_SYSCALL_WRAP5(lsetxattr, const char __user *, path, const char __user *, name, const void __user *, value, compat_size_t, size, int, flags); | 115 | COMPAT_SYSCALL_WRAP5(lsetxattr, const char __user *, path, const char __user *, name, const void __user *, value, compat_size_t, size, int, flags); |
116 | COMPAT_SYSCALL_WRAP5(fsetxattr, int, fd, const char __user *, name, const void __user *, value, compat_size_t, size, int, flags); | 116 | COMPAT_SYSCALL_WRAP5(fsetxattr, int, fd, const char __user *, name, const void __user *, value, compat_size_t, size, int, flags); |
117 | COMPAT_SYSCALL_WRAP3(getdents64, unsigned int, fd, struct linux_dirent64 __user *, dirent, unsigned int, count); | ||
118 | COMPAT_SYSCALL_WRAP4(getxattr, const char __user *, path, const char __user *, name, void __user *, value, compat_size_t, size); | ||
119 | COMPAT_SYSCALL_WRAP4(lgetxattr, const char __user *, path, const char __user *, name, void __user *, value, compat_size_t, size); | ||
120 | COMPAT_SYSCALL_WRAP4(fgetxattr, int, fd, const char __user *, name, void __user *, value, compat_size_t, size); | ||
121 | COMPAT_SYSCALL_WRAP3(listxattr, const char __user *, path, char __user *, list, compat_size_t, size); | ||
122 | COMPAT_SYSCALL_WRAP3(llistxattr, const char __user *, path, char __user *, list, compat_size_t, size); | ||
123 | COMPAT_SYSCALL_WRAP3(flistxattr, int, fd, char __user *, list, compat_size_t, size); | ||
124 | COMPAT_SYSCALL_WRAP2(removexattr, const char __user *, path, const char __user *, name); | ||
125 | COMPAT_SYSCALL_WRAP2(lremovexattr, const char __user *, path, const char __user *, name); | ||
126 | COMPAT_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 | ||
162 | ENTRY(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 | |||
168 | ENTRY(compat_sys_fcntl64_wrapper) | 162 | ENTRY(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 | ||
178 | ENTRY(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 | |||
185 | ENTRY(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 | |||
192 | ENTRY(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 | |||
199 | ENTRY(sys32_listxattr_wrapper) | ||
200 | llgtr %r2,%r2 # char * | ||
201 | llgtr %r3,%r3 # char * | ||
202 | llgfr %r4,%r4 # size_t | ||
203 | jg sys_listxattr | ||
204 | |||
205 | ENTRY(sys32_llistxattr_wrapper) | ||
206 | llgtr %r2,%r2 # char * | ||
207 | llgtr %r3,%r3 # char * | ||
208 | llgfr %r4,%r4 # size_t | ||
209 | jg sys_llistxattr | ||
210 | |||
211 | ENTRY(sys32_flistxattr_wrapper) | ||
212 | lgfr %r2,%r2 # int | ||
213 | llgtr %r3,%r3 # char * | ||
214 | llgfr %r4,%r4 # size_t | ||
215 | jg sys_flistxattr | ||
216 | |||
217 | ENTRY(sys32_removexattr_wrapper) | ||
218 | llgtr %r2,%r2 # char * | ||
219 | llgtr %r3,%r3 # char * | ||
220 | jg sys_removexattr | ||
221 | |||
222 | ENTRY(sys32_lremovexattr_wrapper) | ||
223 | llgtr %r2,%r2 # char * | ||
224 | llgtr %r3,%r3 # char * | ||
225 | jg sys_lremovexattr | ||
226 | |||
227 | ENTRY(sys32_fremovexattr_wrapper) | ||
228 | lgfr %r2,%r2 # int | ||
229 | llgtr %r3,%r3 # char * | ||
230 | jg sys_fremovexattr | ||
231 | |||
232 | ENTRY(sys32_sched_setaffinity_wrapper) | 172 | ENTRY(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) | |||
228 | SYSCALL(sys_pivot_root,sys_pivot_root,compat_sys_pivot_root) | 228 | SYSCALL(sys_pivot_root,sys_pivot_root,compat_sys_pivot_root) |
229 | SYSCALL(sys_mincore,sys_mincore,compat_sys_mincore) | 229 | SYSCALL(sys_mincore,sys_mincore,compat_sys_mincore) |
230 | SYSCALL(sys_madvise,sys_madvise,compat_sys_madvise) | 230 | SYSCALL(sys_madvise,sys_madvise,compat_sys_madvise) |
231 | SYSCALL(sys_getdents64,sys_getdents64,sys32_getdents64_wrapper) /* 220 */ | 231 | SYSCALL(sys_getdents64,sys_getdents64,compat_sys_getdents64) /* 220 */ |
232 | SYSCALL(sys_fcntl64,sys_ni_syscall,compat_sys_fcntl64_wrapper) | 232 | SYSCALL(sys_fcntl64,sys_ni_syscall,compat_sys_fcntl64_wrapper) |
233 | SYSCALL(sys_readahead,sys_readahead,compat_sys_s390_readahead) | 233 | SYSCALL(sys_readahead,sys_readahead,compat_sys_s390_readahead) |
234 | SYSCALL(sys_sendfile64,sys_ni_syscall,compat_sys_sendfile64) | 234 | SYSCALL(sys_sendfile64,sys_ni_syscall,compat_sys_sendfile64) |
235 | SYSCALL(sys_setxattr,sys_setxattr,compat_sys_setxattr) | 235 | SYSCALL(sys_setxattr,sys_setxattr,compat_sys_setxattr) |
236 | SYSCALL(sys_lsetxattr,sys_lsetxattr,compat_sys_lsetxattr) /* 225 */ | 236 | SYSCALL(sys_lsetxattr,sys_lsetxattr,compat_sys_lsetxattr) /* 225 */ |
237 | SYSCALL(sys_fsetxattr,sys_fsetxattr,compat_sys_fsetxattr) | 237 | SYSCALL(sys_fsetxattr,sys_fsetxattr,compat_sys_fsetxattr) |
238 | SYSCALL(sys_getxattr,sys_getxattr,sys32_getxattr_wrapper) | 238 | SYSCALL(sys_getxattr,sys_getxattr,compat_sys_getxattr) |
239 | SYSCALL(sys_lgetxattr,sys_lgetxattr,sys32_lgetxattr_wrapper) | 239 | SYSCALL(sys_lgetxattr,sys_lgetxattr,compat_sys_lgetxattr) |
240 | SYSCALL(sys_fgetxattr,sys_fgetxattr,sys32_fgetxattr_wrapper) | 240 | SYSCALL(sys_fgetxattr,sys_fgetxattr,compat_sys_fgetxattr) |
241 | SYSCALL(sys_listxattr,sys_listxattr,sys32_listxattr_wrapper) /* 230 */ | 241 | SYSCALL(sys_listxattr,sys_listxattr,compat_sys_listxattr) /* 230 */ |
242 | SYSCALL(sys_llistxattr,sys_llistxattr,sys32_llistxattr_wrapper) | 242 | SYSCALL(sys_llistxattr,sys_llistxattr,compat_sys_llistxattr) |
243 | SYSCALL(sys_flistxattr,sys_flistxattr,sys32_flistxattr_wrapper) | 243 | SYSCALL(sys_flistxattr,sys_flistxattr,compat_sys_flistxattr) |
244 | SYSCALL(sys_removexattr,sys_removexattr,sys32_removexattr_wrapper) | 244 | SYSCALL(sys_removexattr,sys_removexattr,compat_sys_removexattr) |
245 | SYSCALL(sys_lremovexattr,sys_lremovexattr,sys32_lremovexattr_wrapper) | 245 | SYSCALL(sys_lremovexattr,sys_lremovexattr,compat_sys_lremovexattr) |
246 | SYSCALL(sys_fremovexattr,sys_fremovexattr,sys32_fremovexattr_wrapper) /* 235 */ | 246 | SYSCALL(sys_fremovexattr,sys_fremovexattr,compat_sys_fremovexattr) /* 235 */ |
247 | SYSCALL(sys_gettid,sys_gettid,sys_gettid) | 247 | SYSCALL(sys_gettid,sys_gettid,sys_gettid) |
248 | SYSCALL(sys_tkill,sys_tkill,sys_tkill_wrapper) | 248 | SYSCALL(sys_tkill,sys_tkill,sys_tkill_wrapper) |
249 | SYSCALL(sys_futex,sys_futex,compat_sys_futex) | 249 | SYSCALL(sys_futex,sys_futex,compat_sys_futex) |