compat_wrapper.S 36.8 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3
/*
*    wrapper for 31 bit compatible system calls.
*
4
*    Copyright IBM Corp. 2000, 2006
L
Linus Torvalds 已提交
5
*    Author(s): Gerhard Tonn (ton@de.ibm.com),
H
Heiko Carstens 已提交
6 7
*		Thomas Spatzier (tspat@de.ibm.com)
*/
L
Linus Torvalds 已提交
8

9 10 11
#include <linux/linkage.h>

ENTRY(sys32_exit_wrapper)
L
Linus Torvalds 已提交
12 13
	lgfr	%r2,%r2			# int
	jg	sys_exit		# branch to sys_exit
H
Heiko Carstens 已提交
14

15
ENTRY(sys32_read_wrapper)
L
Linus Torvalds 已提交
16 17 18 19 20
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	jg	sys32_read		# branch to sys_read

21
ENTRY(sys32_write_wrapper)
L
Linus Torvalds 已提交
22 23 24 25 26
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# size_t
	jg	sys32_write		# branch to system call

27
ENTRY(sys32_close_wrapper)
L
Linus Torvalds 已提交
28 29 30
	llgfr	%r2,%r2			# unsigned int
	jg	sys_close		# branch to system call

31
ENTRY(sys32_creat_wrapper)
L
Linus Torvalds 已提交
32 33 34 35
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_creat		# branch to system call

36
ENTRY(sys32_link_wrapper)
L
Linus Torvalds 已提交
37 38 39 40
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_link		# branch to system call

41
ENTRY(sys32_unlink_wrapper)
L
Linus Torvalds 已提交
42 43 44
	llgtr	%r2,%r2			# const char *
	jg	sys_unlink		# branch to system call

45
ENTRY(sys32_chdir_wrapper)
L
Linus Torvalds 已提交
46 47 48
	llgtr	%r2,%r2			# const char *
	jg	sys_chdir		# branch to system call

49
ENTRY(sys32_time_wrapper)
L
Linus Torvalds 已提交
50 51 52
	llgtr	%r2,%r2			# int *
	jg	compat_sys_time		# branch to system call

53
ENTRY(sys32_mknod_wrapper)
L
Linus Torvalds 已提交
54
	llgtr	%r2,%r2			# const char *
H
Heiko Carstens 已提交
55
	lgfr	%r3,%r3			# int
L
Linus Torvalds 已提交
56 57 58
	llgfr	%r4,%r4			# dev
	jg	sys_mknod		# branch to system call

59
ENTRY(sys32_chmod_wrapper)
L
Linus Torvalds 已提交
60 61 62 63
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# mode_t
	jg	sys_chmod		# branch to system call

64
ENTRY(sys32_lchown16_wrapper)
L
Linus Torvalds 已提交
65
	llgtr	%r2,%r2			# const char *
H
Heiko Carstens 已提交
66 67
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
	llgfr	%r4,%r4			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
68 69
	jg	sys32_lchown16		# branch to system call

H
Heiko Carstens 已提交
70
#sys32_getpid_wrapper				# void
L
Linus Torvalds 已提交
71

72
ENTRY(sys32_mount_wrapper)
L
Linus Torvalds 已提交
73 74 75 76 77 78 79
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# char *
	llgfr	%r5,%r5			# unsigned long
	llgtr	%r6,%r6			# void *
	jg	compat_sys_mount	# branch to system call

80
ENTRY(sys32_oldumount_wrapper)
L
Linus Torvalds 已提交
81 82 83
	llgtr	%r2,%r2			# char *
	jg	sys_oldumount		# branch to system call

84
ENTRY(sys32_setuid16_wrapper)
H
Heiko Carstens 已提交
85
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
86 87
	jg	sys32_setuid16		# branch to system call

H
Heiko Carstens 已提交
88
#sys32_getuid16_wrapper			# void
L
Linus Torvalds 已提交
89

90
ENTRY(sys32_ptrace_wrapper)
L
Linus Torvalds 已提交
91 92 93 94
	lgfr	%r2,%r2			# long
	lgfr	%r3,%r3			# long
	llgtr	%r4,%r4			# long
	llgfr	%r5,%r5			# long
R
Roland McGrath 已提交
95
	jg	compat_sys_ptrace	# branch to system call
L
Linus Torvalds 已提交
96

97
ENTRY(sys32_alarm_wrapper)
L
Linus Torvalds 已提交
98 99 100
	llgfr	%r2,%r2			# unsigned int
	jg	sys_alarm		# branch to system call

101
ENTRY(compat_sys_utime_wrapper)
L
Linus Torvalds 已提交
102 103 104 105
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct compat_utimbuf *
	jg	compat_sys_utime	# branch to system call

106
ENTRY(sys32_access_wrapper)
L
Linus Torvalds 已提交
107 108 109 110
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_access		# branch to system call

111
ENTRY(sys32_nice_wrapper)
L
Linus Torvalds 已提交
112 113 114
	lgfr	%r2,%r2			# int
	jg	sys_nice		# branch to system call

H
Heiko Carstens 已提交
115
#sys32_sync_wrapper			# void
L
Linus Torvalds 已提交
116

117
ENTRY(sys32_kill_wrapper)
L
Linus Torvalds 已提交
118 119 120 121
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_kill		# branch to system call

122
ENTRY(sys32_rename_wrapper)
L
Linus Torvalds 已提交
123 124 125 126
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_rename		# branch to system call

127
ENTRY(sys32_mkdir_wrapper)
L
Linus Torvalds 已提交
128 129 130 131
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_mkdir		# branch to system call

132
ENTRY(sys32_rmdir_wrapper)
L
Linus Torvalds 已提交
133 134 135
	llgtr	%r2,%r2			# const char *
	jg	sys_rmdir		# branch to system call

136
ENTRY(sys32_dup_wrapper)
L
Linus Torvalds 已提交
137 138 139
	llgfr	%r2,%r2			# unsigned int
	jg	sys_dup			# branch to system call

140
ENTRY(sys32_pipe_wrapper)
L
Linus Torvalds 已提交
141 142 143
	llgtr	%r2,%r2			# u32 *
	jg	sys_pipe		# branch to system call

144
ENTRY(compat_sys_times_wrapper)
L
Linus Torvalds 已提交
145 146 147
	llgtr	%r2,%r2			# struct compat_tms *
	jg	compat_sys_times	# branch to system call

148
ENTRY(sys32_brk_wrapper)
L
Linus Torvalds 已提交
149 150 151
	llgtr	%r2,%r2			# unsigned long
	jg	sys_brk			# branch to system call

152
ENTRY(sys32_setgid16_wrapper)
H
Heiko Carstens 已提交
153
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
154 155
	jg	sys32_setgid16		# branch to system call

H
Heiko Carstens 已提交
156
#sys32_getgid16_wrapper			# void
L
Linus Torvalds 已提交
157

158
ENTRY(sys32_signal_wrapper)
H
Heiko Carstens 已提交
159
	lgfr	%r2,%r2			# int
L
Linus Torvalds 已提交
160 161 162
	llgtr	%r3,%r3			# __sighandler_t
	jg	sys_signal

H
Heiko Carstens 已提交
163
#sys32_geteuid16_wrapper		# void
L
Linus Torvalds 已提交
164

H
Heiko Carstens 已提交
165
#sys32_getegid16_wrapper		# void
L
Linus Torvalds 已提交
166

167
ENTRY(sys32_acct_wrapper)
L
Linus Torvalds 已提交
168 169 170
	llgtr	%r2,%r2			# char *
	jg	sys_acct		# branch to system call

171
ENTRY(sys32_umount_wrapper)
L
Linus Torvalds 已提交
172 173 174 175
	llgtr	%r2,%r2			# char *
	lgfr	%r3,%r3			# int
	jg	sys_umount		# branch to system call

