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

H
Heiko Carstens 已提交
10
	.globl	sys32_exit_wrapper
L
Linus Torvalds 已提交
11 12 13
sys32_exit_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_exit		# branch to sys_exit
H
Heiko Carstens 已提交
14 15

	.globl	sys32_read_wrapper
L
Linus Torvalds 已提交
16 17 18 19 20 21
sys32_read_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	jg	sys32_read		# branch to sys_read

H
Heiko Carstens 已提交
22
	.globl	sys32_write_wrapper
L
Linus Torvalds 已提交
23 24 25 26 27 28
sys32_write_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# size_t
	jg	sys32_write		# branch to system call

H
Heiko Carstens 已提交
29
	.globl	sys32_open_wrapper
L
Linus Torvalds 已提交
30 31 32 33 34 35
sys32_open_wrapper:
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	jg	sys_open		# branch to system call

H
Heiko Carstens 已提交
36
	.globl	sys32_close_wrapper
L
Linus Torvalds 已提交
37 38 39 40
sys32_close_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_close		# branch to system call

H
Heiko Carstens 已提交
41
	.globl	sys32_creat_wrapper
L
Linus Torvalds 已提交
42 43 44 45 46
sys32_creat_wrapper:
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_creat		# branch to system call

H
Heiko Carstens 已提交
47
	.globl	sys32_link_wrapper
L
Linus Torvalds 已提交
48 49 50 51 52
sys32_link_wrapper:
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_link		# branch to system call

H
Heiko Carstens 已提交
53
	.globl	sys32_unlink_wrapper
L
Linus Torvalds 已提交
54 55 56 57
sys32_unlink_wrapper:
	llgtr	%r2,%r2			# const char *
	jg	sys_unlink		# branch to system call

H
Heiko Carstens 已提交
58
	.globl	sys32_chdir_wrapper
L
Linus Torvalds 已提交
59 60 61 62
sys32_chdir_wrapper:
	llgtr	%r2,%r2			# const char *
	jg	sys_chdir		# branch to system call

H
Heiko Carstens 已提交
63
	.globl	sys32_time_wrapper
L
Linus Torvalds 已提交
64 65 66 67
sys32_time_wrapper:
	llgtr	%r2,%r2			# int *
	jg	compat_sys_time		# branch to system call

H
Heiko Carstens 已提交
68
	.globl	sys32_mknod_wrapper
L
Linus Torvalds 已提交
69 70
sys32_mknod_wrapper:
	llgtr	%r2,%r2			# const char *
H
Heiko Carstens 已提交
71
	lgfr	%r3,%r3			# int
L
Linus Torvalds 已提交
72 73 74
	llgfr	%r4,%r4			# dev
	jg	sys_mknod		# branch to system call

H
Heiko Carstens 已提交
75
	.globl	sys32_chmod_wrapper
L
Linus Torvalds 已提交
76 77 78 79 80
sys32_chmod_wrapper:
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# mode_t
	jg	sys_chmod		# branch to system call

H
Heiko Carstens 已提交
81
	.globl	sys32_lchown16_wrapper
L
Linus Torvalds 已提交
82 83
sys32_lchown16_wrapper:
	llgtr	%r2,%r2			# const char *
H
Heiko Carstens 已提交
84 85
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
	llgfr	%r4,%r4			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
86 87
	jg	sys32_lchown16		# branch to system call

H
Heiko Carstens 已提交
88
	.globl	sys32_lseek_wrapper
L
Linus Torvalds 已提交
89 90 91 92 93 94
sys32_lseek_wrapper:
	llgfr	%r2,%r2			# unsigned int
	lgfr	%r3,%r3			# off_t
	llgfr	%r4,%r4			# unsigned int
	jg	sys_lseek		# branch to system call

H
Heiko Carstens 已提交
95
#sys32_getpid_wrapper				# void
L
Linus Torvalds 已提交
96

H
Heiko Carstens 已提交
97
	.globl	sys32_mount_wrapper
L
Linus Torvalds 已提交
98 99 100 101 102 103 104 105
sys32_mount_wrapper:
	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

H
Heiko Carstens 已提交
106
	.globl	sys32_oldumount_wrapper
L
Linus Torvalds 已提交
107 108 109 110
sys32_oldumount_wrapper:
	llgtr	%r2,%r2			# char *
	jg	sys_oldumount		# branch to system call

H
Heiko Carstens 已提交
111
	.globl	sys32_setuid16_wrapper
L
Linus Torvalds 已提交
112
sys32_setuid16_wrapper:
H
Heiko Carstens 已提交
113
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
114 115
	jg	sys32_setuid16		# branch to system call

H
Heiko Carstens 已提交
116
#sys32_getuid16_wrapper			# void
L
Linus Torvalds 已提交
117

H
Heiko Carstens 已提交
118
	.globl	sys32_ptrace_wrapper
L
Linus Torvalds 已提交
119 120 121 122 123
sys32_ptrace_wrapper:
	lgfr	%r2,%r2			# long
	lgfr	%r3,%r3			# long
	llgtr	%r4,%r4			# long
	llgfr	%r5,%r5			# long
R
Roland McGrath 已提交
124
	jg	compat_sys_ptrace	# branch to system call
L
Linus Torvalds 已提交
125

H
Heiko Carstens 已提交
126
	.globl	sys32_alarm_wrapper
L
Linus Torvalds 已提交
127 128 129 130
sys32_alarm_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_alarm		# branch to system call

H
Heiko Carstens 已提交
131
	.globl	compat_sys_utime_wrapper
L
Linus Torvalds 已提交
132 133 134 135 136
compat_sys_utime_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct compat_utimbuf *
	jg	compat_sys_utime	# branch to system call

H
Heiko Carstens 已提交
137
	.globl	sys32_access_wrapper
L
Linus Torvalds 已提交
138 139 140 141 142
sys32_access_wrapper:
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_access		# branch to system call

H
Heiko Carstens 已提交
143
	.globl	sys32_nice_wrapper
L
Linus Torvalds 已提交
144 145 146 147
sys32_nice_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_nice		# branch to system call

H
Heiko Carstens 已提交
148
#sys32_sync_wrapper			# void
L
Linus Torvalds 已提交
149

H
Heiko Carstens 已提交
150
	.globl	sys32_kill_wrapper
L
Linus Torvalds 已提交
151 152 153 154 155
sys32_kill_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_kill		# branch to system call

H
Heiko Carstens 已提交
156
	.globl	sys32_rename_wrapper
L
Linus Torvalds 已提交
157 158 159 160 161
sys32_rename_wrapper:
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_rename		# branch to system call

H
Heiko Carstens 已提交
162
	.globl	sys32_mkdir_wrapper
L
Linus Torvalds 已提交
163 164 165 166 167
sys32_mkdir_wrapper:
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_mkdir		# branch to system call

H
Heiko Carstens 已提交
168
	.globl	sys32_rmdir_wrapper
L
Linus Torvalds 已提交
169 170 171 172
sys32_rmdir_wrapper:
	llgtr	%r2,%r2			# const char *
	jg	sys_rmdir		# branch to system call

H
Heiko Carstens 已提交
173
	.globl	sys32_dup_wrapper
L
Linus Torvalds 已提交
174 175 176 177
sys32_dup_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_dup			# branch to system call

H
Heiko Carstens 已提交
178
	.globl	sys32_pipe_wrapper
L
Linus Torvalds 已提交
179 180 181 182
sys32_pipe_wrapper:
	llgtr	%r2,%r2			# u32 *
	jg	sys_pipe		# branch to system call

H
Heiko Carstens 已提交
183
	.globl	compat_sys_times_wrapper
L
Linus Torvalds 已提交
184 185 186 187
compat_sys_times_wrapper:
	llgtr	%r2,%r2			# struct compat_tms *
	jg	compat_sys_times	# branch to system call

H
Heiko Carstens 已提交
188
	.globl	sys32_brk_wrapper
L
Linus Torvalds 已提交
189 190 191 192
sys32_brk_wrapper:
	llgtr	%r2,%r2			# unsigned long
	jg	sys_brk			# branch to system call

H
Heiko Carstens 已提交
193
	.globl	sys32_setgid16_wrapper
L
Linus Torvalds 已提交
194
sys32_setgid16_wrapper:
H
Heiko Carstens 已提交
195
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
196 197
	jg	sys32_setgid16		# branch to system call

H
Heiko Carstens 已提交
198
#sys32_getgid16_wrapper			# void
L
Linus Torvalds 已提交
199 200 201

	.globl sys32_signal_wrapper
sys32_signal_wrapper:
H
Heiko Carstens 已提交
202
	lgfr	%r2,%r2			# int
L
Linus Torvalds 已提交
203 204 205
	llgtr	%r3,%r3			# __sighandler_t
	jg	sys_signal

H
Heiko Carstens 已提交
206
#sys32_geteuid16_wrapper		# void
L
Linus Torvalds 已提交
207

H
Heiko Carstens 已提交
208
#sys32_getegid16_wrapper		# void
L
Linus Torvalds 已提交
209

H
Heiko Carstens 已提交
210
	.globl	sys32_acct_wrapper
L
Linus Torvalds 已提交
211 212 213 214
sys32_acct_wrapper:
	llgtr	%r2,%r2			# char *
	jg	sys_acct		# branch to system call

H
Heiko Carstens 已提交
215
	.globl	sys32_umount_wrapper
L
Linus Torvalds 已提交
216 217 218 219 220
sys32_umount_wrapper:
	llgtr	%r2,%r2			# char *
	lgfr	%r3,%r3			# int
	jg	sys_umount		# branch to system call

H
Heiko Carstens 已提交
221
	.globl	compat_sys_ioctl_wrapper
L
Linus Torvalds 已提交
222 223 224 225 226 227
compat_sys_ioctl_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	llgfr	%r4,%r4			# unsigned int
	jg	compat_sys_ioctl	# branch to system call

H
Heiko Carstens 已提交
228
	.globl	compat_sys_fcntl_wrapper
L
Linus Torvalds 已提交
229 230
compat_sys_fcntl_wrapper:
	llgfr	%r2,%r2			# unsigned int
H
Heiko Carstens 已提交
231
	llgfr	%r3,%r3			# unsigned int
L
Linus Torvalds 已提交
232 233 234
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_fcntl	# branch to system call

H
Heiko Carstens 已提交
235
	.globl	sys32_setpgid_wrapper
L
Linus Torvalds 已提交
236 237 238 239 240
sys32_setpgid_wrapper:
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# pid_t
	jg	sys_setpgid		# branch to system call

H
Heiko Carstens 已提交
241
	.globl	sys32_umask_wrapper
L
Linus Torvalds 已提交
242 243 244 245
sys32_umask_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_umask		# branch to system call

H
Heiko Carstens 已提交
246
	.globl	sys32_chroot_wrapper
L
Linus Torvalds 已提交
247 248 249 250 251 252
sys32_chroot_wrapper:
	llgtr	%r2,%r2			# char *
	jg	sys_chroot		# branch to system call

	.globl sys32_ustat_wrapper
sys32_ustat_wrapper:
H
Heiko Carstens 已提交
253
	llgfr	%r2,%r2			# dev_t
L
Linus Torvalds 已提交
254
	llgtr	%r3,%r3			# struct ustat *
C
Christoph Hellwig 已提交
255
	jg	compat_sys_ustat
L
Linus Torvalds 已提交
256

H
Heiko Carstens 已提交
257
	.globl	sys32_dup2_wrapper
L
Linus Torvalds 已提交
258 259 260 261 262
sys32_dup2_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	jg	sys_dup2		# branch to system call

H
Heiko Carstens 已提交
263
#sys32_getppid_wrapper			# void
L
Linus Torvalds 已提交
264

H
Heiko Carstens 已提交
265
#sys32_getpgrp_wrapper			# void
L
Linus Torvalds 已提交
266

H
Heiko Carstens 已提交
267
#sys32_setsid_wrapper			# void
L
Linus Torvalds 已提交
268

H
Heiko Carstens 已提交
269
	.globl	sys32_sigaction_wrapper
L
Linus Torvalds 已提交
270
sys32_sigaction_wrapper:
H
Heiko Carstens 已提交
271
	lgfr	%r2,%r2			# int
L
Linus Torvalds 已提交
272 273 274 275
	llgtr	%r3,%r3			# const struct old_sigaction *
	llgtr	%r4,%r4			# struct old_sigaction32 *
	jg	sys32_sigaction		# branch to system call

H
Heiko Carstens 已提交
276
	.globl	sys32_setreuid16_wrapper
L
Linus Torvalds 已提交
277
sys32_setreuid16_wrapper:
H
Heiko Carstens 已提交
278 279
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
280 281
	jg	sys32_setreuid16	# branch to system call

H
Heiko Carstens 已提交
282
	.globl	sys32_setregid16_wrapper
L
Linus Torvalds 已提交
283
sys32_setregid16_wrapper:
H
Heiko Carstens 已提交
284 285
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
	llgfr	%r3,%r3			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
286 287
	jg	sys32_setregid16	# branch to system call

288 289 290 291 292 293
	.globl sys_sigsuspend_wrapper
sys_sigsuspend_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgfr	%r4,%r4			# old_sigset_t
	jg	sys_sigsuspend
L
Linus Torvalds 已提交
294

H
Heiko Carstens 已提交
295
	.globl	compat_sys_sigpending_wrapper
L
Linus Torvalds 已提交
296 297 298 299
compat_sys_sigpending_wrapper:
	llgtr	%r2,%r2			# compat_old_sigset_t *
	jg	compat_sys_sigpending	# branch to system call

H
Heiko Carstens 已提交
300
	.globl	sys32_sethostname_wrapper
L
Linus Torvalds 已提交
301 302 303 304 305
sys32_sethostname_wrapper:
	llgtr	%r2,%r2			# char *
	lgfr	%r3,%r3			# int
	jg	sys_sethostname		# branch to system call

H
Heiko Carstens 已提交
306
	.globl	compat_sys_setrlimit_wrapper
L
Linus Torvalds 已提交
307 308 309 310 311
compat_sys_setrlimit_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct rlimit_emu31 *
	jg	compat_sys_setrlimit	# branch to system call

H
Heiko Carstens 已提交
312
	.globl	compat_sys_old_getrlimit_wrapper
L
Linus Torvalds 已提交
313 314 315 316 317
compat_sys_old_getrlimit_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct rlimit_emu31 *
	jg	compat_sys_old_getrlimit # branch to system call

H
Heiko Carstens 已提交
318
	.globl	compat_sys_getrlimit_wrapper
L
Linus Torvalds 已提交
319 320 321 322 323
compat_sys_getrlimit_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct rlimit_emu31 *
	jg	compat_sys_getrlimit	# branch to system call

H
Heiko Carstens 已提交
324
	.globl	sys32_mmap2_wrapper
L
Linus Torvalds 已提交
325 326 327 328
sys32_mmap2_wrapper:
	llgtr	%r2,%r2			# struct mmap_arg_struct_emu31 *
	jg	sys32_mmap2			# branch to system call

H
Heiko Carstens 已提交
329
	.globl	compat_sys_getrusage_wrapper
L
Linus Torvalds 已提交
330 331 332 333 334
compat_sys_getrusage_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct rusage_emu31 *
	jg	compat_sys_getrusage	# branch to system call

335 336
	.globl	compat_sys_gettimeofday_wrapper
compat_sys_gettimeofday_wrapper:
L
Linus Torvalds 已提交
337 338
	llgtr	%r2,%r2			# struct timeval_emu31 *
	llgtr	%r3,%r3			# struct timezone *
339
	jg	compat_sys_gettimeofday	# branch to system call
L
Linus Torvalds 已提交
340

341 342
	.globl	compat_sys_settimeofday_wrapper
compat_sys_settimeofday_wrapper:
L
Linus Torvalds 已提交
343 344
	llgtr	%r2,%r2			# struct timeval_emu31 *
	llgtr	%r3,%r3			# struct timezone *
345
	jg	compat_sys_settimeofday	# branch to system call
L
Linus Torvalds 已提交
346

H
Heiko Carstens 已提交
347
	.globl	sys32_getgroups16_wrapper
L
Linus Torvalds 已提交
348 349 350 351 352
sys32_getgroups16_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# __kernel_old_gid_emu31_t *
	jg	sys32_getgroups16	# branch to system call

H
Heiko Carstens 已提交
353
	.globl	sys32_setgroups16_wrapper
L
Linus Torvalds 已提交
354 355 356 357 358
sys32_setgroups16_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# __kernel_old_gid_emu31_t *
	jg	sys32_setgroups16	# branch to system call

H
Heiko Carstens 已提交
359
	.globl	sys32_symlink_wrapper
L
Linus Torvalds 已提交
360 361 362 363 364
sys32_symlink_wrapper:
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_symlink		# branch to system call

H
Heiko Carstens 已提交
365
	.globl	sys32_readlink_wrapper
L
Linus Torvalds 已提交
366 367 368 369 370 371
sys32_readlink_wrapper:
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# char *
	lgfr	%r4,%r4			# int
	jg	sys_readlink		# branch to system call

H
Heiko Carstens 已提交
372
	.globl	sys32_uselib_wrapper
L
Linus Torvalds 已提交
373 374 375 376
sys32_uselib_wrapper:
	llgtr	%r2,%r2			# const char *
	jg	sys_uselib		# branch to system call

H
Heiko Carstens 已提交
377
	.globl	sys32_swapon_wrapper