176
ENTRY(compat_sys_ioctl_wrapper)
L
Linus Torvalds 已提交
177 178 179 180 181
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	llgfr	%r4,%r4			# unsigned int
	jg	compat_sys_ioctl	# branch to system call

182
ENTRY(compat_sys_fcntl_wrapper)
L
Linus Torvalds 已提交
183
	llgfr	%r2,%r2			# unsigned int
H
Heiko Carstens 已提交
184
	llgfr	%r3,%r3			# unsigned int
L
Linus Torvalds 已提交
185 186 187
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_fcntl	# branch to system call

188
ENTRY(sys32_setpgid_wrapper)
L
Linus Torvalds 已提交
189 190 191 192
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# pid_t
	jg	sys_setpgid		# branch to system call

193
ENTRY(sys32_umask_wrapper)
L
Linus Torvalds 已提交
194 195 196
	lgfr	%r2,%r2			# int
	jg	sys_umask		# branch to system call

197
ENTRY(sys32_chroot_wrapper)
L
Linus Torvalds 已提交
198 199 200
	llgtr	%r2,%r2			# char *
	jg	sys_chroot		# branch to system call

201
ENTRY(sys32_ustat_wrapper)
H
Heiko Carstens 已提交
202
	llgfr	%r2,%r2			# dev_t
L
Linus Torvalds 已提交
203
	llgtr	%r3,%r3			# struct ustat *
C
Christoph Hellwig 已提交
204
	jg	compat_sys_ustat
L
Linus Torvalds 已提交
205

206
ENTRY(sys32_dup2_wrapper)
L
Linus Torvalds 已提交
207 208 209 210
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	jg	sys_dup2		# branch to system call

H
Heiko Carstens 已提交
211
#sys32_getppid_wrapper			# void
L
Linus Torvalds 已提交
212

H
Heiko Carstens 已提交
213
#sys32_getpgrp_wrapper			# void
L
Linus Torvalds 已提交
214

H
Heiko Carstens 已提交
215
#sys32_setsid_wrapper			# void
L
Linus Torvalds 已提交
216

217
ENTRY(sys32_setreuid16_wrapper)
H
Heiko Carstens 已提交
218 219
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
220 221
	jg	sys32_setreuid16	# branch to system call

222
ENTRY(sys32_setregid16_wrapper)
H
Heiko Carstens 已提交
223 224
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
	llgfr	%r3,%r3			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
225 226
	jg	sys32_setregid16	# branch to system call

227
ENTRY(sys_sigsuspend_wrapper)
228 229 230 231
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgfr	%r4,%r4			# old_sigset_t
	jg	sys_sigsuspend
L
Linus Torvalds 已提交
232

233
ENTRY(compat_sys_sigpending_wrapper)
L
Linus Torvalds 已提交
234 235 236
	llgtr	%r2,%r2			# compat_old_sigset_t *
	jg	compat_sys_sigpending	# branch to system call

237
ENTRY(sys32_sethostname_wrapper)
L
Linus Torvalds 已提交
238 239 240 241
	llgtr	%r2,%r2			# char *
	lgfr	%r3,%r3			# int
	jg	sys_sethostname		# branch to system call

242
ENTRY(compat_sys_setrlimit_wrapper)
L
Linus Torvalds 已提交
243 244 245 246
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct rlimit_emu31 *
	jg	compat_sys_setrlimit	# branch to system call

247
ENTRY(compat_sys_old_getrlimit_wrapper)
L
Linus Torvalds 已提交
248 249 250 251
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct rlimit_emu31 *
	jg	compat_sys_old_getrlimit # branch to system call

252
ENTRY(compat_sys_getrlimit_wrapper)
L
Linus Torvalds 已提交
253 254 255 256
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct rlimit_emu31 *
	jg	compat_sys_getrlimit	# branch to system call

257
ENTRY(sys32_mmap2_wrapper)
L
Linus Torvalds 已提交
258 259 260
	llgtr	%r2,%r2			# struct mmap_arg_struct_emu31 *
	jg	sys32_mmap2			# branch to system call

261
ENTRY(compat_sys_gettimeofday_wrapper)
L
Linus Torvalds 已提交
262 263
	llgtr	%r2,%r2			# struct timeval_emu31 *
	llgtr	%r3,%r3			# struct timezone *
264
	jg	compat_sys_gettimeofday	# branch to system call
L
Linus Torvalds 已提交
265

266
ENTRY(compat_sys_settimeofday_wrapper)
L
Linus Torvalds 已提交
267 268
	llgtr	%r2,%r2			# struct timeval_emu31 *
	llgtr	%r3,%r3			# struct timezone *
269
	jg	compat_sys_settimeofday	# branch to system call
L
Linus Torvalds 已提交
270

271
ENTRY(sys32_getgroups16_wrapper)
L
Linus Torvalds 已提交
272 273 274 275
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# __kernel_old_gid_emu31_t *
	jg	sys32_getgroups16	# branch to system call

276
ENTRY(sys32_setgroups16_wrapper)
L
Linus Torvalds 已提交
277 278 279 280
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# __kernel_old_gid_emu31_t *
	jg	sys32_setgroups16	# branch to system call

281
ENTRY(sys32_symlink_wrapper)
L
Linus Torvalds 已提交
282 283 284 285
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_symlink		# branch to system call

286
ENTRY(sys32_readlink_wrapper)
L
Linus Torvalds 已提交
287 288 289 290 291
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# char *
	lgfr	%r4,%r4			# int
	jg	sys_readlink		# branch to system call

292
ENTRY(sys32_uselib_wrapper)
L
Linus Torvalds 已提交
293 294 295
	llgtr	%r2,%r2			# const char *
	jg	sys_uselib		# branch to system call

296
ENTRY(sys32_swapon_wrapper)
L
Linus Torvalds 已提交
297 298 299 300
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_swapon		# branch to system call

301
ENTRY(sys32_reboot_wrapper)
L
Linus Torvalds 已提交
302 303 304 305 306 307
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgfr	%r4,%r4			# unsigned int
	llgtr	%r5,%r5			# void *
	jg	sys_reboot		# branch to system call

308
ENTRY(old32_readdir_wrapper)
L
Linus Torvalds 已提交
309 310 311 312 313
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# void *
	llgfr	%r4,%r4			# unsigned int
	jg	compat_sys_old_readdir	# branch to system call

314
ENTRY(old32_mmap_wrapper)
L
Linus Torvalds 已提交
315 316 317
	llgtr	%r2,%r2			# struct mmap_arg_struct_emu31 *
	jg	old32_mmap		# branch to system call

318
ENTRY(sys32_munmap_wrapper)
L
Linus Torvalds 已提交
319
	llgfr	%r2,%r2			# unsigned long
H
Heiko Carstens 已提交
320
	llgfr	%r3,%r3			# size_t
L
Linus Torvalds 已提交
321 322
	jg	sys_munmap		# branch to system call

323
ENTRY(sys32_fchmod_wrapper)
L
Linus Torvalds 已提交
324 325 326 327
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# mode_t
	jg	sys_fchmod		# branch to system call

328
ENTRY(sys32_fchown16_wrapper)
L
Linus Torvalds 已提交
329 330 331 332 333
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# compat_uid_t
	llgfr	%r4,%r4			# compat_uid_t
	jg	sys32_fchown16		# branch to system call

334
ENTRY(sys32_getpriority_wrapper)
L
Linus Torvalds 已提交
335 336 337 338
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_getpriority		# branch to system call

339
ENTRY(sys32_setpriority_wrapper)
L
Linus Torvalds 已提交
340 341 342 343 344
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	jg	sys_setpriority		# branch to system call