L
Linus Torvalds 已提交
378 379 380 381 382
sys32_swapon_wrapper:
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_swapon		# branch to system call

H
Heiko Carstens 已提交
383
	.globl	sys32_reboot_wrapper
L
Linus Torvalds 已提交
384 385 386 387 388 389 390
sys32_reboot_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgfr	%r4,%r4			# unsigned int
	llgtr	%r5,%r5			# void *
	jg	sys_reboot		# branch to system call

H
Heiko Carstens 已提交
391
	.globl	old32_readdir_wrapper
L
Linus Torvalds 已提交
392 393 394 395 396 397
old32_readdir_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# void *
	llgfr	%r4,%r4			# unsigned int
	jg	compat_sys_old_readdir	# branch to system call

H
Heiko Carstens 已提交
398
	.globl	old32_mmap_wrapper
L
Linus Torvalds 已提交
399 400 401 402
old32_mmap_wrapper:
	llgtr	%r2,%r2			# struct mmap_arg_struct_emu31 *
	jg	old32_mmap		# branch to system call

H
Heiko Carstens 已提交
403
	.globl	sys32_munmap_wrapper
L
Linus Torvalds 已提交
404 405
sys32_munmap_wrapper:
	llgfr	%r2,%r2			# unsigned long
H
Heiko Carstens 已提交
406
	llgfr	%r3,%r3			# size_t
L
Linus Torvalds 已提交
407 408
	jg	sys_munmap		# branch to system call

H
Heiko Carstens 已提交
409
	.globl	sys32_truncate_wrapper
L
Linus Torvalds 已提交
410 411
sys32_truncate_wrapper:
	llgtr	%r2,%r2			# const char *
412
	lgfr	%r3,%r3			# long
L
Linus Torvalds 已提交
413 414
	jg	sys_truncate		# branch to system call

H
Heiko Carstens 已提交
415
	.globl	sys32_ftruncate_wrapper
L
Linus Torvalds 已提交
416 417 418 419 420
sys32_ftruncate_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned long
	jg	sys_ftruncate		# branch to system call

H
Heiko Carstens 已提交
421
	.globl	sys32_fchmod_wrapper
L
Linus Torvalds 已提交
422 423 424 425 426
sys32_fchmod_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# mode_t
	jg	sys_fchmod		# branch to system call

H
Heiko Carstens 已提交
427
	.globl	sys32_fchown16_wrapper
L
Linus Torvalds 已提交
428 429 430 431 432 433
sys32_fchown16_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# compat_uid_t
	llgfr	%r4,%r4			# compat_uid_t
	jg	sys32_fchown16		# branch to system call

H
Heiko Carstens 已提交
434
	.globl	sys32_getpriority_wrapper
L
Linus Torvalds 已提交
435 436 437 438 439
sys32_getpriority_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_getpriority		# branch to system call

H
Heiko Carstens 已提交
440
	.globl	sys32_setpriority_wrapper
L
Linus Torvalds 已提交
441 442 443 444 445 446
sys32_setpriority_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	jg	sys_setpriority		# branch to system call

H
Heiko Carstens 已提交
447
	.globl	compat_sys_statfs_wrapper
L
Linus Torvalds 已提交
448 449 450 451 452
compat_sys_statfs_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct compat_statfs *
	jg	compat_sys_statfs	# branch to system call

H
Heiko Carstens 已提交
453
	.globl	compat_sys_fstatfs_wrapper
L
Linus Torvalds 已提交
454 455 456 457 458
compat_sys_fstatfs_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct compat_statfs *
	jg	compat_sys_fstatfs	# branch to system call

H
Heiko Carstens 已提交
459
	.globl	compat_sys_socketcall_wrapper
L
Linus Torvalds 已提交
460 461 462 463 464
compat_sys_socketcall_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# u32 *
	jg	compat_sys_socketcall	# branch to system call

H
Heiko Carstens 已提交
465
	.globl	sys32_syslog_wrapper
L
Linus Torvalds 已提交
466 467 468 469 470 471
sys32_syslog_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	lgfr	%r4,%r4			# int
	jg	sys_syslog		# branch to system call

H
Heiko Carstens 已提交
472
	.globl	compat_sys_setitimer_wrapper
L
Linus Torvalds 已提交
473 474 475 476 477 478
compat_sys_setitimer_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct itimerval_emu31 *
	llgtr	%r4,%r4			# struct itimerval_emu31 *
	jg	compat_sys_setitimer	# branch to system call

H
Heiko Carstens 已提交
479
	.globl	compat_sys_getitimer_wrapper
L
Linus Torvalds 已提交
480 481 482 483 484
compat_sys_getitimer_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct itimerval_emu31 *
	jg	compat_sys_getitimer	# branch to system call

H
Heiko Carstens 已提交
485
	.globl	compat_sys_newstat_wrapper
L
Linus Torvalds 已提交
486 487 488 489 490
compat_sys_newstat_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat_emu31 *
	jg	compat_sys_newstat	# branch to system call

H
Heiko Carstens 已提交
491
	.globl	compat_sys_newlstat_wrapper
L
Linus Torvalds 已提交
492 493 494 495 496
compat_sys_newlstat_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat_emu31 *
	jg	compat_sys_newlstat	# branch to system call

H
Heiko Carstens 已提交
497
	.globl	compat_sys_newfstat_wrapper
L
Linus Torvalds 已提交
498 499 500 501 502
compat_sys_newfstat_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct stat_emu31 *
	jg	compat_sys_newfstat	# branch to system call

H
Heiko Carstens 已提交
503
#sys32_vhangup_wrapper			# void
L
Linus Torvalds 已提交
504

H
Heiko Carstens 已提交
505
	.globl	compat_sys_wait4_wrapper
L
Linus Torvalds 已提交
506 507 508 509 510 511 512
compat_sys_wait4_wrapper:
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# unsigned int *
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# struct rusage *
	jg	compat_sys_wait4	# branch to system call

H
Heiko Carstens 已提交
513
	.globl	sys32_swapoff_wrapper
L
Linus Torvalds 已提交
514 515 516 517
sys32_swapoff_wrapper:
	llgtr	%r2,%r2			# const char *
	jg	sys_swapoff		# branch to system call

518 519
	.globl	compat_sys_sysinfo_wrapper
compat_sys_sysinfo_wrapper:
L
Linus Torvalds 已提交
520
	llgtr	%r2,%r2			# struct sysinfo_emu31 *
521
	jg	compat_sys_sysinfo	# branch to system call
L
Linus Torvalds 已提交
522

H
Heiko Carstens 已提交
523
	.globl	sys32_ipc_wrapper
L
Linus Torvalds 已提交
524 525 526 527 528 529 530 531
sys32_ipc_wrapper:
	llgfr	%r2,%r2			# uint
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	lgfr	%r5,%r5			# int
	llgfr	%r6,%r6			# u32
	jg	sys32_ipc		# branch to system call

H
Heiko Carstens 已提交
532
	.globl	sys32_fsync_wrapper
L
Linus Torvalds 已提交
533 534 535 536
sys32_fsync_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_fsync		# branch to system call

H
Heiko Carstens 已提交
537
#sys32_sigreturn_wrapper		# done in sigreturn_glue
L
Linus Torvalds 已提交
538

H
Heiko Carstens 已提交
539
#sys32_clone_wrapper			# done in clone_glue
L
Linus Torvalds 已提交
540

H
Heiko Carstens 已提交
541
	.globl	sys32_setdomainname_wrapper
L
Linus Torvalds 已提交
542 543 544 545 546
sys32_setdomainname_wrapper:
	llgtr	%r2,%r2			# char *
	lgfr	%r3,%r3			# int
	jg	sys_setdomainname	# branch to system call

H
Heiko Carstens 已提交
547
	.globl	sys32_newuname_wrapper
L
Linus Torvalds 已提交
548 549
sys32_newuname_wrapper:
	llgtr	%r2,%r2			# struct new_utsname *
550
	jg	sys_newuname		# branch to system call
L
Linus Torvalds 已提交
551

H
Heiko Carstens 已提交
552
	.globl	compat_sys_adjtimex_wrapper
553 554 555
compat_sys_adjtimex_wrapper:
	llgtr	%r2,%r2			# struct compat_timex *
	jg	compat_sys_adjtimex	# branch to system call
L
Linus Torvalds 已提交
556

H
Heiko Carstens 已提交
557
	.globl	sys32_mprotect_wrapper
L
Linus Torvalds 已提交
558 559 560 561 562 563
sys32_mprotect_wrapper:
	llgtr	%r2,%r2			# unsigned long (actually pointer
	llgfr	%r3,%r3			# size_t
	llgfr	%r4,%r4			# unsigned long
	jg	sys_mprotect		# branch to system call

H
Heiko Carstens 已提交
564
	.globl	compat_sys_sigprocmask_wrapper