345
ENTRY(compat_sys_statfs_wrapper)
L
Linus Torvalds 已提交
346 347 348 349
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct compat_statfs *
	jg	compat_sys_statfs	# branch to system call

350
ENTRY(compat_sys_fstatfs_wrapper)
L
Linus Torvalds 已提交
351 352 353 354
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct compat_statfs *
	jg	compat_sys_fstatfs	# branch to system call

355
ENTRY(compat_sys_socketcall_wrapper)
L
Linus Torvalds 已提交
356 357 358 359
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# u32 *
	jg	compat_sys_socketcall	# branch to system call

360
ENTRY(sys32_syslog_wrapper)
L
Linus Torvalds 已提交
361 362 363 364 365
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	lgfr	%r4,%r4			# int
	jg	sys_syslog		# branch to system call

366
ENTRY(compat_sys_newstat_wrapper)
L
Linus Torvalds 已提交
367 368 369 370
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat_emu31 *
	jg	compat_sys_newstat	# branch to system call

371
ENTRY(compat_sys_newlstat_wrapper)
L
Linus Torvalds 已提交
372 373 374 375
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat_emu31 *
	jg	compat_sys_newlstat	# branch to system call

376
ENTRY(compat_sys_newfstat_wrapper)
L
Linus Torvalds 已提交
377 378 379 380
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct stat_emu31 *
	jg	compat_sys_newfstat	# branch to system call

H
Heiko Carstens 已提交
381
#sys32_vhangup_wrapper			# void
L
Linus Torvalds 已提交
382

383
ENTRY(sys32_swapoff_wrapper)
L
Linus Torvalds 已提交
384 385 386
	llgtr	%r2,%r2			# const char *
	jg	sys_swapoff		# branch to system call

387
ENTRY(compat_sys_sysinfo_wrapper)
L
Linus Torvalds 已提交
388
	llgtr	%r2,%r2			# struct sysinfo_emu31 *
389
	jg	compat_sys_sysinfo	# branch to system call
L
Linus Torvalds 已提交
390

391
ENTRY(sys32_fsync_wrapper)
L
Linus Torvalds 已提交
392 393 394
	llgfr	%r2,%r2			# unsigned int
	jg	sys_fsync		# branch to system call

H
Heiko Carstens 已提交
395
#sys32_sigreturn_wrapper		# done in sigreturn_glue
L
Linus Torvalds 已提交
396

H
Heiko Carstens 已提交
397
#sys32_clone_wrapper			# done in clone_glue
L
Linus Torvalds 已提交
398

399
ENTRY(sys32_setdomainname_wrapper)
L
Linus Torvalds 已提交
400 401 402 403
	llgtr	%r2,%r2			# char *
	lgfr	%r3,%r3			# int
	jg	sys_setdomainname	# branch to system call

404
ENTRY(sys32_newuname_wrapper)
L
Linus Torvalds 已提交
405
	llgtr	%r2,%r2			# struct new_utsname *
406
	jg	sys_newuname		# branch to system call
L
Linus Torvalds 已提交
407

408
ENTRY(compat_sys_adjtimex_wrapper)
409 410
	llgtr	%r2,%r2			# struct compat_timex *
	jg	compat_sys_adjtimex	# branch to system call
L
Linus Torvalds 已提交
411

412
ENTRY(sys32_mprotect_wrapper)
L
Linus Torvalds 已提交
413 414 415 416 417
	llgtr	%r2,%r2			# unsigned long (actually pointer
	llgfr	%r3,%r3			# size_t
	llgfr	%r4,%r4			# unsigned long
	jg	sys_mprotect		# branch to system call

418
ENTRY(sys_init_module_wrapper)
L
Linus Torvalds 已提交
419 420 421
	llgtr	%r2,%r2			# void *
	llgfr	%r3,%r3			# unsigned long
	llgtr	%r4,%r4			# char *
422
	jg	sys_init_module		# branch to system call
L
Linus Torvalds 已提交
423

424
ENTRY(sys_delete_module_wrapper)
L
Linus Torvalds 已提交
425 426
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# unsigned int
427
	jg	sys_delete_module	# branch to system call
L
Linus Torvalds 已提交
428

429
ENTRY(sys32_quotactl_wrapper)
L
Linus Torvalds 已提交
430 431 432 433 434 435
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# qid_t
	llgtr	%r5,%r5			# caddr_t
	jg	sys_quotactl		# branch to system call

436
ENTRY(sys32_getpgid_wrapper)
L
Linus Torvalds 已提交
437 438 439
	lgfr	%r2,%r2			# pid_t
	jg	sys_getpgid		# branch to system call

440
ENTRY(sys32_fchdir_wrapper)
L
Linus Torvalds 已提交
441 442 443
	llgfr	%r2,%r2			# unsigned int
	jg	sys_fchdir		# branch to system call

444
ENTRY(sys32_bdflush_wrapper)
L
Linus Torvalds 已提交
445 446 447 448
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# long
	jg	sys_bdflush		# branch to system call

449
ENTRY(sys32_sysfs_wrapper)
L
Linus Torvalds 已提交
450 451 452 453 454
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	jg	sys_sysfs		# branch to system call

455
ENTRY(sys32_personality_wrapper)
456
	llgfr	%r2,%r2			# unsigned int
457
	jg	sys_s390_personality	# branch to system call
L
Linus Torvalds 已提交
458

459
ENTRY(sys32_setfsuid16_wrapper)
H
Heiko Carstens 已提交
460
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
461 462
	jg	sys32_setfsuid16	# branch to system call

463
ENTRY(sys32_setfsgid16_wrapper)
H
Heiko Carstens 已提交
464
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
465 466
	jg	sys32_setfsgid16	# branch to system call

467
ENTRY(sys32_llseek_wrapper)
L
Linus Torvalds 已提交
468 469 470 471 472 473 474
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	llgtr	%r5,%r5			# loff_t *
	llgfr	%r6,%r6			# unsigned int
	jg	sys_llseek		# branch to system call

475
ENTRY(sys32_getdents_wrapper)
L
Linus Torvalds 已提交
476 477 478 479 480
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# void *
	llgfr	%r4,%r4			# unsigned int
	jg	compat_sys_getdents	# branch to system call

481
ENTRY(compat_sys_select_wrapper)
L
Linus Torvalds 已提交
482 483 484 485 486 487 488
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# compat_fd_set *
	llgtr	%r4,%r4			# compat_fd_set *
	llgtr	%r5,%r5			# compat_fd_set *
	llgtr	%r6,%r6			# struct compat_timeval *
	jg	compat_sys_select	# branch to system call

489
ENTRY(sys32_flock_wrapper)
L
Linus Torvalds 已提交
490 491 492 493
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	jg	sys_flock		# branch to system call

494
ENTRY(sys32_msync_wrapper)
L
Linus Torvalds 已提交
495 496 497 498 499
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	lgfr	%r4,%r4			# int
	jg	sys_msync		# branch to system call

500
ENTRY(compat_sys_readv_wrapper)
L
Linus Torvalds 已提交
501 502 503 504 505
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const struct compat_iovec *
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_readv	# branch to system call

506
ENTRY(compat_sys_writev_wrapper)
L
Linus Torvalds 已提交
507 508 509 510 511
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const struct compat_iovec *
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_writev	# branch to system call

512
ENTRY(sys32_getsid_wrapper)
L
Linus Torvalds 已提交
513 514 515
	lgfr	%r2,%r2			# pid_t
	jg	sys_getsid		# branch to system call

516
ENTRY(sys32_fdatasync_wrapper)
L
Linus Torvalds 已提交
517 518 519
	llgfr	%r2,%r2			# unsigned int
	jg	sys_fdatasync		# branch to system call

520
ENTRY(sys32_mlock_wrapper)
L
Linus Torvalds 已提交
521 522 523 524
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	jg	sys_mlock		# branch to system call

525
ENTRY(sys32_munlock_wrapper)
L
Linus Torvalds 已提交
526 527 528 529
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	jg	sys_munlock		# branch to system call

530
ENTRY(sys32_mlockall_wrapper)
L
Linus Torvalds 已提交
531 532 533
	lgfr	%r2,%r2			# int
	jg	sys_mlockall		# branch to system call

H
Heiko Carstens 已提交
534
#sys32_munlockall_wrapper		# void
L
Linus Torvalds 已提交
535

536
ENTRY(sys32_sched_setparam_wrapper)
L
Linus Torvalds 已提交
537 538 539 540
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# struct sched_param *
	jg	sys_sched_setparam	# branch to system call

541
ENTRY(sys32_sched_getparam_wrapper)
L
Linus Torvalds 已提交
542 543 544 545
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# struct sched_param *
	jg	sys_sched_getparam	# branch to system call

546
ENTRY(sys32_sched_setscheduler_wrapper)
L
Linus Torvalds 已提交
547 548 549 550 551
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# struct sched_param *
	jg	sys_sched_setscheduler	# branch to system call

552
ENTRY(sys32_sched_getscheduler_wrapper)
L
Linus Torvalds 已提交
553 554 555
	lgfr	%r2,%r2			# pid_t
	jg	sys_sched_getscheduler	# branch to system call

H
Heiko Carstens 已提交
556
#sys32_sched_yield_wrapper		# void
L
Linus Torvalds 已提交
557

558
ENTRY(sys32_sched_get_priority_max_wrapper)
L
Linus Torvalds 已提交
559 560 561
	lgfr	%r2,%r2			# int
	jg	sys_sched_get_priority_max	# branch to system call

562
ENTRY(sys32_sched_get_priority_min_wrapper)
L
Linus Torvalds 已提交
563 564 565
	lgfr	%r2,%r2			# int
	jg	sys_sched_get_priority_min	# branch to system call

566
ENTRY(compat_sys_nanosleep_wrapper)
L
Linus Torvalds 已提交
567 568 569 570
	llgtr	%r2,%r2			# struct compat_timespec *
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_nanosleep		# branch to system call

571
ENTRY(sys32_mremap_wrapper)
L
Linus Torvalds 已提交
572 573 574 575 576 577 578
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	llgfr	%r5,%r5			# unsigned long
	llgfr	%r6,%r6			# unsigned long
	jg	sys_mremap		# branch to system call

579
ENTRY(sys32_setresuid16_wrapper)
H
Heiko Carstens 已提交
580 581 582
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
	llgfr	%r4,%r4			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
583 584
	jg	sys32_setresuid16	# branch to system call

585
ENTRY(sys32_getresuid16_wrapper)
L
Linus Torvalds 已提交
586 587 588 589 590
	llgtr	%r2,%r2			# __kernel_old_uid_emu31_t *
	llgtr	%r3,%r3			# __kernel_old_uid_emu31_t *
	llgtr	%r4,%r4			# __kernel_old_uid_emu31_t *
	jg	sys32_getresuid16	# branch to system call

591
ENTRY(sys32_poll_wrapper)
H
Heiko Carstens 已提交
592 593
	llgtr	%r2,%r2			# struct pollfd *
	llgfr	%r3,%r3			# unsigned int
594
	lgfr	%r4,%r4			# int
L
Linus Torvalds 已提交
595 596
	jg	sys_poll		# branch to system call

597
ENTRY(sys32_setresgid16_wrapper)
H
Heiko Carstens 已提交
598 599 600
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
	llgfr	%r3,%r3			# __kernel_old_gid_emu31_t
	llgfr	%r4,%r4			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
601 602
	jg	sys32_setresgid16	# branch to system call

603
ENTRY(sys32_getresgid16_wrapper)
L
Linus Torvalds 已提交
604 605 606 607 608
	llgtr	%r2,%r2			# __kernel_old_gid_emu31_t *
	llgtr	%r3,%r3			# __kernel_old_gid_emu31_t *
	llgtr	%r4,%r4			# __kernel_old_gid_emu31_t *
	jg	sys32_getresgid16	# branch to system call

609
ENTRY(sys32_prctl_wrapper)
L
Linus Torvalds 已提交
610 611 612 613 614 615 616
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	llgfr	%r5,%r5			# unsigned long
	llgfr	%r6,%r6			# unsigned long
	jg	sys_prctl		# branch to system call

H
Heiko Carstens 已提交
617
#sys32_rt_sigreturn_wrapper		# done in rt_sigreturn_glue
L
Linus Torvalds 已提交
618

619
ENTRY(sys32_pread64_wrapper)
L
Linus Torvalds 已提交
620 621 622 623 624 625 626
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	llgfr	%r5,%r5			# u32
	llgfr	%r6,%r6			# u32
	jg	sys32_pread64		# branch to system call

627
ENTRY(sys32_pwrite64_wrapper)
L
Linus Torvalds 已提交
628 629 630 631 632 633 634
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# size_t
	llgfr	%r5,%r5			# u32
	llgfr	%r6,%r6			# u32
	jg	sys32_pwrite64		# branch to system call

635
ENTRY(sys32_chown16_wrapper)
L
Linus Torvalds 已提交
636
	llgtr	%r2,%r2			# const char *
H
Heiko Carstens 已提交
637 638
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
	llgfr	%r4,%r4			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
639 640
	jg	sys32_chown16		# branch to system call

641
ENTRY(sys32_getcwd_wrapper)
L
Linus Torvalds 已提交
642 643 644 645
	llgtr	%r2,%r2			# char *
	llgfr	%r3,%r3			# unsigned long
	jg	sys_getcwd		# branch to system call

646
ENTRY(sys32_capget_wrapper)
L
Linus Torvalds 已提交
647 648 649 650
	llgtr	%r2,%r2			# cap_user_header_t
	llgtr	%r3,%r3			# cap_user_data_t
	jg	sys_capget		# branch to system call

651
ENTRY(sys32_capset_wrapper)
L
Linus Torvalds 已提交
652 653 654 655
	llgtr	%r2,%r2			# cap_user_header_t
	llgtr	%r3,%r3			# const cap_user_data_t
	jg	sys_capset		# branch to system call

H
Heiko Carstens 已提交
656
#sys32_vfork_wrapper			# done in vfork_glue
L
Linus Torvalds 已提交
657

658
ENTRY(sys32_truncate64_wrapper)
L
Linus Torvalds 已提交
659 660 661 662 663
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	jg	sys32_truncate64	# branch to system call

664
ENTRY(sys32_ftruncate64_wrapper)
L
Linus Torvalds 已提交
665 666 667 668 669
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	jg	sys32_ftruncate64	# branch to system call

670
ENTRY(sys32_lchown_wrapper)
L
Linus Torvalds 已提交
671 672 673 674 675
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_lchown		# branch to system call

H
Heiko Carstens 已提交
676 677 678 679
#sys32_getuid_wrapper			# void
#sys32_getgid_wrapper			# void
#sys32_geteuid_wrapper			# void
#sys32_getegid_wrapper			# void
L
Linus Torvalds 已提交
680

681
ENTRY(sys32_setreuid_wrapper)
L
Linus Torvalds 已提交
682 683 684 685
	llgfr	%r2,%r2			# uid_t
	llgfr	%r3,%r3			# uid_t
	jg	sys_setreuid		# branch to system call

686
ENTRY(sys32_setregid_wrapper)
L
Linus Torvalds 已提交
687 688 689 690
	llgfr	%r2,%r2			# gid_t
	llgfr	%r3,%r3			# gid_t
	jg	sys_setregid		# branch to system call