L
Linus Torvalds 已提交
565 566 567 568 569 570
compat_sys_sigprocmask_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# compat_old_sigset_t *
	llgtr	%r4,%r4			# compat_old_sigset_t *
	jg	compat_sys_sigprocmask		# branch to system call

571 572
	.globl	sys_init_module_wrapper
sys_init_module_wrapper:
L
Linus Torvalds 已提交
573 574 575
	llgtr	%r2,%r2			# void *
	llgfr	%r3,%r3			# unsigned long
	llgtr	%r4,%r4			# char *
576
	jg	sys_init_module		# branch to system call
L
Linus Torvalds 已提交
577

578 579
	.globl	sys_delete_module_wrapper
sys_delete_module_wrapper:
L
Linus Torvalds 已提交
580 581
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# unsigned int
582
	jg	sys_delete_module	# branch to system call
L
Linus Torvalds 已提交
583

H
Heiko Carstens 已提交
584
	.globl	sys32_quotactl_wrapper
L
Linus Torvalds 已提交
585 586 587 588 589 590 591
sys32_quotactl_wrapper:
	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

H
Heiko Carstens 已提交
592
	.globl	sys32_getpgid_wrapper
L
Linus Torvalds 已提交
593 594 595 596
sys32_getpgid_wrapper:
	lgfr	%r2,%r2			# pid_t
	jg	sys_getpgid		# branch to system call

H
Heiko Carstens 已提交
597
	.globl	sys32_fchdir_wrapper
L
Linus Torvalds 已提交
598 599 600 601
sys32_fchdir_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_fchdir		# branch to system call

H
Heiko Carstens 已提交
602
	.globl	sys32_bdflush_wrapper
L
Linus Torvalds 已提交
603 604 605 606 607
sys32_bdflush_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# long
	jg	sys_bdflush		# branch to system call

H
Heiko Carstens 已提交
608
	.globl	sys32_sysfs_wrapper
L
Linus Torvalds 已提交
609 610 611 612 613 614
sys32_sysfs_wrapper:
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	jg	sys_sysfs		# branch to system call

H
Heiko Carstens 已提交
615
	.globl	sys32_personality_wrapper
L
Linus Torvalds 已提交
616
sys32_personality_wrapper:
617
	llgfr	%r2,%r2			# unsigned int
618
	jg	sys_s390_personality	# branch to system call
L
Linus Torvalds 已提交
619

H
Heiko Carstens 已提交
620
	.globl	sys32_setfsuid16_wrapper
L
Linus Torvalds 已提交
621
sys32_setfsuid16_wrapper:
H
Heiko Carstens 已提交
622
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
623 624
	jg	sys32_setfsuid16	# branch to system call

H
Heiko Carstens 已提交
625
	.globl	sys32_setfsgid16_wrapper
L
Linus Torvalds 已提交
626
sys32_setfsgid16_wrapper:
H
Heiko Carstens 已提交
627
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
628 629
	jg	sys32_setfsgid16	# branch to system call

H
Heiko Carstens 已提交
630
	.globl	sys32_llseek_wrapper
L
Linus Torvalds 已提交
631 632 633 634 635 636 637 638
sys32_llseek_wrapper:
	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

H
Heiko Carstens 已提交
639
	.globl	sys32_getdents_wrapper
L
Linus Torvalds 已提交
640 641 642 643 644 645
sys32_getdents_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# void *
	llgfr	%r4,%r4			# unsigned int
	jg	compat_sys_getdents	# branch to system call

H
Heiko Carstens 已提交
646
	.globl	compat_sys_select_wrapper
L
Linus Torvalds 已提交
647 648 649 650 651 652 653 654
compat_sys_select_wrapper:
	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

H
Heiko Carstens 已提交
655
	.globl	sys32_flock_wrapper
L
Linus Torvalds 已提交
656 657 658 659 660
sys32_flock_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	jg	sys_flock		# branch to system call

H
Heiko Carstens 已提交
661
	.globl	sys32_msync_wrapper
L
Linus Torvalds 已提交
662 663 664 665 666 667
sys32_msync_wrapper:
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	lgfr	%r4,%r4			# int
	jg	sys_msync		# branch to system call

H
Heiko Carstens 已提交
668
	.globl	compat_sys_readv_wrapper
L
Linus Torvalds 已提交
669 670 671 672 673 674
compat_sys_readv_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const struct compat_iovec *
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_readv	# branch to system call

H
Heiko Carstens 已提交
675
	.globl	compat_sys_writev_wrapper
L
Linus Torvalds 已提交
676 677 678 679 680 681
compat_sys_writev_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const struct compat_iovec *
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_writev	# branch to system call

H
Heiko Carstens 已提交
682
	.globl	sys32_getsid_wrapper
L
Linus Torvalds 已提交
683 684 685 686
sys32_getsid_wrapper:
	lgfr	%r2,%r2			# pid_t
	jg	sys_getsid		# branch to system call

H
Heiko Carstens 已提交
687
	.globl	sys32_fdatasync_wrapper
L
Linus Torvalds 已提交
688 689 690 691
sys32_fdatasync_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_fdatasync		# branch to system call

H
Heiko Carstens 已提交
692
	.globl	sys32_mlock_wrapper
L
Linus Torvalds 已提交
693 694 695 696 697
sys32_mlock_wrapper:
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	jg	sys_mlock		# branch to system call

H
Heiko Carstens 已提交
698
	.globl	sys32_munlock_wrapper
L
Linus Torvalds 已提交
699 700 701 702 703
sys32_munlock_wrapper:
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	jg	sys_munlock		# branch to system call

H
Heiko Carstens 已提交
704
	.globl	sys32_mlockall_wrapper
L
Linus Torvalds 已提交
705 706 707 708
sys32_mlockall_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_mlockall		# branch to system call

H
Heiko Carstens 已提交
709
#sys32_munlockall_wrapper		# void
L
Linus Torvalds 已提交
710

H
Heiko Carstens 已提交
711
	.globl	sys32_sched_setparam_wrapper
L
Linus Torvalds 已提交
712 713 714 715 716
sys32_sched_setparam_wrapper:
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# struct sched_param *
	jg	sys_sched_setparam	# branch to system call

H
Heiko Carstens 已提交
717
	.globl	sys32_sched_getparam_wrapper
L
Linus Torvalds 已提交
718 719 720 721 722
sys32_sched_getparam_wrapper:
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# struct sched_param *
	jg	sys_sched_getparam	# branch to system call

H
Heiko Carstens 已提交
723
	.globl	sys32_sched_setscheduler_wrapper
L
Linus Torvalds 已提交
724 725 726 727 728 729
sys32_sched_setscheduler_wrapper:
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# struct sched_param *
	jg	sys_sched_setscheduler	# branch to system call

H
Heiko Carstens 已提交
730
	.globl	sys32_sched_getscheduler_wrapper
L
Linus Torvalds 已提交
731 732 733 734
sys32_sched_getscheduler_wrapper:
	lgfr	%r2,%r2			# pid_t
	jg	sys_sched_getscheduler	# branch to system call

H
Heiko Carstens 已提交
735
#sys32_sched_yield_wrapper		# void
L
Linus Torvalds 已提交
736

H
Heiko Carstens 已提交
737
	.globl	sys32_sched_get_priority_max_wrapper
L
Linus Torvalds 已提交
738 739 740 741
sys32_sched_get_priority_max_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_sched_get_priority_max	# branch to system call

H
Heiko Carstens 已提交
742
	.globl	sys32_sched_get_priority_min_wrapper
L
Linus Torvalds 已提交
743 744 745 746
sys32_sched_get_priority_min_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_sched_get_priority_min	# branch to system call

H
Heiko Carstens 已提交
747
	.globl	sys32_sched_rr_get_interval_wrapper
L
Linus Torvalds 已提交
748 749 750 751 752
sys32_sched_rr_get_interval_wrapper:
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	sys32_sched_rr_get_interval	# branch to system call

H
Heiko Carstens 已提交
753
	.globl	compat_sys_nanosleep_wrapper
L
Linus Torvalds 已提交
754 755 756 757 758
compat_sys_nanosleep_wrapper:
	llgtr	%r2,%r2			# struct compat_timespec *
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_nanosleep		# branch to system call

H
Heiko Carstens 已提交
759
	.globl	sys32_mremap_wrapper
L
Linus Torvalds 已提交
760 761 762 763 764 765 766 767
sys32_mremap_wrapper:
	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

H
Heiko Carstens 已提交
768
	.globl	sys32_setresuid16_wrapper
L
Linus Torvalds 已提交
769
sys32_setresuid16_wrapper:
H
Heiko Carstens 已提交
770 771 772
	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 已提交
773 774
	jg	sys32_setresuid16	# branch to system call

H
Heiko Carstens 已提交
775
	.globl	sys32_getresuid16_wrapper