691
ENTRY(sys32_getgroups_wrapper)
L
Linus Torvalds 已提交
692 693 694 695
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# gid_t *
	jg	sys_getgroups		# branch to system call

696
ENTRY(sys32_setgroups_wrapper)
L
Linus Torvalds 已提交
697 698 699 700
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# gid_t *
	jg	sys_setgroups		# branch to system call

701
ENTRY(sys32_fchown_wrapper)
L
Linus Torvalds 已提交
702 703 704 705 706
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_fchown		# branch to system call

707
ENTRY(sys32_setresuid_wrapper)
L
Linus Torvalds 已提交
708 709 710 711 712
	llgfr	%r2,%r2			# uid_t
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# uid_t
	jg	sys_setresuid		# branch to system call

713
ENTRY(sys32_getresuid_wrapper)
L
Linus Torvalds 已提交
714 715 716 717 718
	llgtr	%r2,%r2			# uid_t *
	llgtr	%r3,%r3			# uid_t *
	llgtr	%r4,%r4			# uid_t *
	jg	sys_getresuid		# branch to system call

719
ENTRY(sys32_setresgid_wrapper)
L
Linus Torvalds 已提交
720 721 722 723 724
	llgfr	%r2,%r2			# gid_t
	llgfr	%r3,%r3			# gid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_setresgid		# branch to system call

725
ENTRY(sys32_getresgid_wrapper)
L
Linus Torvalds 已提交
726 727 728 729 730
	llgtr	%r2,%r2			# gid_t *
	llgtr	%r3,%r3			# gid_t *
	llgtr	%r4,%r4			# gid_t *
	jg	sys_getresgid		# branch to system call

731
ENTRY(sys32_chown_wrapper)
L
Linus Torvalds 已提交
732 733 734 735 736
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_chown		# branch to system call

737
ENTRY(sys32_setuid_wrapper)
L
Linus Torvalds 已提交
738 739 740
	llgfr	%r2,%r2			# uid_t
	jg	sys_setuid		# branch to system call

741
ENTRY(sys32_setgid_wrapper)
L
Linus Torvalds 已提交
742 743 744
	llgfr	%r2,%r2			# gid_t
	jg	sys_setgid		# branch to system call

745
ENTRY(sys32_setfsuid_wrapper)
L
Linus Torvalds 已提交
746 747 748
	llgfr	%r2,%r2			# uid_t
	jg	sys_setfsuid		# branch to system call

749
ENTRY(sys32_setfsgid_wrapper)
L
Linus Torvalds 已提交
750 751 752
	llgfr	%r2,%r2			# gid_t
	jg	sys_setfsgid		# branch to system call

753
ENTRY(sys32_pivot_root_wrapper)
L
Linus Torvalds 已提交
754 755 756 757
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_pivot_root		# branch to system call

758
ENTRY(sys32_mincore_wrapper)
L
Linus Torvalds 已提交
759 760 761 762 763
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	llgtr	%r4,%r4			# unsigned char *
	jg	sys_mincore		# branch to system call

764
ENTRY(sys32_madvise_wrapper)
L
Linus Torvalds 已提交
765 766 767 768 769
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	lgfr	%r4,%r4			# int
	jg	sys_madvise		# branch to system call

770
ENTRY(sys32_getdents64_wrapper)
L
Linus Torvalds 已提交
771 772 773 774 775
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# void *
	llgfr	%r4,%r4			# unsigned int
	jg	sys_getdents64		# branch to system call

776
ENTRY(compat_sys_fcntl64_wrapper)
L
Linus Torvalds 已提交
777
	llgfr	%r2,%r2			# unsigned int
H
Heiko Carstens 已提交
778
	llgfr	%r3,%r3			# unsigned int
L
Linus Torvalds 已提交
779 780 781
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_fcntl64	# branch to system call

782
ENTRY(sys32_stat64_wrapper)
L
Linus Torvalds 已提交
783 784 785 786
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat64 *
	jg	sys32_stat64		# branch to system call

787
ENTRY(sys32_lstat64_wrapper)
L
Linus Torvalds 已提交
788 789 790 791
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat64 *
	jg	sys32_lstat64		# branch to system call

792
ENTRY(sys32_stime_wrapper)
L
Linus Torvalds 已提交
793 794 795
	llgtr	%r2,%r2			# long *
	jg	compat_sys_stime	# branch to system call

796
ENTRY(sys32_sysctl_wrapper)
797 798
	llgtr	%r2,%r2 		# struct compat_sysctl_args *
	jg	compat_sys_sysctl
L
Linus Torvalds 已提交
799

800
ENTRY(sys32_fstat64_wrapper)
L
Linus Torvalds 已提交
801 802 803 804
	llgfr	%r2,%r2			# unsigned long
	llgtr	%r3,%r3			# struct stat64 *
	jg	sys32_fstat64		# branch to system call

805
ENTRY(sys32_setxattr_wrapper)
L
Linus Torvalds 已提交
806 807 808 809 810 811 812
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	lgfr	%r6,%r6			# int
	jg	sys_setxattr

813
ENTRY(sys32_lsetxattr_wrapper)
L
Linus Torvalds 已提交
814 815 816 817 818 819 820
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	lgfr	%r6,%r6			# int
	jg	sys_lsetxattr

821
ENTRY(sys32_fsetxattr_wrapper)
L
Linus Torvalds 已提交
822 823 824 825 826 827 828
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	lgfr	%r6,%r6			# int
	jg	sys_fsetxattr

829
ENTRY(sys32_getxattr_wrapper)
L
Linus Torvalds 已提交
830 831 832 833 834 835
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	jg	sys_getxattr

836
ENTRY(sys32_lgetxattr_wrapper)
L
Linus Torvalds 已提交
837 838 839 840 841 842
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	jg	sys_lgetxattr

843
ENTRY(sys32_fgetxattr_wrapper)
L
Linus Torvalds 已提交
844 845 846 847 848 849
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	jg	sys_fgetxattr

850
ENTRY(sys32_listxattr_wrapper)
L
Linus Torvalds 已提交
851 852 853 854 855
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	jg	sys_listxattr

856
ENTRY(sys32_llistxattr_wrapper)
L
Linus Torvalds 已提交
857 858 859 860 861
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	jg	sys_llistxattr

862
ENTRY(sys32_flistxattr_wrapper)
L
Linus Torvalds 已提交
863 864 865 866 867
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	jg	sys_flistxattr

868
ENTRY(sys32_removexattr_wrapper)
L
Linus Torvalds 已提交
869 870 871 872
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	jg	sys_removexattr

873
ENTRY(sys32_lremovexattr_wrapper)
L
Linus Torvalds 已提交
874 875 876 877
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	jg	sys_lremovexattr

878
ENTRY(sys32_fremovexattr_wrapper)
L
Linus Torvalds 已提交
879 880 881 882
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	jg	sys_fremovexattr

883
ENTRY(sys32_sched_setaffinity_wrapper)
L
Linus Torvalds 已提交
884 885 886 887 888
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned int
	llgtr	%r4,%r4			# unsigned long *
	jg	compat_sys_sched_setaffinity

889
ENTRY(sys32_sched_getaffinity_wrapper)
L
Linus Torvalds 已提交
890 891 892 893 894
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned int
	llgtr	%r4,%r4			# unsigned long *
	jg	compat_sys_sched_getaffinity

895
ENTRY(sys32_exit_group_wrapper)
L
Linus Torvalds 已提交
896 897 898
	lgfr	%r2,%r2			# int
	jg	sys_exit_group		# branch to system call

899
ENTRY(sys32_set_tid_address_wrapper)
L
Linus Torvalds 已提交
900 901 902
	llgtr	%r2,%r2			# int *
	jg	sys_set_tid_address	# branch to system call

903
ENTRY(sys_epoll_create_wrapper)
L
Linus Torvalds 已提交
904 905 906
	lgfr	%r2,%r2			# int
	jg	sys_epoll_create	# branch to system call

907
ENTRY(sys_epoll_ctl_wrapper)
L
Linus Torvalds 已提交
908 909 910 911 912 913
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# struct epoll_event *
	jg	sys_epoll_ctl		# branch to system call

914
ENTRY(sys_epoll_wait_wrapper)
L
Linus Torvalds 已提交
915 916 917 918 919 920
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct epoll_event *
	lgfr	%r4,%r4			# int
	lgfr	%r5,%r5			# int
	jg	sys_epoll_wait		# branch to system call

921
ENTRY(sys32_fadvise64_wrapper)
L
Linus Torvalds 已提交
922 923 924 925 926
	lgfr	%r2,%r2			# int
	sllg	%r3,%r3,32		# get high word of 64bit loff_t
	or	%r3,%r4			# get low word of 64bit loff_t
	llgfr	%r4,%r5			# size_t (unsigned long)
	lgfr	%r5,%r6			# int
927
	jg	sys32_fadvise64
L
Linus Torvalds 已提交
928

929
ENTRY(sys32_fadvise64_64_wrapper)
L
Linus Torvalds 已提交
930
	llgtr	%r2,%r2			# struct fadvise64_64_args *
931
	jg	sys32_fadvise64_64
L
Linus Torvalds 已提交
932

933
ENTRY(sys32_clock_settime_wrapper)
L
Linus Torvalds 已提交
934 935 936 937
	lgfr	%r2,%r2			# clockid_t (int)
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_clock_settime

938
ENTRY(sys32_clock_gettime_wrapper)
L
Linus Torvalds 已提交
939 940 941 942
	lgfr	%r2,%r2			# clockid_t (int)
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_clock_gettime

943
ENTRY(sys32_clock_getres_wrapper)
L
Linus Torvalds 已提交
944 945 946 947
	lgfr	%r2,%r2			# clockid_t (int)
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_clock_getres

948
ENTRY(sys32_clock_nanosleep_wrapper)
L
Linus Torvalds 已提交
949 950 951 952 953 954
	lgfr	%r2,%r2			# clockid_t (int)
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# struct compat_timespec *
	llgtr	%r5,%r5			# struct compat_timespec *
	jg	compat_sys_clock_nanosleep

955
ENTRY(sys32_timer_create_wrapper)
L
Linus Torvalds 已提交
956 957 958
	lgfr	%r2,%r2			# timer_t (int)
	llgtr	%r3,%r3			# struct compat_sigevent *
	llgtr	%r4,%r4			# timer_t *
959
	jg	compat_sys_timer_create
L
Linus Torvalds 已提交
960

961
ENTRY(sys32_timer_settime_wrapper)
L
Linus Torvalds 已提交
962 963 964 965 966 967
	lgfr	%r2,%r2			# timer_t (int)
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# struct compat_itimerspec *
	llgtr	%r5,%r5			# struct compat_itimerspec *
	jg	compat_sys_timer_settime

968
ENTRY(sys32_timer_gettime_wrapper)
L
Linus Torvalds 已提交
969 970 971 972
	lgfr	%r2,%r2			# timer_t (int)
	llgtr	%r3,%r3			# struct compat_itimerspec *
	jg	compat_sys_timer_gettime

973
ENTRY(sys32_timer_getoverrun_wrapper)
L
Linus Torvalds 已提交
974 975 976
	lgfr	%r2,%r2			# timer_t (int)
	jg	sys_timer_getoverrun

977
ENTRY(sys32_timer_delete_wrapper)
L
Linus Torvalds 已提交
978 979 980
	lgfr	%r2,%r2			# timer_t (int)
	jg	sys_timer_delete

981
ENTRY(sys32_io_setup_wrapper)
L
Linus Torvalds 已提交
982 983 984 985
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# u32 *
	jg	compat_sys_io_setup

986
ENTRY(sys32_io_destroy_wrapper)
L
Linus Torvalds 已提交
987 988 989
	llgfr	%r2,%r2			# (aio_context_t) u32
	jg	sys_io_destroy

990
ENTRY(sys32_io_getevents_wrapper)
L
Linus Torvalds 已提交
991 992 993 994 995 996 997
	llgfr	%r2,%r2			# (aio_context_t) u32
	lgfr	%r3,%r3			# long
	lgfr	%r4,%r4			# long
	llgtr	%r5,%r5			# struct io_event *
	llgtr	%r6,%r6			# struct compat_timespec *
	jg	compat_sys_io_getevents

998
ENTRY(sys32_io_submit_wrapper)
L
Linus Torvalds 已提交
999 1000 1001 1002 1003
	llgfr	%r2,%r2			# (aio_context_t) u32
	lgfr	%r3,%r3			# long
	llgtr	%r4,%r4			# struct iocb **
	jg	compat_sys_io_submit

1004
ENTRY(sys32_io_cancel_wrapper)
L
Linus Torvalds 已提交
1005 1006 1007 1008 1009
	llgfr	%r2,%r2			# (aio_context_t) u32
	llgtr	%r3,%r3			# struct iocb *
	llgtr	%r4,%r4			# struct io_event *
	jg	sys_io_cancel

1010
ENTRY(compat_sys_statfs64_wrapper)
L
Linus Torvalds 已提交
1011 1012 1013 1014 1015
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# compat_size_t
	llgtr	%r4,%r4			# struct compat_statfs64 *
	jg	compat_sys_statfs64

1016
ENTRY(compat_sys_fstatfs64_wrapper)
L
Linus Torvalds 已提交
1017 1018 1019 1020 1021
	llgfr	%r2,%r2			# unsigned int fd
	llgfr	%r3,%r3			# compat_size_t
	llgtr	%r4,%r4			# struct compat_statfs64 *
	jg	compat_sys_fstatfs64

1022
ENTRY(compat_sys_mq_open_wrapper)
L
Linus Torvalds 已提交
1023 1024 1025 1026 1027 1028
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	llgfr	%r4,%r4			# mode_t
	llgtr	%r5,%r5			# struct compat_mq_attr *
	jg	compat_sys_mq_open

1029
ENTRY(sys32_mq_unlink_wrapper)
L
Linus Torvalds 已提交
1030 1031 1032
	llgtr	%r2,%r2			# const char *
	jg	sys_mq_unlink

1033
ENTRY(compat_sys_mq_timedsend_wrapper)
L
Linus Torvalds 已提交
1034 1035 1036 1037 1038 1039 1040
	lgfr	%r2,%r2			# mqd_t
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# size_t
	llgfr	%r5,%r5			# unsigned int
	llgtr	%r6,%r6			# const struct compat_timespec *
	jg	compat_sys_mq_timedsend

1041
ENTRY(compat_sys_mq_timedreceive_wrapper)
L
Linus Torvalds 已提交
1042 1043 1044 1045 1046 1047 1048
	lgfr	%r2,%r2			# mqd_t
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	llgtr	%r5,%r5			# unsigned int *
	llgtr	%r6,%r6			# const struct compat_timespec *
	jg	compat_sys_mq_timedreceive

1049
ENTRY(compat_sys_mq_notify_wrapper)
L
Linus Torvalds 已提交
1050 1051 1052 1053
	lgfr	%r2,%r2			# mqd_t
	llgtr	%r3,%r3			# struct compat_sigevent *
	jg	compat_sys_mq_notify