L
Linus Torvalds 已提交
776 777 778 779 780 781
sys32_getresuid16_wrapper:
	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

H
Heiko Carstens 已提交
782
	.globl	sys32_poll_wrapper
L
Linus Torvalds 已提交
783
sys32_poll_wrapper:
H
Heiko Carstens 已提交
784 785 786
	llgtr	%r2,%r2			# struct pollfd *
	llgfr	%r3,%r3			# unsigned int
	lgfr	%r4,%r4			# long
L
Linus Torvalds 已提交
787 788
	jg	sys_poll		# branch to system call

H
Heiko Carstens 已提交
789
	.globl	compat_sys_nfsservctl_wrapper
L
Linus Torvalds 已提交
790
compat_sys_nfsservctl_wrapper:
H
Heiko Carstens 已提交
791
	lgfr	%r2,%r2			# int
L
Linus Torvalds 已提交
792 793 794 795
	llgtr	%r3,%r3			# struct compat_nfsctl_arg*
	llgtr	%r4,%r4			# union compat_nfsctl_res*
	jg	compat_sys_nfsservctl	# branch to system call

H
Heiko Carstens 已提交
796
	.globl	sys32_setresgid16_wrapper
L
Linus Torvalds 已提交
797
sys32_setresgid16_wrapper:
H
Heiko Carstens 已提交
798 799 800
	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 已提交
801 802
	jg	sys32_setresgid16	# branch to system call

H
Heiko Carstens 已提交
803
	.globl	sys32_getresgid16_wrapper
L
Linus Torvalds 已提交
804 805 806 807 808 809
sys32_getresgid16_wrapper:
	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

H
Heiko Carstens 已提交
810
	.globl	sys32_prctl_wrapper
L
Linus Torvalds 已提交
811 812 813 814 815 816 817 818
sys32_prctl_wrapper:
	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 已提交
819
#sys32_rt_sigreturn_wrapper		# done in rt_sigreturn_glue
L
Linus Torvalds 已提交
820

H
Heiko Carstens 已提交
821
	.globl	sys32_rt_sigaction_wrapper
L
Linus Torvalds 已提交
822 823 824 825 826 827 828
sys32_rt_sigaction_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const struct sigaction_emu31 *
	llgtr	%r4,%r4			# const struct sigaction_emu31 *
	llgfr	%r5,%r5			# size_t
	jg	sys32_rt_sigaction	# branch to system call

H
Heiko Carstens 已提交
829
	.globl	sys32_rt_sigprocmask_wrapper
L
Linus Torvalds 已提交
830 831 832 833 834 835 836
sys32_rt_sigprocmask_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# old_sigset_emu31 *
	llgtr	%r4,%r4			# old_sigset_emu31 *
	llgfr	%r5,%r5			# size_t
	jg	sys32_rt_sigprocmask	# branch to system call

H
Heiko Carstens 已提交
837
	.globl	sys32_rt_sigpending_wrapper
L
Linus Torvalds 已提交
838 839 840 841 842
sys32_rt_sigpending_wrapper:
	llgtr	%r2,%r2			# sigset_emu31 *
	llgfr	%r3,%r3			# size_t
	jg	sys32_rt_sigpending	# branch to system call

H
Heiko Carstens 已提交
843
	.globl	compat_sys_rt_sigtimedwait_wrapper
L
Linus Torvalds 已提交
844 845 846 847 848 849 850
compat_sys_rt_sigtimedwait_wrapper:
	llgtr	%r2,%r2			# const sigset_emu31_t *
	llgtr	%r3,%r3			# siginfo_emu31_t *
	llgtr	%r4,%r4			# const struct compat_timespec *
	llgfr	%r5,%r5			# size_t
	jg	compat_sys_rt_sigtimedwait	# branch to system call

H
Heiko Carstens 已提交
851
	.globl	sys32_rt_sigqueueinfo_wrapper
L
Linus Torvalds 已提交
852 853 854 855 856 857
sys32_rt_sigqueueinfo_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# siginfo_emu31_t *
	jg	sys32_rt_sigqueueinfo	# branch to system call

858 859 860 861 862
	.globl compat_sys_rt_sigsuspend_wrapper
compat_sys_rt_sigsuspend_wrapper:
	llgtr	%r2,%r2			# compat_sigset_t *
	llgfr	%r3,%r3			# compat_size_t
	jg	compat_sys_rt_sigsuspend
L
Linus Torvalds 已提交
863

H
Heiko Carstens 已提交
864
	.globl	sys32_pread64_wrapper
L
Linus Torvalds 已提交
865 866 867 868 869 870 871 872
sys32_pread64_wrapper:
	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

H
Heiko Carstens 已提交
873
	.globl	sys32_pwrite64_wrapper
L
Linus Torvalds 已提交
874 875 876 877 878 879 880 881
sys32_pwrite64_wrapper:
	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

H
Heiko Carstens 已提交
882
	.globl	sys32_chown16_wrapper
L
Linus Torvalds 已提交
883 884
sys32_chown16_wrapper:
	llgtr	%r2,%r2			# const char *
H
Heiko Carstens 已提交
885 886
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
	llgfr	%r4,%r4			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
887 888
	jg	sys32_chown16		# branch to system call

H
Heiko Carstens 已提交
889
	.globl	sys32_getcwd_wrapper
L
Linus Torvalds 已提交
890 891 892 893 894
sys32_getcwd_wrapper:
	llgtr	%r2,%r2			# char *
	llgfr	%r3,%r3			# unsigned long
	jg	sys_getcwd		# branch to system call

H
Heiko Carstens 已提交
895
	.globl	sys32_capget_wrapper
L
Linus Torvalds 已提交
896 897 898 899 900
sys32_capget_wrapper:
	llgtr	%r2,%r2			# cap_user_header_t
	llgtr	%r3,%r3			# cap_user_data_t
	jg	sys_capget		# branch to system call

H
Heiko Carstens 已提交
901
	.globl	sys32_capset_wrapper
L
Linus Torvalds 已提交
902 903 904 905 906 907 908
sys32_capset_wrapper:
	llgtr	%r2,%r2			# cap_user_header_t
	llgtr	%r3,%r3			# const cap_user_data_t
	jg	sys_capset		# branch to system call

	.globl sys32_sigaltstack_wrapper
sys32_sigaltstack_wrapper:
H
Heiko Carstens 已提交
909 910
	llgtr	%r2,%r2			# const stack_emu31_t *
	llgtr	%r3,%r3			# stack_emu31_t *
L
Linus Torvalds 已提交
911 912
	jg	sys32_sigaltstack

H
Heiko Carstens 已提交
913
	.globl	sys32_sendfile_wrapper
L
Linus Torvalds 已提交
914 915 916 917 918 919 920
sys32_sendfile_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# __kernel_off_emu31_t *
	llgfr	%r5,%r5			# size_t
	jg	sys32_sendfile		# branch to system call

H
Heiko Carstens 已提交
921
#sys32_vfork_wrapper			# done in vfork_glue
L
Linus Torvalds 已提交
922

H
Heiko Carstens 已提交
923
	.globl	sys32_truncate64_wrapper
L
Linus Torvalds 已提交
924 925 926 927 928 929
sys32_truncate64_wrapper:
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	jg	sys32_truncate64	# branch to system call

H
Heiko Carstens 已提交
930
	.globl	sys32_ftruncate64_wrapper
L
Linus Torvalds 已提交
931 932 933 934 935 936
sys32_ftruncate64_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	jg	sys32_ftruncate64	# branch to system call

H
Heiko Carstens 已提交
937
	.globl sys32_lchown_wrapper
L
Linus Torvalds 已提交
938 939 940 941 942 943
sys32_lchown_wrapper:
	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 已提交
944 945 946 947
#sys32_getuid_wrapper			# void
#sys32_getgid_wrapper			# void
#sys32_geteuid_wrapper			# void
#sys32_getegid_wrapper			# void
L
Linus Torvalds 已提交
948 949 950 951 952 953 954 955 956 957 958 959 960

	.globl sys32_setreuid_wrapper
sys32_setreuid_wrapper:
	llgfr	%r2,%r2			# uid_t
	llgfr	%r3,%r3			# uid_t
	jg	sys_setreuid		# branch to system call

	.globl sys32_setregid_wrapper
sys32_setregid_wrapper:
	llgfr	%r2,%r2			# gid_t
	llgfr	%r3,%r3			# gid_t
	jg	sys_setregid		# branch to system call

H
Heiko Carstens 已提交
961
	.globl	sys32_getgroups_wrapper
L
Linus Torvalds 已提交
962 963 964 965 966
sys32_getgroups_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# gid_t *
	jg	sys_getgroups		# branch to system call

H
Heiko Carstens 已提交
967
	.globl	sys32_setgroups_wrapper