1054
ENTRY(compat_sys_mq_getsetattr_wrapper)
L
Linus Torvalds 已提交
1055 1056 1057 1058 1059
	lgfr	%r2,%r2			# mqd_t
	llgtr	%r3,%r3			# struct compat_mq_attr *
	llgtr	%r4,%r4			# struct compat_mq_attr *
	jg	compat_sys_mq_getsetattr

1060
ENTRY(compat_sys_add_key_wrapper)
L
Linus Torvalds 已提交
1061 1062 1063 1064 1065 1066 1067
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	llgtr	%r4,%r4			# const void *
	llgfr	%r5,%r5			# size_t
	llgfr	%r6,%r6			# (key_serial_t) u32
	jg	sys_add_key

1068
ENTRY(compat_sys_request_key_wrapper)
L
Linus Torvalds 已提交
1069 1070 1071 1072 1073 1074
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	llgtr	%r4,%r4			# const void *
	llgfr	%r5,%r5			# (key_serial_t) u32
	jg	sys_request_key

1075
ENTRY(sys32_remap_file_pages_wrapper)
L
Linus Torvalds 已提交
1076 1077 1078 1079 1080 1081 1082
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	llgfr	%r5,%r5			# unsigned long
	llgfr	%r6,%r6			# unsigned long
	jg	sys_remap_file_pages

1083
ENTRY(compat_sys_kexec_load_wrapper)
H
Heiko Carstens 已提交
1084 1085 1086 1087 1088
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# unsigned long
	llgtr	%r4,%r4			# struct kexec_segment *
	llgfr	%r5,%r5			# unsigned long
	jg	compat_sys_kexec_load
1089

1090
ENTRY(sys_ioprio_set_wrapper)
1091 1092 1093 1094 1095
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	jg	sys_ioprio_set

1096
ENTRY(sys_ioprio_get_wrapper)
1097 1098 1099 1100
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_ioprio_get

1101
ENTRY(sys_inotify_add_watch_wrapper)
1102 1103 1104 1105 1106
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# u32
	jg	sys_inotify_add_watch

1107
ENTRY(sys_inotify_rm_watch_wrapper)
1108 1109 1110
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# u32
	jg	sys_inotify_rm_watch
1111

1112
ENTRY(sys_mkdirat_wrapper)
1113 1114 1115 1116 1117
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	jg	sys_mkdirat

1118
ENTRY(sys_mknodat_wrapper)
1119 1120 1121 1122 1123 1124
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	llgfr	%r5,%r5			# unsigned int
	jg	sys_mknodat

1125
ENTRY(sys_fchownat_wrapper)
1126 1127 1128 1129 1130 1131 1132
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# uid_t
	llgfr	%r5,%r5			# gid_t
	lgfr	%r6,%r6			# int
	jg	sys_fchownat

1133
ENTRY(compat_sys_futimesat_wrapper)
1134
	llgfr	%r2,%r2			# unsigned int
1135 1136 1137 1138
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# struct timeval *
	jg	compat_sys_futimesat

1139
ENTRY(sys32_fstatat64_wrapper)
1140
	llgfr	%r2,%r2			# unsigned int
1141
	llgtr	%r3,%r3			# char *
H
Heiko Carstens 已提交
1142
	llgtr	%r4,%r4			# struct stat64 *
1143
	lgfr	%r5,%r5			# int
1144
	jg	sys32_fstatat64
1145

1146
ENTRY(sys_unlinkat_wrapper)
1147 1148 1149 1150 1151
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	jg	sys_unlinkat

1152
ENTRY(sys_renameat_wrapper)
1153 1154 1155 1156 1157 1158
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# const char *
	jg	sys_renameat

1159
ENTRY(sys_linkat_wrapper)
1160 1161 1162 1163
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# const char *
1164
	lgfr	%r6,%r6			# int
1165 1166
	jg	sys_linkat

1167
ENTRY(sys_symlinkat_wrapper)
1168 1169 1170 1171 1172
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# const char *
	jg	sys_symlinkat

1173
ENTRY(sys_readlinkat_wrapper)
1174 1175 1176 1177 1178 1179
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	llgtr	%r4,%r4			# char *
	lgfr	%r5,%r5			# int
	jg	sys_readlinkat

1180
ENTRY(sys_fchmodat_wrapper)
1181 1182 1183 1184 1185
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# mode_t
	jg	sys_fchmodat

1186
ENTRY(sys_faccessat_wrapper)
1187 1188 1189 1190 1191
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	jg	sys_faccessat

1192
ENTRY(compat_sys_pselect6_wrapper)
1193 1194 1195 1196 1197 1198 1199 1200 1201
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# fd_set *
	llgtr	%r4,%r4			# fd_set *
	llgtr	%r5,%r5			# fd_set *
	llgtr	%r6,%r6			# struct timespec *
	llgt	%r0,164(%r15)		# void *
	stg	%r0,160(%r15)
	jg	compat_sys_pselect6

1202
ENTRY(compat_sys_ppoll_wrapper)
1203 1204 1205 1206 1207 1208
	llgtr	%r2,%r2			# struct pollfd *
	llgfr	%r3,%r3			# unsigned int
	llgtr	%r4,%r4			# struct timespec *
	llgtr	%r5,%r5			# const sigset_t *
	llgfr	%r6,%r6			# size_t
	jg	compat_sys_ppoll
1209

1210
ENTRY(sys_unshare_wrapper)
1211 1212
	llgfr	%r2,%r2			# unsigned long
	jg	sys_unshare
1213

1214
ENTRY(sys_splice_wrapper)
1215 1216 1217 1218 1219 1220 1221 1222 1223
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# loff_t *
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# loff_t *
	llgfr	%r6,%r6			# size_t
	llgf	%r0,164(%r15)		# unsigned int
	stg	%r0,160(%r15)
	jg	sys_splice

1224
ENTRY(sys_sync_file_range_wrapper)
1225 1226 1227 1228 1229 1230 1231 1232
	lgfr	%r2,%r2			# int
	sllg	%r3,%r3,32		# get high word of 64bit loff_t
	or	%r3,%r4			# get low word of 64bit loff_t
	sllg	%r4,%r5,32		# get high word of 64bit loff_t
	or	%r4,%r6			# get low word of 64bit loff_t
	llgf	%r5,164(%r15)		# unsigned int
	jg	sys_sync_file_range

1233
ENTRY(sys_tee_wrapper)
1234 1235 1236 1237 1238
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgfr	%r4,%r4			# size_t
	llgfr	%r5,%r5			# unsigned int
	jg	sys_tee
1239

1240
ENTRY(sys_getcpu_wrapper)
1241 1242 1243
	llgtr	%r2,%r2			# unsigned *
	llgtr	%r3,%r3			# unsigned *
	llgtr	%r4,%r4			# struct getcpu_cache *
P
Paul Mundt 已提交
1244
	jg	sys_getcpu
1245

1246
ENTRY(compat_sys_utimes_wrapper)
H
Heiko Carstens 已提交
1247 1248 1249
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct compat_timeval *
	jg	compat_sys_utimes
H
Heiko Carstens 已提交
1250

1251
ENTRY(compat_sys_utimensat_wrapper)
H
Heiko Carstens 已提交
1252 1253 1254 1255 1256
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# struct compat_timespec *
	lgfr	%r5,%r5			# int
	jg	compat_sys_utimensat
1257

1258
ENTRY(sys_eventfd_wrapper)
1259 1260
	llgfr	%r2,%r2			# unsigned int
	jg	sys_eventfd
1261

1262
ENTRY(sys_fallocate_wrapper)
1263 1264 1265 1266 1267 1268 1269
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	sllg	%r4,%r4,32		# get high word of 64bit loff_t
	lr	%r4,%r5			# get low word of 64bit loff_t
	sllg	%r5,%r6,32		# get high word of 64bit loff_t
	l	%r5,164(%r15)		# get low word of 64bit loff_t
	jg	sys_fallocate