L
Linus Torvalds 已提交
968 969 970 971 972
sys32_setgroups_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# gid_t *
	jg	sys_setgroups		# branch to system call

H
Heiko Carstens 已提交
973
	.globl sys32_fchown_wrapper
L
Linus Torvalds 已提交
974 975 976 977 978 979
sys32_fchown_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_fchown		# branch to system call

H
Heiko Carstens 已提交
980
	.globl sys32_setresuid_wrapper
L
Linus Torvalds 已提交
981 982 983 984 985 986
sys32_setresuid_wrapper:
	llgfr	%r2,%r2			# uid_t
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# uid_t
	jg	sys_setresuid		# branch to system call

H
Heiko Carstens 已提交
987
	.globl sys32_getresuid_wrapper
L
Linus Torvalds 已提交
988 989 990 991 992 993
sys32_getresuid_wrapper:
	llgtr	%r2,%r2			# uid_t *
	llgtr	%r3,%r3			# uid_t *
	llgtr	%r4,%r4			# uid_t *
	jg	sys_getresuid		# branch to system call

H
Heiko Carstens 已提交
994
	.globl sys32_setresgid_wrapper
L
Linus Torvalds 已提交
995 996 997 998 999 1000
sys32_setresgid_wrapper:
	llgfr	%r2,%r2			# gid_t
	llgfr	%r3,%r3			# gid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_setresgid		# branch to system call

H
Heiko Carstens 已提交
1001
	.globl sys32_getresgid_wrapper
L
Linus Torvalds 已提交
1002 1003 1004 1005 1006 1007
sys32_getresgid_wrapper:
	llgtr	%r2,%r2			# gid_t *
	llgtr	%r3,%r3			# gid_t *
	llgtr	%r4,%r4			# gid_t *
	jg	sys_getresgid		# branch to system call

H
Heiko Carstens 已提交
1008
	.globl sys32_chown_wrapper
L
Linus Torvalds 已提交
1009 1010 1011 1012 1013 1014
sys32_chown_wrapper:
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_chown		# branch to system call

H
Heiko Carstens 已提交
1015
	.globl sys32_setuid_wrapper
L
Linus Torvalds 已提交
1016 1017 1018 1019
sys32_setuid_wrapper:
	llgfr	%r2,%r2			# uid_t
	jg	sys_setuid		# branch to system call

H
Heiko Carstens 已提交
1020
	.globl sys32_setgid_wrapper
L
Linus Torvalds 已提交
1021 1022 1023 1024
sys32_setgid_wrapper:
	llgfr	%r2,%r2			# gid_t
	jg	sys_setgid		# branch to system call

H
Heiko Carstens 已提交
1025
	.globl sys32_setfsuid_wrapper
L
Linus Torvalds 已提交
1026 1027 1028 1029
sys32_setfsuid_wrapper:
	llgfr	%r2,%r2			# uid_t
	jg	sys_setfsuid		# branch to system call

H
Heiko Carstens 已提交
1030
	.globl sys32_setfsgid_wrapper
L
Linus Torvalds 已提交
1031 1032 1033 1034
sys32_setfsgid_wrapper:
	llgfr	%r2,%r2			# gid_t
	jg	sys_setfsgid		# branch to system call

H
Heiko Carstens 已提交
1035
	.globl	sys32_pivot_root_wrapper
L
Linus Torvalds 已提交
1036 1037 1038 1039 1040
sys32_pivot_root_wrapper:
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_pivot_root		# branch to system call

H
Heiko Carstens 已提交
1041
	.globl	sys32_mincore_wrapper
L
Linus Torvalds 已提交
1042 1043 1044 1045 1046 1047
sys32_mincore_wrapper:
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	llgtr	%r4,%r4			# unsigned char *
	jg	sys_mincore		# branch to system call

H
Heiko Carstens 已提交
1048
	.globl	sys32_madvise_wrapper
L
Linus Torvalds 已提交
1049 1050 1051 1052 1053 1054
sys32_madvise_wrapper:
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	lgfr	%r4,%r4			# int
	jg	sys_madvise		# branch to system call

H
Heiko Carstens 已提交
1055
	.globl	sys32_getdents64_wrapper
L
Linus Torvalds 已提交
1056 1057 1058 1059 1060 1061
sys32_getdents64_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# void *
	llgfr	%r4,%r4			# unsigned int
	jg	sys_getdents64		# branch to system call

H
Heiko Carstens 已提交
1062
	.globl	compat_sys_fcntl64_wrapper
L
Linus Torvalds 已提交
1063 1064
compat_sys_fcntl64_wrapper:
	llgfr	%r2,%r2			# unsigned int
H
Heiko Carstens 已提交
1065
	llgfr	%r3,%r3			# unsigned int
L
Linus Torvalds 已提交
1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_fcntl64	# branch to system call

	.globl	sys32_stat64_wrapper
sys32_stat64_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat64 *
	jg	sys32_stat64		# branch to system call

	.globl	sys32_lstat64_wrapper
sys32_lstat64_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat64 *
	jg	sys32_lstat64		# branch to system call

	.globl	sys32_stime_wrapper
sys32_stime_wrapper:
	llgtr	%r2,%r2			# long *
	jg	compat_sys_stime	# branch to system call

H
Heiko Carstens 已提交
1086
	.globl	sys32_sysctl_wrapper
L
Linus Torvalds 已提交
1087
sys32_sysctl_wrapper:
1088 1089
	llgtr	%r2,%r2 		# struct compat_sysctl_args *
	jg	compat_sys_sysctl
L
Linus Torvalds 已提交
1090 1091 1092 1093 1094 1095 1096

	.globl	sys32_fstat64_wrapper
sys32_fstat64_wrapper:
	llgfr	%r2,%r2			# unsigned long
	llgtr	%r3,%r3			# struct stat64 *
	jg	sys32_fstat64		# branch to system call

H
Heiko Carstens 已提交
1097
	.globl	compat_sys_futex_wrapper
L
Linus Torvalds 已提交
1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211
compat_sys_futex_wrapper:
	llgtr	%r2,%r2			# u32 *
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# struct compat_timespec *
	llgtr	%r6,%r6			# u32 *
	lgf	%r0,164(%r15)		# int
	stg	%r0,160(%r15)
	jg	compat_sys_futex	# branch to system call

	.globl	sys32_setxattr_wrapper
sys32_setxattr_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	lgfr	%r6,%r6			# int
	jg	sys_setxattr

	.globl	sys32_lsetxattr_wrapper
sys32_lsetxattr_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	lgfr	%r6,%r6			# int
	jg	sys_lsetxattr

	.globl	sys32_fsetxattr_wrapper
sys32_fsetxattr_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	lgfr	%r6,%r6			# int
	jg	sys_fsetxattr

	.globl	sys32_getxattr_wrapper
sys32_getxattr_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	jg	sys_getxattr

	.globl	sys32_lgetxattr_wrapper
sys32_lgetxattr_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	jg	sys_lgetxattr

	.globl	sys32_fgetxattr_wrapper
sys32_fgetxattr_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	jg	sys_fgetxattr

	.globl	sys32_listxattr_wrapper
sys32_listxattr_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	jg	sys_listxattr

	.globl	sys32_llistxattr_wrapper
sys32_llistxattr_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	jg	sys_llistxattr

	.globl	sys32_flistxattr_wrapper
sys32_flistxattr_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	jg	sys_flistxattr

	.globl	sys32_removexattr_wrapper
sys32_removexattr_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	jg	sys_removexattr

	.globl	sys32_lremovexattr_wrapper
sys32_lremovexattr_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	jg	sys_lremovexattr

	.globl	sys32_fremovexattr_wrapper
sys32_fremovexattr_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	jg	sys_fremovexattr

	.globl	sys32_sched_setaffinity_wrapper
sys32_sched_setaffinity_wrapper:
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned int
	llgtr	%r4,%r4			# unsigned long *
	jg	compat_sys_sched_setaffinity

	.globl	sys32_sched_getaffinity_wrapper
sys32_sched_getaffinity_wrapper:
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned int
	llgtr	%r4,%r4			# unsigned long *
	jg	compat_sys_sched_getaffinity

H
Heiko Carstens 已提交
1212
	.globl	sys32_exit_group_wrapper
L
Linus Torvalds 已提交
1213 1214 1215 1216
sys32_exit_group_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_exit_group		# branch to system call

H
Heiko Carstens 已提交
1217
	.globl	sys32_set_tid_address_wrapper
L
Linus Torvalds 已提交
1218 1219 1220 1221
sys32_set_tid_address_wrapper:
	llgtr	%r2,%r2			# int *
	jg	sys_set_tid_address	# branch to system call

H
Heiko Carstens 已提交
1222
	.globl	sys_epoll_create_wrapper
L
Linus Torvalds 已提交
1223 1224 1225 1226
sys_epoll_create_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_epoll_create	# branch to system call

H
Heiko Carstens 已提交
1227
	.globl	sys_epoll_ctl_wrapper
L
Linus Torvalds 已提交
1228 1229 1230 1231 1232 1233 1234
sys_epoll_ctl_wrapper:
	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

H
Heiko Carstens 已提交
1235
	.globl	sys_epoll_wait_wrapper
L
Linus Torvalds 已提交
1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257
sys_epoll_wait_wrapper:
	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

	.globl	sys32_lookup_dcookie_wrapper
sys32_lookup_dcookie_wrapper:
	sllg	%r2,%r2,32		# get high word of 64bit dcookie
	or	%r2,%r3			# get low word of 64bit dcookie
	llgtr	%r3,%r4			# char *
	llgfr	%r4,%r5			# size_t
	jg	sys_lookup_dcookie

	.globl	sys32_fadvise64_wrapper
sys32_fadvise64_wrapper:
	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
1258
	jg	sys32_fadvise64
L
Linus Torvalds 已提交
1259 1260 1261 1262

	.globl	sys32_fadvise64_64_wrapper
sys32_fadvise64_64_wrapper:
	llgtr	%r2,%r2			# struct fadvise64_64_args *
1263
	jg	sys32_fadvise64_64
L
Linus Torvalds 已提交
1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295

	.globl	sys32_clock_settime_wrapper
sys32_clock_settime_wrapper:
	lgfr	%r2,%r2			# clockid_t (int)
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_clock_settime

	.globl	sys32_clock_gettime_wrapper
sys32_clock_gettime_wrapper:
	lgfr	%r2,%r2			# clockid_t (int)
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_clock_gettime

	.globl	sys32_clock_getres_wrapper
sys32_clock_getres_wrapper:
	lgfr	%r2,%r2			# clockid_t (int)
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_clock_getres

	.globl	sys32_clock_nanosleep_wrapper
sys32_clock_nanosleep_wrapper:
	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

	.globl	sys32_timer_create_wrapper
sys32_timer_create_wrapper:
	lgfr	%r2,%r2			# timer_t (int)
	llgtr	%r3,%r3			# struct compat_sigevent *
	llgtr	%r4,%r4			# timer_t *
1296
	jg	compat_sys_timer_create
L
Linus Torvalds 已提交
1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447

	.globl	sys32_timer_settime_wrapper
sys32_timer_settime_wrapper:
	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

	.globl	sys32_timer_gettime_wrapper
sys32_timer_gettime_wrapper:
	lgfr	%r2,%r2			# timer_t (int)
	llgtr	%r3,%r3			# struct compat_itimerspec *
	jg	compat_sys_timer_gettime

	.globl	sys32_timer_getoverrun_wrapper
sys32_timer_getoverrun_wrapper:
	lgfr	%r2,%r2			# timer_t (int)
	jg	sys_timer_getoverrun

	.globl	sys32_timer_delete_wrapper
sys32_timer_delete_wrapper:
	lgfr	%r2,%r2			# timer_t (int)
	jg	sys_timer_delete

	.globl	sys32_io_setup_wrapper
sys32_io_setup_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# u32 *
	jg	compat_sys_io_setup

	.globl	sys32_io_destroy_wrapper
sys32_io_destroy_wrapper:
	llgfr	%r2,%r2			# (aio_context_t) u32
	jg	sys_io_destroy

	.globl	sys32_io_getevents_wrapper
sys32_io_getevents_wrapper:
	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

	.globl	sys32_io_submit_wrapper
sys32_io_submit_wrapper:
	llgfr	%r2,%r2			# (aio_context_t) u32
	lgfr	%r3,%r3			# long
	llgtr	%r4,%r4			# struct iocb **
	jg	compat_sys_io_submit

	.globl	sys32_io_cancel_wrapper
sys32_io_cancel_wrapper:
	llgfr	%r2,%r2			# (aio_context_t) u32
	llgtr	%r3,%r3			# struct iocb *
	llgtr	%r4,%r4			# struct io_event *
	jg	sys_io_cancel

	.globl compat_sys_statfs64_wrapper
compat_sys_statfs64_wrapper:
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# compat_size_t
	llgtr	%r4,%r4			# struct compat_statfs64 *
	jg	compat_sys_statfs64

	.globl compat_sys_fstatfs64_wrapper
compat_sys_fstatfs64_wrapper:
	llgfr	%r2,%r2			# unsigned int fd
	llgfr	%r3,%r3			# compat_size_t
	llgtr	%r4,%r4			# struct compat_statfs64 *
	jg	compat_sys_fstatfs64

	.globl	compat_sys_mq_open_wrapper
compat_sys_mq_open_wrapper:
	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

	.globl	sys32_mq_unlink_wrapper
sys32_mq_unlink_wrapper:
	llgtr	%r2,%r2			# const char *
	jg	sys_mq_unlink

	.globl	compat_sys_mq_timedsend_wrapper
compat_sys_mq_timedsend_wrapper:
	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

	.globl	compat_sys_mq_timedreceive_wrapper
compat_sys_mq_timedreceive_wrapper:
	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

	.globl	compat_sys_mq_notify_wrapper
compat_sys_mq_notify_wrapper:
	lgfr	%r2,%r2			# mqd_t
	llgtr	%r3,%r3			# struct compat_sigevent *
	jg	compat_sys_mq_notify

	.globl	compat_sys_mq_getsetattr_wrapper
compat_sys_mq_getsetattr_wrapper:
	lgfr	%r2,%r2			# mqd_t
	llgtr	%r3,%r3			# struct compat_mq_attr *
	llgtr	%r4,%r4			# struct compat_mq_attr *
	jg	compat_sys_mq_getsetattr

	.globl	compat_sys_add_key_wrapper
compat_sys_add_key_wrapper:
	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

	.globl	compat_sys_request_key_wrapper
compat_sys_request_key_wrapper:
	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

	.globl	sys32_remap_file_pages_wrapper
sys32_remap_file_pages_wrapper:
	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

	.globl	compat_sys_waitid_wrapper
compat_sys_waitid_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# pid_t
	llgtr	%r4,%r4			# siginfo_emu31_t *
	lgfr	%r5,%r5			# int
	llgtr	%r6,%r6			# struct rusage_emu31 *
	jg	compat_sys_waitid
H
Heiko Carstens 已提交
1448 1449 1450 1451 1452 1453 1454 1455

	.globl	compat_sys_kexec_load_wrapper
compat_sys_kexec_load_wrapper:
	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
1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481

	.globl	sys_ioprio_set_wrapper
sys_ioprio_set_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	jg	sys_ioprio_set

	.globl	sys_ioprio_get_wrapper
sys_ioprio_get_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_ioprio_get

	.globl	sys_inotify_add_watch_wrapper
sys_inotify_add_watch_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# u32
	jg	sys_inotify_add_watch

	.globl	sys_inotify_rm_watch_wrapper
sys_inotify_rm_watch_wrapper:
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# u32
	jg	sys_inotify_rm_watch
1482 1483 1484

	.globl compat_sys_openat_wrapper
compat_sys_openat_wrapper:
1485
	llgfr	%r2,%r2			# unsigned int
1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	lgfr	%r5,%r5			# int
	jg	compat_sys_openat

	.globl sys_mkdirat_wrapper
sys_mkdirat_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	jg	sys_mkdirat

	.globl sys_mknodat_wrapper
sys_mknodat_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	llgfr	%r5,%r5			# unsigned int
	jg	sys_mknodat

	.globl sys_fchownat_wrapper
sys_fchownat_wrapper:
	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

	.globl compat_sys_futimesat_wrapper
compat_sys_futimesat_wrapper:
1517
	llgfr	%r2,%r2			# unsigned int
1518 1519 1520 1521
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# struct timeval *
	jg	compat_sys_futimesat

1522 1523
	.globl sys32_fstatat64_wrapper
sys32_fstatat64_wrapper:
1524
	llgfr	%r2,%r2			# unsigned int
1525
	llgtr	%r3,%r3			# char *
H
Heiko Carstens 已提交
1526
	llgtr	%r4,%r4			# struct stat64 *
1527
	lgfr	%r5,%r5			# int
1528
	jg	sys32_fstatat64
1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550

	.globl sys_unlinkat_wrapper
sys_unlinkat_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	jg	sys_unlinkat

	.globl sys_renameat_wrapper
sys_renameat_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# const char *
	jg	sys_renameat

	.globl sys_linkat_wrapper
sys_linkat_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# const char *
1551
	lgfr	%r6,%r6			# int
1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601
	jg	sys_linkat

	.globl sys_symlinkat_wrapper
sys_symlinkat_wrapper:
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# const char *
	jg	sys_symlinkat

	.globl sys_readlinkat_wrapper
sys_readlinkat_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	llgtr	%r4,%r4			# char *
	lgfr	%r5,%r5			# int
	jg	sys_readlinkat

	.globl sys_fchmodat_wrapper