1270

1271
ENTRY(sys_timerfd_create_wrapper)
1272 1273 1274 1275
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_timerfd_create

1276
ENTRY(sys_eventfd2_wrapper)
H
Heiko Carstens 已提交
1277 1278 1279 1280
	llgfr	%r2,%r2			# unsigned int
	lgfr	%r3,%r3			# int
	jg	sys_eventfd2

1281
ENTRY(sys_inotify_init1_wrapper)
H
Heiko Carstens 已提交
1282 1283 1284
	lgfr	%r2,%r2			# int
	jg	sys_inotify_init1

1285
ENTRY(sys_pipe2_wrapper)
H
Heiko Carstens 已提交
1286 1287 1288 1289
	llgtr	%r2,%r2			# u32 *
	lgfr	%r3,%r3			# int
	jg	sys_pipe2		# branch to system call

1290
ENTRY(sys_dup3_wrapper)
H
Heiko Carstens 已提交
1291 1292 1293 1294 1295
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	lgfr	%r4,%r4			# int
	jg	sys_dup3		# branch to system call

1296
ENTRY(sys_epoll_create1_wrapper)
H
Heiko Carstens 已提交
1297 1298
	lgfr	%r2,%r2			# int
	jg	sys_epoll_create1	# branch to system call
1299

1300
ENTRY(sys32_readahead_wrapper)
1301 1302 1303 1304 1305 1306
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# u32
	llgfr	%r4,%r4			# u32
	lgfr	%r5,%r5			# s32
	jg	sys32_readahead		# branch to system call

1307
ENTRY(sys_tkill_wrapper)
1308 1309 1310 1311
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# int
	jg	sys_tkill		# branch to system call

1312
ENTRY(sys_tgkill_wrapper)
1313 1314 1315 1316 1317
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# pid_t
	lgfr	%r4,%r4			# int
	jg	sys_tgkill		# branch to system call

1318
ENTRY(compat_sys_keyctl_wrapper)
1319 1320 1321 1322 1323 1324
	llgfr	%r2,%r2			# u32
	llgfr	%r3,%r3			# u32
	llgfr	%r4,%r4			# u32
	llgfr	%r5,%r5			# u32
	llgfr	%r6,%r6			# u32
	jg	compat_sys_keyctl	# branch to system call
1325

1326
ENTRY(compat_sys_preadv_wrapper)
1327 1328 1329 1330 1331 1332 1333
	llgfr	%r2,%r2			# unsigned long
	llgtr	%r3,%r3			# compat_iovec *
	llgfr	%r4,%r4			# unsigned long
	llgfr	%r5,%r5			# u32
	llgfr	%r6,%r6			# u32
	jg	compat_sys_preadv	# branch to system call

1334
ENTRY(compat_sys_pwritev_wrapper)
1335 1336 1337 1338 1339 1340
	llgfr	%r2,%r2			# unsigned long
	llgtr	%r3,%r3			# compat_iovec *
	llgfr	%r4,%r4			# unsigned long
	llgfr	%r5,%r5			# u32
	llgfr	%r6,%r6			# u32
	jg	compat_sys_pwritev	# branch to system call
1341

1342
ENTRY(sys_perf_event_open_wrapper)
1343
	llgtr	%r2,%r2			# const struct perf_event_attr *
1344 1345 1346 1347
	lgfr	%r3,%r3			# pid_t
	lgfr	%r4,%r4			# int
	lgfr	%r5,%r5			# int
	llgfr	%r6,%r6			# unsigned long
1348
	jg	sys_perf_event_open	# branch to system call
1349

1350
ENTRY(sys_clone_wrapper)
1351 1352 1353 1354 1355
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# unsigned long
	llgtr	%r4,%r4			# int *
	llgtr	%r5,%r5			# int *
	jg	sys_clone		# branch to system call
1356

1357
ENTRY(sys32_execve_wrapper)
1358 1359 1360
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# compat_uptr_t *
	llgtr	%r4,%r4			# compat_uptr_t *
1361
	jg	compat_sys_execve	# branch to system call
1362

1363
ENTRY(sys_fanotify_init_wrapper)
1364 1365 1366 1367
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	jg	sys_fanotify_init	# branch to system call

1368
ENTRY(sys_fanotify_mark_wrapper)
1369 1370 1371 1372 1373 1374 1375 1376
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned int
	sllg	%r4,%r4,32		# get high word of 64bit mask
	lr	%r4,%r5			# get low word of 64bit mask
	llgfr	%r5,%r6			# unsigned int
	llgt	%r6,164(%r15)		# char *
	jg	sys_fanotify_mark	# branch to system call

1377
ENTRY(sys_prlimit64_wrapper)
1378 1379 1380 1381 1382
	lgfr	%r2,%r2			# pid_t
	llgfr	%r3,%r3			# unsigned int
	llgtr	%r4,%r4			# const struct rlimit64 __user *
	llgtr	%r5,%r5			# struct rlimit64 __user *
	jg	sys_prlimit64		# branch to system call
1383

1384
ENTRY(sys_name_to_handle_at_wrapper)
1385 1386 1387 1388 1389 1390
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char __user *
	llgtr	%r4,%r4			# struct file_handle __user *
	llgtr	%r5,%r5			# int __user *
	lgfr	%r6,%r6			# int
	jg	sys_name_to_handle_at
1391

1392
ENTRY(compat_sys_clock_adjtime_wrapper)
1393 1394 1395
	lgfr	%r2,%r2			# clockid_t (int)
	llgtr	%r3,%r3			# struct compat_timex __user *
	jg	compat_sys_clock_adjtime
H
Heiko Carstens 已提交
1396

1397
ENTRY(sys_syncfs_wrapper)
H
Heiko Carstens 已提交
1398 1399
	lgfr	%r2,%r2			# int
	jg	sys_syncfs
1400

1401
ENTRY(sys_setns_wrapper)
1402 1403 1404
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_setns
1405 1406 1407 1408 1409 1410 1411 1412 1413

ENTRY(compat_sys_process_vm_readv_wrapper)
	lgfr	%r2,%r2			# compat_pid_t
	llgtr	%r3,%r3			# struct compat_iovec __user *
	llgfr	%r4,%r4			# unsigned long
	llgtr	%r5,%r5			# struct compat_iovec __user *
	llgfr	%r6,%r6			# unsigned long
	llgf	%r0,164(%r15)		# unsigned long
	stg	%r0,160(%r15)
1414
	jg	compat_sys_process_vm_readv
1415 1416 1417 1418 1419 1420 1421 1422 1423

ENTRY(compat_sys_process_vm_writev_wrapper)
	lgfr	%r2,%r2			# compat_pid_t
	llgtr	%r3,%r3			# struct compat_iovec __user *
	llgfr	%r4,%r4			# unsigned long
	llgtr	%r5,%r5			# struct compat_iovec __user *
	llgfr	%r6,%r6			# unsigned long
	llgf	%r0,164(%r15)		# unsigned long
	stg	%r0,160(%r15)
1424
	jg	compat_sys_process_vm_writev
1425 1426 1427 1428 1429

ENTRY(sys_s390_runtime_instr_wrapper)
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_s390_runtime_instr
1430 1431 1432 1433 1434 1435 1436 1437

ENTRY(sys_kcmp_wrapper)
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# pid_t
	lgfr	%r4,%r4			# int
	llgfr	%r5,%r5			# unsigned long
	llgfr	%r6,%r6			# unsigned long
	jg	sys_kcmp
1438 1439 1440 1441 1442 1443

ENTRY(sys_finit_module_wrapper)
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char __user *
	lgfr	%r4,%r4			# int
	jg	sys_finit_module