sys_fchmodat_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# mode_t
	jg	sys_fchmodat

	.globl sys_faccessat_wrapper
sys_faccessat_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	jg	sys_faccessat

	.globl compat_sys_pselect6_wrapper
compat_sys_pselect6_wrapper:
	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

	.globl compat_sys_ppoll_wrapper
compat_sys_ppoll_wrapper:
	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
1602 1603 1604 1605 1606

	.globl sys_unshare_wrapper
sys_unshare_wrapper:
	llgfr	%r2,%r2			# unsigned long
	jg	sys_unshare
1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648

	.globl compat_sys_set_robust_list_wrapper
compat_sys_set_robust_list_wrapper:
	llgtr	%r2,%r2			# struct compat_robust_list_head *
	llgfr	%r3,%r3			# size_t
	jg	compat_sys_set_robust_list

	.globl compat_sys_get_robust_list_wrapper
compat_sys_get_robust_list_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# compat_uptr_t_t *
	llgtr	%r4,%r4			# compat_size_t *
	jg	compat_sys_get_robust_list

	.globl sys_splice_wrapper
sys_splice_wrapper:
	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

	.globl	sys_sync_file_range_wrapper
sys_sync_file_range_wrapper:
	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

	.globl	sys_tee_wrapper
sys_tee_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgfr	%r4,%r4			# size_t
	llgfr	%r5,%r5			# unsigned int
	jg	sys_tee
1649 1650 1651 1652 1653 1654 1655 1656

	.globl compat_sys_vmsplice_wrapper
compat_sys_vmsplice_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# compat_iovec *
	llgfr	%r4,%r4			# unsigned int
	llgfr	%r5,%r5			# unsigned int
	jg	compat_sys_vmsplice
1657 1658 1659 1660 1661 1662

	.globl	sys_getcpu_wrapper
sys_getcpu_wrapper:
	llgtr	%r2,%r2			# unsigned *
	llgtr	%r3,%r3			# unsigned *
	llgtr	%r4,%r4			# struct getcpu_cache *
P
Paul Mundt 已提交
1663
	jg	sys_getcpu
1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674

	.globl	compat_sys_epoll_pwait_wrapper
compat_sys_epoll_pwait_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct compat_epoll_event *
	lgfr	%r4,%r4			# int
	lgfr	%r5,%r5			# int
	llgtr	%r6,%r6			# compat_sigset_t *
	llgf	%r0,164(%r15)		# compat_size_t
	stg	%r0,160(%r15)
	jg	compat_sys_epoll_pwait
H
Heiko Carstens 已提交
1675 1676 1677 1678 1679 1680

	.globl	compat_sys_utimes_wrapper
compat_sys_utimes_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct compat_timeval *
	jg	compat_sys_utimes
H
Heiko Carstens 已提交
1681 1682 1683 1684 1685 1686 1687 1688

	.globl	compat_sys_utimensat_wrapper
compat_sys_utimensat_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# struct compat_timespec *
	lgfr	%r5,%r5			# int
	jg	compat_sys_utimensat
1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700

	.globl	compat_sys_signalfd_wrapper
compat_sys_signalfd_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# compat_sigset_t *
	llgfr	%r4,%r4			# compat_size_t
	jg	compat_sys_signalfd

	.globl	sys_eventfd_wrapper
sys_eventfd_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_eventfd
1701 1702 1703 1704 1705 1706 1707 1708 1709 1710

	.globl	sys_fallocate_wrapper
sys_fallocate_wrapper:
	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
1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730

	.globl	sys_timerfd_create_wrapper
sys_timerfd_create_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_timerfd_create

	.globl	compat_sys_timerfd_settime_wrapper
compat_sys_timerfd_settime_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# struct compat_itimerspec *
	llgtr	%r5,%r5			# struct compat_itimerspec *
	jg	compat_sys_timerfd_settime

	.globl	compat_sys_timerfd_gettime_wrapper
compat_sys_timerfd_gettime_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct compat_itimerspec *
	jg	compat_sys_timerfd_gettime
H
Heiko Carstens 已提交
1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767

	.globl compat_sys_signalfd4_wrapper
compat_sys_signalfd4_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# compat_sigset_t *
	llgfr	%r4,%r4			# compat_size_t
	lgfr	%r5,%r5			# int
	jg	compat_sys_signalfd4

	.globl sys_eventfd2_wrapper
sys_eventfd2_wrapper:
	llgfr	%r2,%r2			# unsigned int
	lgfr	%r3,%r3			# int
	jg	sys_eventfd2

	.globl	sys_inotify_init1_wrapper
sys_inotify_init1_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_inotify_init1

	.globl	sys_pipe2_wrapper
sys_pipe2_wrapper:
	llgtr	%r2,%r2			# u32 *
	lgfr	%r3,%r3			# int
	jg	sys_pipe2		# branch to system call

	.globl	sys_dup3_wrapper
sys_dup3_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	lgfr	%r4,%r4			# int
	jg	sys_dup3		# branch to system call

	.globl	sys_epoll_create1_wrapper
sys_epoll_create1_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_epoll_create1	# branch to system call
1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805

	.globl	sys32_readahead_wrapper
sys32_readahead_wrapper:
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# u32
	llgfr	%r4,%r4			# u32
	lgfr	%r5,%r5			# s32
	jg	sys32_readahead		# branch to system call

	.globl	sys32_sendfile64_wrapper
sys32_sendfile64_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# compat_loff_t *
	lgfr	%r5,%r5			# s32
	jg	sys32_sendfile64	# branch to system call

	.globl	sys_tkill_wrapper
sys_tkill_wrapper:
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# int
	jg	sys_tkill		# branch to system call

	.globl	sys_tgkill_wrapper
sys_tgkill_wrapper:
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# pid_t
	lgfr	%r4,%r4			# int
	jg	sys_tgkill		# branch to system call

	.globl	compat_sys_keyctl_wrapper
compat_sys_keyctl_wrapper:
	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
1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823

	.globl	compat_sys_preadv_wrapper
compat_sys_preadv_wrapper:
	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

	.globl	compat_sys_pwritev_wrapper
compat_sys_pwritev_wrapper:
	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
1824 1825 1826 1827 1828 1829 1830 1831

	.globl	compat_sys_rt_tgsigqueueinfo_wrapper
compat_sys_rt_tgsigqueueinfo_wrapper:
	lgfr	%r2,%r2			# compat_pid_t
	lgfr	%r3,%r3			# compat_pid_t
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# struct compat_siginfo *
	jg	compat_sys_rt_tgsigqueueinfo_wrapper # branch to system call
1832

1833 1834 1835
	.globl	sys_perf_event_open_wrapper
sys_perf_event_open_wrapper:
	llgtr	%r2,%r2			# const struct perf_event_attr *
1836 1837 1838 1839
	lgfr	%r3,%r3			# pid_t
	lgfr	%r4,%r4			# int
	lgfr	%r5,%r5			# int
	llgfr	%r6,%r6			# unsigned long
1840
	jg	sys_perf_event_open	# branch to system call
1841 1842 1843 1844 1845 1846 1847 1848

	.globl	sys_clone_wrapper
sys_clone_wrapper:
	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
1849 1850 1851 1852 1853 1854 1855

	.globl	sys32_execve_wrapper
sys32_execve_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# compat_uptr_t *
	llgtr	%r4,%r4			# compat_uptr_t *
	jg	sys32_execve		# branch to system call
1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879

	.globl	sys_fanotify_init_wrapper
sys_fanotify_init_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	jg	sys_fanotify_init	# branch to system call

	.globl	sys_fanotify_mark_wrapper
sys_fanotify_mark_wrapper:
	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

	.globl	sys_prlimit64_wrapper
sys_prlimit64_wrapper:
	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
1880 1881 1882 1883 1884 1885 1886 1887 1888

	.globl	sys_name_to_handle_at_wrapper
sys_name_to_handle_at_wrapper:
	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
1889 1890 1891 1892 1893 1894 1895

	.globl	compat_sys_open_by_handle_at_wrapper
compat_sys_open_by_handle_at_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct file_handle __user *
	lgfr	%r4,%r4			# int
	jg	compat_sys_open_by_handle_at
1896 1897 1898 1899 1900 1901

	.globl	compat_sys_clock_adjtime_wrapper
compat_sys_clock_adjtime_wrapper:
	lgfr	%r2,%r2			# clockid_t (int)
	llgtr	%r3,%r3			# struct compat_timex __user *
	jg	compat_sys_clock_adjtime
H
Heiko Carstens 已提交
1902 1903 1904 1905 1906

	.globl	sys_syncfs_wrapper
sys_syncfs_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_syncfs
1907 1908 1909 1910 1911 1912

	.globl	sys_setns_wrapper
sys_setns_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_setns