compat_wrapper.S 42.7 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_open_wrapper)
L
Linus Torvalds 已提交
28 29 30 31 32
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	jg	sys_open		# branch to system call

33
ENTRY(sys32_close_wrapper)
L
Linus Torvalds 已提交
34 35 36
	llgfr	%r2,%r2			# unsigned int
	jg	sys_close		# branch to system call

37
ENTRY(sys32_creat_wrapper)
L
Linus Torvalds 已提交
38 39 40 41
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_creat		# branch to system call

42
ENTRY(sys32_link_wrapper)
L
Linus Torvalds 已提交
43 44 45 46
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_link		# branch to system call

47
ENTRY(sys32_unlink_wrapper)
L
Linus Torvalds 已提交
48 49 50
	llgtr	%r2,%r2			# const char *
	jg	sys_unlink		# branch to system call

51
ENTRY(sys32_chdir_wrapper)
L
Linus Torvalds 已提交
52 53 54
	llgtr	%r2,%r2			# const char *
	jg	sys_chdir		# branch to system call

55
ENTRY(sys32_time_wrapper)
L
Linus Torvalds 已提交
56 57 58
	llgtr	%r2,%r2			# int *
	jg	compat_sys_time		# branch to system call

59
ENTRY(sys32_mknod_wrapper)
L
Linus Torvalds 已提交
60
	llgtr	%r2,%r2			# const char *
H
Heiko Carstens 已提交
61
	lgfr	%r3,%r3			# int
L
Linus Torvalds 已提交
62 63 64
	llgfr	%r4,%r4			# dev
	jg	sys_mknod		# branch to system call

65
ENTRY(sys32_chmod_wrapper)
L
Linus Torvalds 已提交
66 67 68 69
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# mode_t
	jg	sys_chmod		# branch to system call

70
ENTRY(sys32_lchown16_wrapper)
L
Linus Torvalds 已提交
71
	llgtr	%r2,%r2			# const char *
H
Heiko Carstens 已提交
72 73
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
	llgfr	%r4,%r4			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
74 75
	jg	sys32_lchown16		# branch to system call

76
ENTRY(sys32_lseek_wrapper)
L
Linus Torvalds 已提交
77 78 79 80 81
	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 已提交
82
#sys32_getpid_wrapper				# void
L
Linus Torvalds 已提交
83

84
ENTRY(sys32_mount_wrapper)
L
Linus Torvalds 已提交
85 86 87 88 89 90 91
	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

92
ENTRY(sys32_oldumount_wrapper)
L
Linus Torvalds 已提交
93 94 95
	llgtr	%r2,%r2			# char *
	jg	sys_oldumount		# branch to system call

96
ENTRY(sys32_setuid16_wrapper)
H
Heiko Carstens 已提交
97
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
98 99
	jg	sys32_setuid16		# branch to system call

H
Heiko Carstens 已提交
100
#sys32_getuid16_wrapper			# void
L
Linus Torvalds 已提交
101

102
ENTRY(sys32_ptrace_wrapper)
L
Linus Torvalds 已提交
103 104 105 106
	lgfr	%r2,%r2			# long
	lgfr	%r3,%r3			# long
	llgtr	%r4,%r4			# long
	llgfr	%r5,%r5			# long
R
Roland McGrath 已提交
107
	jg	compat_sys_ptrace	# branch to system call
L
Linus Torvalds 已提交
108

109
ENTRY(sys32_alarm_wrapper)
L
Linus Torvalds 已提交
110 111 112
	llgfr	%r2,%r2			# unsigned int
	jg	sys_alarm		# branch to system call

113
ENTRY(compat_sys_utime_wrapper)
L
Linus Torvalds 已提交
114 115 116 117
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct compat_utimbuf *
	jg	compat_sys_utime	# branch to system call

118
ENTRY(sys32_access_wrapper)
L
Linus Torvalds 已提交
119 120 121 122
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_access		# branch to system call

123
ENTRY(sys32_nice_wrapper)
L
Linus Torvalds 已提交
124 125 126
	lgfr	%r2,%r2			# int
	jg	sys_nice		# branch to system call

H
Heiko Carstens 已提交
127
#sys32_sync_wrapper			# void
L
Linus Torvalds 已提交
128

129
ENTRY(sys32_kill_wrapper)
L
Linus Torvalds 已提交
130 131 132 133
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_kill		# branch to system call

134
ENTRY(sys32_rename_wrapper)
L
Linus Torvalds 已提交
135 136 137 138
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_rename		# branch to system call

139
ENTRY(sys32_mkdir_wrapper)
L
Linus Torvalds 已提交
140 141 142 143
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_mkdir		# branch to system call

144
ENTRY(sys32_rmdir_wrapper)
L
Linus Torvalds 已提交
145 146 147
	llgtr	%r2,%r2			# const char *
	jg	sys_rmdir		# branch to system call

148
ENTRY(sys32_dup_wrapper)
L
Linus Torvalds 已提交
149 150 151
	llgfr	%r2,%r2			# unsigned int
	jg	sys_dup			# branch to system call

152
ENTRY(sys32_pipe_wrapper)
L
Linus Torvalds 已提交
153 154 155
	llgtr	%r2,%r2			# u32 *
	jg	sys_pipe		# branch to system call

156
ENTRY(compat_sys_times_wrapper)
L
Linus Torvalds 已提交
157 158 159
	llgtr	%r2,%r2			# struct compat_tms *
	jg	compat_sys_times	# branch to system call

160
ENTRY(sys32_brk_wrapper)
L
Linus Torvalds 已提交
161 162 163
	llgtr	%r2,%r2			# unsigned long
	jg	sys_brk			# branch to system call

164
ENTRY(sys32_setgid16_wrapper)
H
Heiko Carstens 已提交
165
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
166 167
	jg	sys32_setgid16		# branch to system call

H
Heiko Carstens 已提交
168
#sys32_getgid16_wrapper			# void
L
Linus Torvalds 已提交
169

170
ENTRY(sys32_signal_wrapper)
H
Heiko Carstens 已提交
171
	lgfr	%r2,%r2			# int
L
Linus Torvalds 已提交
172 173 174
	llgtr	%r3,%r3			# __sighandler_t
	jg	sys_signal

H
Heiko Carstens 已提交
175
#sys32_geteuid16_wrapper		# void
L
Linus Torvalds 已提交
176

H
Heiko Carstens 已提交
177
#sys32_getegid16_wrapper		# void
L
Linus Torvalds 已提交
178

179
ENTRY(sys32_acct_wrapper)
L
Linus Torvalds 已提交
180 181 182
	llgtr	%r2,%r2			# char *
	jg	sys_acct		# branch to system call

183
ENTRY(sys32_umount_wrapper)
L
Linus Torvalds 已提交
184 185 186 187
	llgtr	%r2,%r2			# char *
	lgfr	%r3,%r3			# int
	jg	sys_umount		# branch to system call

188
ENTRY(compat_sys_ioctl_wrapper)
L
Linus Torvalds 已提交
189 190 191 192 193
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	llgfr	%r4,%r4			# unsigned int
	jg	compat_sys_ioctl	# branch to system call

194
ENTRY(compat_sys_fcntl_wrapper)
L
Linus Torvalds 已提交
195
	llgfr	%r2,%r2			# unsigned int
H
Heiko Carstens 已提交
196
	llgfr	%r3,%r3			# unsigned int
L
Linus Torvalds 已提交
197 198 199
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_fcntl	# branch to system call

200
ENTRY(sys32_setpgid_wrapper)
L
Linus Torvalds 已提交
201 202 203 204
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# pid_t
	jg	sys_setpgid		# branch to system call

205
ENTRY(sys32_umask_wrapper)
L
Linus Torvalds 已提交
206 207 208
	lgfr	%r2,%r2			# int
	jg	sys_umask		# branch to system call

209
ENTRY(sys32_chroot_wrapper)
L
Linus Torvalds 已提交
210 211 212
	llgtr	%r2,%r2			# char *
	jg	sys_chroot		# branch to system call

213
ENTRY(sys32_ustat_wrapper)
H
Heiko Carstens 已提交
214
	llgfr	%r2,%r2			# dev_t
L
Linus Torvalds 已提交
215
	llgtr	%r3,%r3			# struct ustat *
C
Christoph Hellwig 已提交
216
	jg	compat_sys_ustat
L
Linus Torvalds 已提交
217

218
ENTRY(sys32_dup2_wrapper)
L
Linus Torvalds 已提交
219 220 221 222
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	jg	sys_dup2		# branch to system call

H
Heiko Carstens 已提交
223
#sys32_getppid_wrapper			# void
L
Linus Torvalds 已提交
224

H
Heiko Carstens 已提交
225
#sys32_getpgrp_wrapper			# void
L
Linus Torvalds 已提交
226

H
Heiko Carstens 已提交
227
#sys32_setsid_wrapper			# void
L
Linus Torvalds 已提交
228

229
ENTRY(sys32_sigaction_wrapper)
H
Heiko Carstens 已提交
230
	lgfr	%r2,%r2			# int
L
Linus Torvalds 已提交
231 232 233 234
	llgtr	%r3,%r3			# const struct old_sigaction *
	llgtr	%r4,%r4			# struct old_sigaction32 *
	jg	sys32_sigaction		# branch to system call

235
ENTRY(sys32_setreuid16_wrapper)
H
Heiko Carstens 已提交
236 237
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
238 239
	jg	sys32_setreuid16	# branch to system call

240
ENTRY(sys32_setregid16_wrapper)
H
Heiko Carstens 已提交
241 242
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
	llgfr	%r3,%r3			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
243 244
	jg	sys32_setregid16	# branch to system call

245
ENTRY(sys_sigsuspend_wrapper)
246 247 248 249
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgfr	%r4,%r4			# old_sigset_t
	jg	sys_sigsuspend
L
Linus Torvalds 已提交
250

251
ENTRY(compat_sys_sigpending_wrapper)
L
Linus Torvalds 已提交
252 253 254
	llgtr	%r2,%r2			# compat_old_sigset_t *
	jg	compat_sys_sigpending	# branch to system call

255
ENTRY(sys32_sethostname_wrapper)
L
Linus Torvalds 已提交
256 257 258 259
	llgtr	%r2,%r2			# char *
	lgfr	%r3,%r3			# int
	jg	sys_sethostname		# branch to system call

260
ENTRY(compat_sys_setrlimit_wrapper)
L
Linus Torvalds 已提交
261 262 263 264
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct rlimit_emu31 *
	jg	compat_sys_setrlimit	# branch to system call

265
ENTRY(compat_sys_old_getrlimit_wrapper)
L
Linus Torvalds 已提交
266 267 268 269
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct rlimit_emu31 *
	jg	compat_sys_old_getrlimit # branch to system call

270
ENTRY(compat_sys_getrlimit_wrapper)
L
Linus Torvalds 已提交
271 272 273 274
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct rlimit_emu31 *
	jg	compat_sys_getrlimit	# branch to system call

275
ENTRY(sys32_mmap2_wrapper)
L
Linus Torvalds 已提交
276 277 278
	llgtr	%r2,%r2			# struct mmap_arg_struct_emu31 *
	jg	sys32_mmap2			# branch to system call

279
ENTRY(compat_sys_getrusage_wrapper)
L
Linus Torvalds 已提交
280 281 282 283
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct rusage_emu31 *
	jg	compat_sys_getrusage	# branch to system call

284
ENTRY(compat_sys_gettimeofday_wrapper)
L
Linus Torvalds 已提交
285 286
	llgtr	%r2,%r2			# struct timeval_emu31 *
	llgtr	%r3,%r3			# struct timezone *
287
	jg	compat_sys_gettimeofday	# branch to system call
L
Linus Torvalds 已提交
288

289
ENTRY(compat_sys_settimeofday_wrapper)
L
Linus Torvalds 已提交
290 291
	llgtr	%r2,%r2			# struct timeval_emu31 *
	llgtr	%r3,%r3			# struct timezone *
292
	jg	compat_sys_settimeofday	# branch to system call
L
Linus Torvalds 已提交
293

294
ENTRY(sys32_getgroups16_wrapper)
L
Linus Torvalds 已提交
295 296 297 298
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# __kernel_old_gid_emu31_t *
	jg	sys32_getgroups16	# branch to system call

299
ENTRY(sys32_setgroups16_wrapper)
L
Linus Torvalds 已提交
300 301 302 303
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# __kernel_old_gid_emu31_t *
	jg	sys32_setgroups16	# branch to system call

304
ENTRY(sys32_symlink_wrapper)
L
Linus Torvalds 已提交
305 306 307 308
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_symlink		# branch to system call

309
ENTRY(sys32_readlink_wrapper)
L
Linus Torvalds 已提交
310 311 312 313 314
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# char *
	lgfr	%r4,%r4			# int
	jg	sys_readlink		# branch to system call

315
ENTRY(sys32_uselib_wrapper)
L
Linus Torvalds 已提交
316 317 318
	llgtr	%r2,%r2			# const char *
	jg	sys_uselib		# branch to system call

319
ENTRY(sys32_swapon_wrapper)
L
Linus Torvalds 已提交
320 321 322 323
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_swapon		# branch to system call

324
ENTRY(sys32_reboot_wrapper)
L
Linus Torvalds 已提交
325 326 327 328 329 330
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgfr	%r4,%r4			# unsigned int
	llgtr	%r5,%r5			# void *
	jg	sys_reboot		# branch to system call

331
ENTRY(old32_readdir_wrapper)
L
Linus Torvalds 已提交
332 333 334 335 336
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# void *
	llgfr	%r4,%r4			# unsigned int
	jg	compat_sys_old_readdir	# branch to system call

337
ENTRY(old32_mmap_wrapper)
L
Linus Torvalds 已提交
338 339 340
	llgtr	%r2,%r2			# struct mmap_arg_struct_emu31 *
	jg	old32_mmap		# branch to system call

341
ENTRY(sys32_munmap_wrapper)
L
Linus Torvalds 已提交
342
	llgfr	%r2,%r2			# unsigned long
H
Heiko Carstens 已提交
343
	llgfr	%r3,%r3			# size_t
L
Linus Torvalds 已提交
344 345
	jg	sys_munmap		# branch to system call

346
ENTRY(sys32_truncate_wrapper)
L
Linus Torvalds 已提交
347
	llgtr	%r2,%r2			# const char *
348
	lgfr	%r3,%r3			# long
L
Linus Torvalds 已提交
349 350
	jg	sys_truncate		# branch to system call

351
ENTRY(sys32_ftruncate_wrapper)
L
Linus Torvalds 已提交
352 353 354 355
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned long
	jg	sys_ftruncate		# branch to system call

356
ENTRY(sys32_fchmod_wrapper)
L
Linus Torvalds 已提交
357 358 359 360
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# mode_t
	jg	sys_fchmod		# branch to system call

361
ENTRY(sys32_fchown16_wrapper)
L
Linus Torvalds 已提交
362 363 364 365 366
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# compat_uid_t
	llgfr	%r4,%r4			# compat_uid_t
	jg	sys32_fchown16		# branch to system call

367
ENTRY(sys32_getpriority_wrapper)
L
Linus Torvalds 已提交
368 369 370 371
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_getpriority		# branch to system call

372
ENTRY(sys32_setpriority_wrapper)
L
Linus Torvalds 已提交
373 374 375 376 377
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	jg	sys_setpriority		# branch to system call

378
ENTRY(compat_sys_statfs_wrapper)
L
Linus Torvalds 已提交
379 380 381 382
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct compat_statfs *
	jg	compat_sys_statfs	# branch to system call

383
ENTRY(compat_sys_fstatfs_wrapper)
L
Linus Torvalds 已提交
384 385 386 387
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct compat_statfs *
	jg	compat_sys_fstatfs	# branch to system call

388
ENTRY(compat_sys_socketcall_wrapper)
L
Linus Torvalds 已提交
389 390 391 392
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# u32 *
	jg	compat_sys_socketcall	# branch to system call

393
ENTRY(sys32_syslog_wrapper)
L
Linus Torvalds 已提交
394 395 396 397 398
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	lgfr	%r4,%r4			# int
	jg	sys_syslog		# branch to system call

399
ENTRY(compat_sys_setitimer_wrapper)
L
Linus Torvalds 已提交
400 401 402 403 404
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct itimerval_emu31 *
	llgtr	%r4,%r4			# struct itimerval_emu31 *
	jg	compat_sys_setitimer	# branch to system call

405
ENTRY(compat_sys_getitimer_wrapper)
L
Linus Torvalds 已提交
406 407 408 409
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct itimerval_emu31 *
	jg	compat_sys_getitimer	# branch to system call

410
ENTRY(compat_sys_newstat_wrapper)
L
Linus Torvalds 已提交
411 412 413 414
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat_emu31 *
	jg	compat_sys_newstat	# branch to system call

415
ENTRY(compat_sys_newlstat_wrapper)
L
Linus Torvalds 已提交
416 417 418 419
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat_emu31 *
	jg	compat_sys_newlstat	# branch to system call

420
ENTRY(compat_sys_newfstat_wrapper)
L
Linus Torvalds 已提交
421 422 423 424
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct stat_emu31 *
	jg	compat_sys_newfstat	# branch to system call

H
Heiko Carstens 已提交
425
#sys32_vhangup_wrapper			# void
L
Linus Torvalds 已提交
426

427
ENTRY(compat_sys_wait4_wrapper)
L
Linus Torvalds 已提交
428 429 430 431 432 433
	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

434
ENTRY(sys32_swapoff_wrapper)
L
Linus Torvalds 已提交
435 436 437
	llgtr	%r2,%r2			# const char *
	jg	sys_swapoff		# branch to system call

438
ENTRY(compat_sys_sysinfo_wrapper)
L
Linus Torvalds 已提交
439
	llgtr	%r2,%r2			# struct sysinfo_emu31 *
440
	jg	compat_sys_sysinfo	# branch to system call
L
Linus Torvalds 已提交
441

442
ENTRY(sys32_ipc_wrapper)
L
Linus Torvalds 已提交
443 444 445 446 447 448 449
	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

450
ENTRY(sys32_fsync_wrapper)
L
Linus Torvalds 已提交
451 452 453
	llgfr	%r2,%r2			# unsigned int
	jg	sys_fsync		# branch to system call

H
Heiko Carstens 已提交
454
#sys32_sigreturn_wrapper		# done in sigreturn_glue
L
Linus Torvalds 已提交
455

H
Heiko Carstens 已提交
456
#sys32_clone_wrapper			# done in clone_glue
L
Linus Torvalds 已提交
457

458
ENTRY(sys32_setdomainname_wrapper)
L
Linus Torvalds 已提交
459 460 461 462
	llgtr	%r2,%r2			# char *
	lgfr	%r3,%r3			# int
	jg	sys_setdomainname	# branch to system call

463
ENTRY(sys32_newuname_wrapper)
L
Linus Torvalds 已提交
464
	llgtr	%r2,%r2			# struct new_utsname *
465
	jg	sys_newuname		# branch to system call
L
Linus Torvalds 已提交
466

467
ENTRY(compat_sys_adjtimex_wrapper)
468 469
	llgtr	%r2,%r2			# struct compat_timex *
	jg	compat_sys_adjtimex	# branch to system call
L
Linus Torvalds 已提交
470

471
ENTRY(sys32_mprotect_wrapper)
L
Linus Torvalds 已提交
472 473 474 475 476
	llgtr	%r2,%r2			# unsigned long (actually pointer
	llgfr	%r3,%r3			# size_t
	llgfr	%r4,%r4			# unsigned long
	jg	sys_mprotect		# branch to system call

477
ENTRY(compat_sys_sigprocmask_wrapper)
L
Linus Torvalds 已提交
478 479 480 481 482
	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

483
ENTRY(sys_init_module_wrapper)
L
Linus Torvalds 已提交
484 485 486
	llgtr	%r2,%r2			# void *
	llgfr	%r3,%r3			# unsigned long
	llgtr	%r4,%r4			# char *
487
	jg	sys_init_module		# branch to system call
L
Linus Torvalds 已提交
488

489
ENTRY(sys_delete_module_wrapper)
L
Linus Torvalds 已提交
490 491
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# unsigned int
492
	jg	sys_delete_module	# branch to system call
L
Linus Torvalds 已提交
493

494
ENTRY(sys32_quotactl_wrapper)
L
Linus Torvalds 已提交
495 496 497 498 499 500
	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

501
ENTRY(sys32_getpgid_wrapper)
L
Linus Torvalds 已提交
502 503 504
	lgfr	%r2,%r2			# pid_t
	jg	sys_getpgid		# branch to system call

505
ENTRY(sys32_fchdir_wrapper)
L
Linus Torvalds 已提交
506 507 508
	llgfr	%r2,%r2			# unsigned int
	jg	sys_fchdir		# branch to system call

509
ENTRY(sys32_bdflush_wrapper)
L
Linus Torvalds 已提交
510 511 512 513
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# long
	jg	sys_bdflush		# branch to system call

514
ENTRY(sys32_sysfs_wrapper)
L
Linus Torvalds 已提交
515 516 517 518 519
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	jg	sys_sysfs		# branch to system call

520
ENTRY(sys32_personality_wrapper)
521
	llgfr	%r2,%r2			# unsigned int
522
	jg	sys_s390_personality	# branch to system call
L
Linus Torvalds 已提交
523

524
ENTRY(sys32_setfsuid16_wrapper)
H
Heiko Carstens 已提交
525
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
L
Linus Torvalds 已提交
526 527
	jg	sys32_setfsuid16	# branch to system call

528
ENTRY(sys32_setfsgid16_wrapper)
H
Heiko Carstens 已提交
529
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
530 531
	jg	sys32_setfsgid16	# branch to system call

532
ENTRY(sys32_llseek_wrapper)
L
Linus Torvalds 已提交
533 534 535 536 537 538 539
	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

540
ENTRY(sys32_getdents_wrapper)
L
Linus Torvalds 已提交
541 542 543 544 545
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# void *
	llgfr	%r4,%r4			# unsigned int
	jg	compat_sys_getdents	# branch to system call

546
ENTRY(compat_sys_select_wrapper)
L
Linus Torvalds 已提交
547 548 549 550 551 552 553
	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

554
ENTRY(sys32_flock_wrapper)
L
Linus Torvalds 已提交
555 556 557 558
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	jg	sys_flock		# branch to system call

559
ENTRY(sys32_msync_wrapper)
L
Linus Torvalds 已提交
560 561 562 563 564
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	lgfr	%r4,%r4			# int
	jg	sys_msync		# branch to system call

565
ENTRY(compat_sys_readv_wrapper)
L
Linus Torvalds 已提交
566 567 568 569 570
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const struct compat_iovec *
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_readv	# branch to system call

571
ENTRY(compat_sys_writev_wrapper)
L
Linus Torvalds 已提交
572 573 574 575 576
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const struct compat_iovec *
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_writev	# branch to system call

577
ENTRY(sys32_getsid_wrapper)
L
Linus Torvalds 已提交
578 579 580
	lgfr	%r2,%r2			# pid_t
	jg	sys_getsid		# branch to system call

581
ENTRY(sys32_fdatasync_wrapper)
L
Linus Torvalds 已提交
582 583 584
	llgfr	%r2,%r2			# unsigned int
	jg	sys_fdatasync		# branch to system call

585
ENTRY(sys32_mlock_wrapper)
L
Linus Torvalds 已提交
586 587 588 589
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	jg	sys_mlock		# branch to system call

590
ENTRY(sys32_munlock_wrapper)
L
Linus Torvalds 已提交
591 592 593 594
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	jg	sys_munlock		# branch to system call

595
ENTRY(sys32_mlockall_wrapper)
L
Linus Torvalds 已提交
596 597 598
	lgfr	%r2,%r2			# int
	jg	sys_mlockall		# branch to system call

H
Heiko Carstens 已提交
599
#sys32_munlockall_wrapper		# void
L
Linus Torvalds 已提交
600

601
ENTRY(sys32_sched_setparam_wrapper)
L
Linus Torvalds 已提交
602 603 604 605
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# struct sched_param *
	jg	sys_sched_setparam	# branch to system call

606
ENTRY(sys32_sched_getparam_wrapper)
L
Linus Torvalds 已提交
607 608 609 610
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# struct sched_param *
	jg	sys_sched_getparam	# branch to system call

611
ENTRY(sys32_sched_setscheduler_wrapper)
L
Linus Torvalds 已提交
612 613 614 615 616
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# struct sched_param *
	jg	sys_sched_setscheduler	# branch to system call

617
ENTRY(sys32_sched_getscheduler_wrapper)
L
Linus Torvalds 已提交
618 619 620
	lgfr	%r2,%r2			# pid_t
	jg	sys_sched_getscheduler	# branch to system call

H
Heiko Carstens 已提交
621
#sys32_sched_yield_wrapper		# void
L
Linus Torvalds 已提交
622

623
ENTRY(sys32_sched_get_priority_max_wrapper)
L
Linus Torvalds 已提交
624 625 626
	lgfr	%r2,%r2			# int
	jg	sys_sched_get_priority_max	# branch to system call

627
ENTRY(sys32_sched_get_priority_min_wrapper)
L
Linus Torvalds 已提交
628 629 630
	lgfr	%r2,%r2			# int
	jg	sys_sched_get_priority_min	# branch to system call

631
ENTRY(sys32_sched_rr_get_interval_wrapper)
L
Linus Torvalds 已提交
632 633 634 635
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	sys32_sched_rr_get_interval	# branch to system call

636
ENTRY(compat_sys_nanosleep_wrapper)
L
Linus Torvalds 已提交
637 638 639 640
	llgtr	%r2,%r2			# struct compat_timespec *
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_nanosleep		# branch to system call

641
ENTRY(sys32_mremap_wrapper)
L
Linus Torvalds 已提交
642 643 644 645 646 647 648
	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

649
ENTRY(sys32_setresuid16_wrapper)
H
Heiko Carstens 已提交
650 651 652
	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 已提交
653 654
	jg	sys32_setresuid16	# branch to system call

655
ENTRY(sys32_getresuid16_wrapper)
L
Linus Torvalds 已提交
656 657 658 659 660
	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

661
ENTRY(sys32_poll_wrapper)
H
Heiko Carstens 已提交
662 663
	llgtr	%r2,%r2			# struct pollfd *
	llgfr	%r3,%r3			# unsigned int
664
	lgfr	%r4,%r4			# int
L
Linus Torvalds 已提交
665 666
	jg	sys_poll		# branch to system call

667
ENTRY(sys32_setresgid16_wrapper)
H
Heiko Carstens 已提交
668 669 670
	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 已提交
671 672
	jg	sys32_setresgid16	# branch to system call

673
ENTRY(sys32_getresgid16_wrapper)
L
Linus Torvalds 已提交
674 675 676 677 678
	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

679
ENTRY(sys32_prctl_wrapper)
L
Linus Torvalds 已提交
680 681 682 683 684 685 686
	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 已提交
687
#sys32_rt_sigreturn_wrapper		# done in rt_sigreturn_glue
L
Linus Torvalds 已提交
688

689
ENTRY(sys32_rt_sigaction_wrapper)
L
Linus Torvalds 已提交
690 691 692 693 694 695
	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

696
ENTRY(sys32_rt_sigprocmask_wrapper)
L
Linus Torvalds 已提交
697 698 699 700 701 702
	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

703
ENTRY(sys32_rt_sigpending_wrapper)
L
Linus Torvalds 已提交
704 705 706 707
	llgtr	%r2,%r2			# sigset_emu31 *
	llgfr	%r3,%r3			# size_t
	jg	sys32_rt_sigpending	# branch to system call

708
ENTRY(compat_sys_rt_sigtimedwait_wrapper)
L
Linus Torvalds 已提交
709 710 711 712 713 714
	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

715
ENTRY(sys32_rt_sigqueueinfo_wrapper)
L
Linus Torvalds 已提交
716 717 718 719 720
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# siginfo_emu31_t *
	jg	sys32_rt_sigqueueinfo	# branch to system call

721
ENTRY(compat_sys_rt_sigsuspend_wrapper)
722 723 724
	llgtr	%r2,%r2			# compat_sigset_t *
	llgfr	%r3,%r3			# compat_size_t
	jg	compat_sys_rt_sigsuspend
L
Linus Torvalds 已提交
725

726
ENTRY(sys32_pread64_wrapper)
L
Linus Torvalds 已提交
727 728 729 730 731 732 733
	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

734
ENTRY(sys32_pwrite64_wrapper)
L
Linus Torvalds 已提交
735 736 737 738 739 740 741
	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

742
ENTRY(sys32_chown16_wrapper)
L
Linus Torvalds 已提交
743
	llgtr	%r2,%r2			# const char *
H
Heiko Carstens 已提交
744 745
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
	llgfr	%r4,%r4			# __kernel_old_gid_emu31_t
L
Linus Torvalds 已提交
746 747
	jg	sys32_chown16		# branch to system call

748
ENTRY(sys32_getcwd_wrapper)
L
Linus Torvalds 已提交
749 750 751 752
	llgtr	%r2,%r2			# char *
	llgfr	%r3,%r3			# unsigned long
	jg	sys_getcwd		# branch to system call

753
ENTRY(sys32_capget_wrapper)
L
Linus Torvalds 已提交
754 755 756 757
	llgtr	%r2,%r2			# cap_user_header_t
	llgtr	%r3,%r3			# cap_user_data_t
	jg	sys_capget		# branch to system call

758
ENTRY(sys32_capset_wrapper)
L
Linus Torvalds 已提交
759 760 761 762
	llgtr	%r2,%r2			# cap_user_header_t
	llgtr	%r3,%r3			# const cap_user_data_t
	jg	sys_capset		# branch to system call

763
ENTRY(sys32_sigaltstack_wrapper)
H
Heiko Carstens 已提交
764 765
	llgtr	%r2,%r2			# const stack_emu31_t *
	llgtr	%r3,%r3			# stack_emu31_t *
L
Linus Torvalds 已提交
766 767
	jg	sys32_sigaltstack

768
ENTRY(sys32_sendfile_wrapper)
L
Linus Torvalds 已提交
769 770 771 772 773 774
	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 已提交
775
#sys32_vfork_wrapper			# done in vfork_glue
L
Linus Torvalds 已提交
776

777
ENTRY(sys32_truncate64_wrapper)
L
Linus Torvalds 已提交
778 779 780 781 782
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	jg	sys32_truncate64	# branch to system call

783
ENTRY(sys32_ftruncate64_wrapper)
L
Linus Torvalds 已提交
784 785 786 787 788
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	jg	sys32_ftruncate64	# branch to system call

789
ENTRY(sys32_lchown_wrapper)
L
Linus Torvalds 已提交
790 791 792 793 794
	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 已提交
795 796 797 798
#sys32_getuid_wrapper			# void
#sys32_getgid_wrapper			# void
#sys32_geteuid_wrapper			# void
#sys32_getegid_wrapper			# void
L
Linus Torvalds 已提交
799

800
ENTRY(sys32_setreuid_wrapper)
L
Linus Torvalds 已提交
801 802 803 804
	llgfr	%r2,%r2			# uid_t
	llgfr	%r3,%r3			# uid_t
	jg	sys_setreuid		# branch to system call

805
ENTRY(sys32_setregid_wrapper)
L
Linus Torvalds 已提交
806 807 808 809
	llgfr	%r2,%r2			# gid_t
	llgfr	%r3,%r3			# gid_t
	jg	sys_setregid		# branch to system call

810
ENTRY(sys32_getgroups_wrapper)
L
Linus Torvalds 已提交
811 812 813 814
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# gid_t *
	jg	sys_getgroups		# branch to system call

815
ENTRY(sys32_setgroups_wrapper)
L
Linus Torvalds 已提交
816 817 818 819
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# gid_t *
	jg	sys_setgroups		# branch to system call

820
ENTRY(sys32_fchown_wrapper)
L
Linus Torvalds 已提交
821 822 823 824 825
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_fchown		# branch to system call

826
ENTRY(sys32_setresuid_wrapper)
L
Linus Torvalds 已提交
827 828 829 830 831
	llgfr	%r2,%r2			# uid_t
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# uid_t
	jg	sys_setresuid		# branch to system call

832
ENTRY(sys32_getresuid_wrapper)
L
Linus Torvalds 已提交
833 834 835 836 837
	llgtr	%r2,%r2			# uid_t *
	llgtr	%r3,%r3			# uid_t *
	llgtr	%r4,%r4			# uid_t *
	jg	sys_getresuid		# branch to system call

838
ENTRY(sys32_setresgid_wrapper)
L
Linus Torvalds 已提交
839 840 841 842 843
	llgfr	%r2,%r2			# gid_t
	llgfr	%r3,%r3			# gid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_setresgid		# branch to system call

844
ENTRY(sys32_getresgid_wrapper)
L
Linus Torvalds 已提交
845 846 847 848 849
	llgtr	%r2,%r2			# gid_t *
	llgtr	%r3,%r3			# gid_t *
	llgtr	%r4,%r4			# gid_t *
	jg	sys_getresgid		# branch to system call

850
ENTRY(sys32_chown_wrapper)
L
Linus Torvalds 已提交
851 852 853 854 855
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_chown		# branch to system call

856
ENTRY(sys32_setuid_wrapper)
L
Linus Torvalds 已提交
857 858 859
	llgfr	%r2,%r2			# uid_t
	jg	sys_setuid		# branch to system call

860
ENTRY(sys32_setgid_wrapper)
L
Linus Torvalds 已提交
861 862 863
	llgfr	%r2,%r2			# gid_t
	jg	sys_setgid		# branch to system call

864
ENTRY(sys32_setfsuid_wrapper)
L
Linus Torvalds 已提交
865 866 867
	llgfr	%r2,%r2			# uid_t
	jg	sys_setfsuid		# branch to system call

868
ENTRY(sys32_setfsgid_wrapper)
L
Linus Torvalds 已提交
869 870 871
	llgfr	%r2,%r2			# gid_t
	jg	sys_setfsgid		# branch to system call

872
ENTRY(sys32_pivot_root_wrapper)
L
Linus Torvalds 已提交
873 874 875 876
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_pivot_root		# branch to system call

877
ENTRY(sys32_mincore_wrapper)
L
Linus Torvalds 已提交
878 879 880 881 882
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	llgtr	%r4,%r4			# unsigned char *
	jg	sys_mincore		# branch to system call

883
ENTRY(sys32_madvise_wrapper)
L
Linus Torvalds 已提交
884 885 886 887 888
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	lgfr	%r4,%r4			# int
	jg	sys_madvise		# branch to system call

889
ENTRY(sys32_getdents64_wrapper)
L
Linus Torvalds 已提交
890 891 892 893 894
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# void *
	llgfr	%r4,%r4			# unsigned int
	jg	sys_getdents64		# branch to system call

895
ENTRY(compat_sys_fcntl64_wrapper)
L
Linus Torvalds 已提交
896
	llgfr	%r2,%r2			# unsigned int
H
Heiko Carstens 已提交
897
	llgfr	%r3,%r3			# unsigned int
L
Linus Torvalds 已提交
898 899 900
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_fcntl64	# branch to system call

901
ENTRY(sys32_stat64_wrapper)
L
Linus Torvalds 已提交
902 903 904 905
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat64 *
	jg	sys32_stat64		# branch to system call

906
ENTRY(sys32_lstat64_wrapper)
L
Linus Torvalds 已提交
907 908 909 910
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat64 *
	jg	sys32_lstat64		# branch to system call

911
ENTRY(sys32_stime_wrapper)
L
Linus Torvalds 已提交
912 913 914
	llgtr	%r2,%r2			# long *
	jg	compat_sys_stime	# branch to system call

915
ENTRY(sys32_sysctl_wrapper)
916 917
	llgtr	%r2,%r2 		# struct compat_sysctl_args *
	jg	compat_sys_sysctl
L
Linus Torvalds 已提交
918

919
ENTRY(sys32_fstat64_wrapper)
L
Linus Torvalds 已提交
920 921 922 923
	llgfr	%r2,%r2			# unsigned long
	llgtr	%r3,%r3			# struct stat64 *
	jg	sys32_fstat64		# branch to system call

924
ENTRY(compat_sys_futex_wrapper)
L
Linus Torvalds 已提交
925 926 927 928 929 930 931 932 933
	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

934
ENTRY(sys32_setxattr_wrapper)
L
Linus Torvalds 已提交
935 936 937 938 939 940 941
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	lgfr	%r6,%r6			# int
	jg	sys_setxattr

942
ENTRY(sys32_lsetxattr_wrapper)
L
Linus Torvalds 已提交
943 944 945 946 947 948 949
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	lgfr	%r6,%r6			# int
	jg	sys_lsetxattr

950
ENTRY(sys32_fsetxattr_wrapper)
L
Linus Torvalds 已提交
951 952 953 954 955 956 957
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	lgfr	%r6,%r6			# int
	jg	sys_fsetxattr

958
ENTRY(sys32_getxattr_wrapper)
L
Linus Torvalds 已提交
959 960 961 962 963 964
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	jg	sys_getxattr

965
ENTRY(sys32_lgetxattr_wrapper)
L
Linus Torvalds 已提交
966 967 968 969 970 971
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	jg	sys_lgetxattr

972
ENTRY(sys32_fgetxattr_wrapper)
L
Linus Torvalds 已提交
973 974 975 976 977 978
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# void *
	llgfr	%r5,%r5			# size_t
	jg	sys_fgetxattr

979
ENTRY(sys32_listxattr_wrapper)
L
Linus Torvalds 已提交
980 981 982 983 984
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	jg	sys_listxattr

985
ENTRY(sys32_llistxattr_wrapper)
L
Linus Torvalds 已提交
986 987 988 989 990
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	jg	sys_llistxattr

991
ENTRY(sys32_flistxattr_wrapper)
L
Linus Torvalds 已提交
992 993 994 995 996
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	jg	sys_flistxattr

997
ENTRY(sys32_removexattr_wrapper)
L
Linus Torvalds 已提交
998 999 1000 1001
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	jg	sys_removexattr

1002
ENTRY(sys32_lremovexattr_wrapper)
L
Linus Torvalds 已提交
1003 1004 1005 1006
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	jg	sys_lremovexattr

1007
ENTRY(sys32_fremovexattr_wrapper)
L
Linus Torvalds 已提交
1008 1009 1010 1011
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	jg	sys_fremovexattr

1012
ENTRY(sys32_sched_setaffinity_wrapper)
L
Linus Torvalds 已提交
1013 1014 1015 1016 1017
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned int
	llgtr	%r4,%r4			# unsigned long *
	jg	compat_sys_sched_setaffinity

1018
ENTRY(sys32_sched_getaffinity_wrapper)
L
Linus Torvalds 已提交
1019 1020 1021 1022 1023
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned int
	llgtr	%r4,%r4			# unsigned long *
	jg	compat_sys_sched_getaffinity

1024
ENTRY(sys32_exit_group_wrapper)
L
Linus Torvalds 已提交
1025 1026 1027
	lgfr	%r2,%r2			# int
	jg	sys_exit_group		# branch to system call

1028
ENTRY(sys32_set_tid_address_wrapper)
L
Linus Torvalds 已提交
1029 1030 1031
	llgtr	%r2,%r2			# int *
	jg	sys_set_tid_address	# branch to system call

1032
ENTRY(sys_epoll_create_wrapper)
L
Linus Torvalds 已提交
1033 1034 1035
	lgfr	%r2,%r2			# int
	jg	sys_epoll_create	# branch to system call

1036
ENTRY(sys_epoll_ctl_wrapper)
L
Linus Torvalds 已提交
1037 1038 1039 1040 1041 1042
	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

1043
ENTRY(sys_epoll_wait_wrapper)
L
Linus Torvalds 已提交
1044 1045 1046 1047 1048 1049
	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

1050
ENTRY(sys32_lookup_dcookie_wrapper)
L
Linus Torvalds 已提交
1051 1052 1053 1054 1055 1056
	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

1057
ENTRY(sys32_fadvise64_wrapper)
L
Linus Torvalds 已提交
1058 1059 1060 1061 1062
	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
1063
	jg	sys32_fadvise64
L
Linus Torvalds 已提交
1064

1065
ENTRY(sys32_fadvise64_64_wrapper)
L
Linus Torvalds 已提交
1066
	llgtr	%r2,%r2			# struct fadvise64_64_args *
1067
	jg	sys32_fadvise64_64
L
Linus Torvalds 已提交
1068

1069
ENTRY(sys32_clock_settime_wrapper)
L
Linus Torvalds 已提交
1070 1071 1072 1073
	lgfr	%r2,%r2			# clockid_t (int)
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_clock_settime

1074
ENTRY(sys32_clock_gettime_wrapper)
L
Linus Torvalds 已提交
1075 1076 1077 1078
	lgfr	%r2,%r2			# clockid_t (int)
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_clock_gettime

1079
ENTRY(sys32_clock_getres_wrapper)
L
Linus Torvalds 已提交
1080 1081 1082 1083
	lgfr	%r2,%r2			# clockid_t (int)
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_clock_getres

1084
ENTRY(sys32_clock_nanosleep_wrapper)
L
Linus Torvalds 已提交
1085 1086 1087 1088 1089 1090
	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

1091
ENTRY(sys32_timer_create_wrapper)
L
Linus Torvalds 已提交
1092 1093 1094
	lgfr	%r2,%r2			# timer_t (int)
	llgtr	%r3,%r3			# struct compat_sigevent *
	llgtr	%r4,%r4			# timer_t *
1095
	jg	compat_sys_timer_create
L
Linus Torvalds 已提交
1096

1097
ENTRY(sys32_timer_settime_wrapper)
L
Linus Torvalds 已提交
1098 1099 1100 1101 1102 1103
	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

1104
ENTRY(sys32_timer_gettime_wrapper)
L
Linus Torvalds 已提交
1105 1106 1107 1108
	lgfr	%r2,%r2			# timer_t (int)
	llgtr	%r3,%r3			# struct compat_itimerspec *
	jg	compat_sys_timer_gettime

1109
ENTRY(sys32_timer_getoverrun_wrapper)
L
Linus Torvalds 已提交
1110 1111 1112
	lgfr	%r2,%r2			# timer_t (int)
	jg	sys_timer_getoverrun

1113
ENTRY(sys32_timer_delete_wrapper)
L
Linus Torvalds 已提交
1114 1115 1116
	lgfr	%r2,%r2			# timer_t (int)
	jg	sys_timer_delete

1117
ENTRY(sys32_io_setup_wrapper)
L
Linus Torvalds 已提交
1118 1119 1120 1121
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# u32 *
	jg	compat_sys_io_setup

1122
ENTRY(sys32_io_destroy_wrapper)
L
Linus Torvalds 已提交
1123 1124 1125
	llgfr	%r2,%r2			# (aio_context_t) u32
	jg	sys_io_destroy

1126
ENTRY(sys32_io_getevents_wrapper)
L
Linus Torvalds 已提交
1127 1128 1129 1130 1131 1132 1133
	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

1134
ENTRY(sys32_io_submit_wrapper)
L
Linus Torvalds 已提交
1135 1136 1137 1138 1139
	llgfr	%r2,%r2			# (aio_context_t) u32
	lgfr	%r3,%r3			# long
	llgtr	%r4,%r4			# struct iocb **
	jg	compat_sys_io_submit

1140
ENTRY(sys32_io_cancel_wrapper)
L
Linus Torvalds 已提交
1141 1142 1143 1144 1145
	llgfr	%r2,%r2			# (aio_context_t) u32
	llgtr	%r3,%r3			# struct iocb *
	llgtr	%r4,%r4			# struct io_event *
	jg	sys_io_cancel

1146
ENTRY(compat_sys_statfs64_wrapper)
L
Linus Torvalds 已提交
1147 1148 1149 1150 1151
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# compat_size_t
	llgtr	%r4,%r4			# struct compat_statfs64 *
	jg	compat_sys_statfs64

1152
ENTRY(compat_sys_fstatfs64_wrapper)
L
Linus Torvalds 已提交
1153 1154 1155 1156 1157
	llgfr	%r2,%r2			# unsigned int fd
	llgfr	%r3,%r3			# compat_size_t
	llgtr	%r4,%r4			# struct compat_statfs64 *
	jg	compat_sys_fstatfs64

1158
ENTRY(compat_sys_mq_open_wrapper)
L
Linus Torvalds 已提交
1159 1160 1161 1162 1163 1164
	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

1165
ENTRY(sys32_mq_unlink_wrapper)
L
Linus Torvalds 已提交
1166 1167 1168
	llgtr	%r2,%r2			# const char *
	jg	sys_mq_unlink

1169
ENTRY(compat_sys_mq_timedsend_wrapper)
L
Linus Torvalds 已提交
1170 1171 1172 1173 1174 1175 1176
	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

1177
ENTRY(compat_sys_mq_timedreceive_wrapper)
L
Linus Torvalds 已提交
1178 1179 1180 1181 1182 1183 1184
	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

1185
ENTRY(compat_sys_mq_notify_wrapper)
L
Linus Torvalds 已提交
1186 1187 1188 1189
	lgfr	%r2,%r2			# mqd_t
	llgtr	%r3,%r3			# struct compat_sigevent *
	jg	compat_sys_mq_notify

1190
ENTRY(compat_sys_mq_getsetattr_wrapper)
L
Linus Torvalds 已提交
1191 1192 1193 1194 1195
	lgfr	%r2,%r2			# mqd_t
	llgtr	%r3,%r3			# struct compat_mq_attr *
	llgtr	%r4,%r4			# struct compat_mq_attr *
	jg	compat_sys_mq_getsetattr

1196
ENTRY(compat_sys_add_key_wrapper)
L
Linus Torvalds 已提交
1197 1198 1199 1200 1201 1202 1203
	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

1204
ENTRY(compat_sys_request_key_wrapper)
L
Linus Torvalds 已提交
1205 1206 1207 1208 1209 1210
	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

1211
ENTRY(sys32_remap_file_pages_wrapper)
L
Linus Torvalds 已提交
1212 1213 1214 1215 1216 1217 1218
	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

1219
ENTRY(compat_sys_waitid_wrapper)
L
Linus Torvalds 已提交
1220 1221 1222 1223 1224 1225
	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 已提交
1226

1227
ENTRY(compat_sys_kexec_load_wrapper)
H
Heiko Carstens 已提交
1228 1229 1230 1231 1232
	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
1233

1234
ENTRY(sys_ioprio_set_wrapper)
1235 1236 1237 1238 1239
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	jg	sys_ioprio_set

1240
ENTRY(sys_ioprio_get_wrapper)
1241 1242 1243 1244
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_ioprio_get

1245
ENTRY(sys_inotify_add_watch_wrapper)
1246 1247 1248 1249 1250
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# u32
	jg	sys_inotify_add_watch

1251
ENTRY(sys_inotify_rm_watch_wrapper)
1252 1253 1254
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# u32
	jg	sys_inotify_rm_watch
1255

1256
ENTRY(compat_sys_openat_wrapper)
1257
	llgfr	%r2,%r2			# unsigned int
1258 1259 1260 1261 1262
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	lgfr	%r5,%r5			# int
	jg	compat_sys_openat

1263
ENTRY(sys_mkdirat_wrapper)
1264 1265 1266 1267 1268
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	jg	sys_mkdirat

1269
ENTRY(sys_mknodat_wrapper)
1270 1271 1272 1273 1274 1275
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	llgfr	%r5,%r5			# unsigned int
	jg	sys_mknodat

1276
ENTRY(sys_fchownat_wrapper)
1277 1278 1279 1280 1281 1282 1283
	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

1284
ENTRY(compat_sys_futimesat_wrapper)
1285
	llgfr	%r2,%r2			# unsigned int
1286 1287 1288 1289
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# struct timeval *
	jg	compat_sys_futimesat

1290
ENTRY(sys32_fstatat64_wrapper)
1291
	llgfr	%r2,%r2			# unsigned int
1292
	llgtr	%r3,%r3			# char *
H
Heiko Carstens 已提交
1293
	llgtr	%r4,%r4			# struct stat64 *
1294
	lgfr	%r5,%r5			# int
1295
	jg	sys32_fstatat64
1296

1297
ENTRY(sys_unlinkat_wrapper)
1298 1299 1300 1301 1302
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	jg	sys_unlinkat

1303
ENTRY(sys_renameat_wrapper)
1304 1305 1306 1307 1308 1309
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# const char *
	jg	sys_renameat

1310
ENTRY(sys_linkat_wrapper)
1311 1312 1313 1314
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# const char *
1315
	lgfr	%r6,%r6			# int
1316 1317
	jg	sys_linkat

1318
ENTRY(sys_symlinkat_wrapper)
1319 1320 1321 1322 1323
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# const char *
	jg	sys_symlinkat

1324
ENTRY(sys_readlinkat_wrapper)
1325 1326 1327 1328 1329 1330
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	llgtr	%r4,%r4			# char *
	lgfr	%r5,%r5			# int
	jg	sys_readlinkat

1331
ENTRY(sys_fchmodat_wrapper)
1332 1333 1334 1335 1336
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# mode_t
	jg	sys_fchmodat

1337
ENTRY(sys_faccessat_wrapper)
1338 1339 1340 1341 1342
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const char *
	lgfr	%r4,%r4			# int
	jg	sys_faccessat

1343
ENTRY(compat_sys_pselect6_wrapper)
1344 1345 1346 1347 1348 1349 1350 1351 1352
	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

1353
ENTRY(compat_sys_ppoll_wrapper)
1354 1355 1356 1357 1358 1359
	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
1360

1361
ENTRY(sys_unshare_wrapper)
1362 1363
	llgfr	%r2,%r2			# unsigned long
	jg	sys_unshare
1364

1365
ENTRY(compat_sys_set_robust_list_wrapper)
1366 1367 1368 1369
	llgtr	%r2,%r2			# struct compat_robust_list_head *
	llgfr	%r3,%r3			# size_t
	jg	compat_sys_set_robust_list

1370
ENTRY(compat_sys_get_robust_list_wrapper)
1371 1372 1373 1374 1375
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# compat_uptr_t_t *
	llgtr	%r4,%r4			# compat_size_t *
	jg	compat_sys_get_robust_list

1376
ENTRY(sys_splice_wrapper)
1377 1378 1379 1380 1381 1382 1383 1384 1385
	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

1386
ENTRY(sys_sync_file_range_wrapper)
1387 1388 1389 1390 1391 1392 1393 1394
	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

1395
ENTRY(sys_tee_wrapper)
1396 1397 1398 1399 1400
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgfr	%r4,%r4			# size_t
	llgfr	%r5,%r5			# unsigned int
	jg	sys_tee
1401

1402
ENTRY(compat_sys_vmsplice_wrapper)
1403 1404 1405 1406 1407
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# compat_iovec *
	llgfr	%r4,%r4			# unsigned int
	llgfr	%r5,%r5			# unsigned int
	jg	compat_sys_vmsplice
1408

1409
ENTRY(sys_getcpu_wrapper)
1410 1411 1412
	llgtr	%r2,%r2			# unsigned *
	llgtr	%r3,%r3			# unsigned *
	llgtr	%r4,%r4			# struct getcpu_cache *
P
Paul Mundt 已提交
1413
	jg	sys_getcpu
1414

1415
ENTRY(compat_sys_epoll_pwait_wrapper)
1416 1417 1418 1419 1420 1421 1422 1423
	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 已提交
1424

1425
ENTRY(compat_sys_utimes_wrapper)
H
Heiko Carstens 已提交
1426 1427 1428
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct compat_timeval *
	jg	compat_sys_utimes
H
Heiko Carstens 已提交
1429

1430
ENTRY(compat_sys_utimensat_wrapper)
H
Heiko Carstens 已提交
1431 1432 1433 1434 1435
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# struct compat_timespec *
	lgfr	%r5,%r5			# int
	jg	compat_sys_utimensat
1436

1437
ENTRY(compat_sys_signalfd_wrapper)
1438 1439 1440 1441 1442
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# compat_sigset_t *
	llgfr	%r4,%r4			# compat_size_t
	jg	compat_sys_signalfd

1443
ENTRY(sys_eventfd_wrapper)
1444 1445
	llgfr	%r2,%r2			# unsigned int
	jg	sys_eventfd
1446

1447
ENTRY(sys_fallocate_wrapper)
1448 1449 1450 1451 1452 1453 1454
	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
1455

1456
ENTRY(sys_timerfd_create_wrapper)
1457 1458 1459 1460
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_timerfd_create

1461
ENTRY(compat_sys_timerfd_settime_wrapper)
1462 1463 1464 1465 1466 1467
	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

1468
ENTRY(compat_sys_timerfd_gettime_wrapper)
1469 1470 1471
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct compat_itimerspec *
	jg	compat_sys_timerfd_gettime
H
Heiko Carstens 已提交
1472

1473
ENTRY(compat_sys_signalfd4_wrapper)
H
Heiko Carstens 已提交
1474 1475 1476 1477 1478 1479
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# compat_sigset_t *
	llgfr	%r4,%r4			# compat_size_t
	lgfr	%r5,%r5			# int
	jg	compat_sys_signalfd4

1480
ENTRY(sys_eventfd2_wrapper)
H
Heiko Carstens 已提交
1481 1482 1483 1484
	llgfr	%r2,%r2			# unsigned int
	lgfr	%r3,%r3			# int
	jg	sys_eventfd2

1485
ENTRY(sys_inotify_init1_wrapper)
H
Heiko Carstens 已提交
1486 1487 1488
	lgfr	%r2,%r2			# int
	jg	sys_inotify_init1

1489
ENTRY(sys_pipe2_wrapper)
H
Heiko Carstens 已提交
1490 1491 1492 1493
	llgtr	%r2,%r2			# u32 *
	lgfr	%r3,%r3			# int
	jg	sys_pipe2		# branch to system call

1494
ENTRY(sys_dup3_wrapper)
H
Heiko Carstens 已提交
1495 1496 1497 1498 1499
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	lgfr	%r4,%r4			# int
	jg	sys_dup3		# branch to system call

1500
ENTRY(sys_epoll_create1_wrapper)
H
Heiko Carstens 已提交
1501 1502
	lgfr	%r2,%r2			# int
	jg	sys_epoll_create1	# branch to system call
1503

1504
ENTRY(sys32_readahead_wrapper)
1505 1506 1507 1508 1509 1510
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# u32
	llgfr	%r4,%r4			# u32
	lgfr	%r5,%r5			# s32
	jg	sys32_readahead		# branch to system call

1511
ENTRY(sys32_sendfile64_wrapper)
1512 1513 1514 1515 1516 1517
	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

1518
ENTRY(sys_tkill_wrapper)
1519 1520 1521 1522
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# int
	jg	sys_tkill		# branch to system call

1523
ENTRY(sys_tgkill_wrapper)
1524 1525 1526 1527 1528
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# pid_t
	lgfr	%r4,%r4			# int
	jg	sys_tgkill		# branch to system call

1529
ENTRY(compat_sys_keyctl_wrapper)
1530 1531 1532 1533 1534 1535
	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
1536

1537
ENTRY(compat_sys_preadv_wrapper)
1538 1539 1540 1541 1542 1543 1544
	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

1545
ENTRY(compat_sys_pwritev_wrapper)
1546 1547 1548 1549 1550 1551
	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
1552

1553
ENTRY(compat_sys_rt_tgsigqueueinfo_wrapper)
1554 1555 1556 1557 1558
	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
1559

1560
ENTRY(sys_perf_event_open_wrapper)
1561
	llgtr	%r2,%r2			# const struct perf_event_attr *
1562 1563 1564 1565
	lgfr	%r3,%r3			# pid_t
	lgfr	%r4,%r4			# int
	lgfr	%r5,%r5			# int
	llgfr	%r6,%r6			# unsigned long
1566
	jg	sys_perf_event_open	# branch to system call
1567

1568
ENTRY(sys_clone_wrapper)
1569 1570 1571 1572 1573
	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
1574

1575
ENTRY(sys32_execve_wrapper)
1576 1577 1578 1579
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# compat_uptr_t *
	llgtr	%r4,%r4			# compat_uptr_t *
	jg	sys32_execve		# branch to system call
1580

1581
ENTRY(sys_fanotify_init_wrapper)
1582 1583 1584 1585
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	jg	sys_fanotify_init	# branch to system call

1586
ENTRY(sys_fanotify_mark_wrapper)
1587 1588 1589 1590 1591 1592 1593 1594
	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

1595
ENTRY(sys_prlimit64_wrapper)
1596 1597 1598 1599 1600
	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
1601

1602
ENTRY(sys_name_to_handle_at_wrapper)
1603 1604 1605 1606 1607 1608
	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
1609

1610
ENTRY(compat_sys_open_by_handle_at_wrapper)
1611 1612 1613 1614
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct file_handle __user *
	lgfr	%r4,%r4			# int
	jg	compat_sys_open_by_handle_at
1615

1616
ENTRY(compat_sys_clock_adjtime_wrapper)
1617 1618 1619
	lgfr	%r2,%r2			# clockid_t (int)
	llgtr	%r3,%r3			# struct compat_timex __user *
	jg	compat_sys_clock_adjtime
H
Heiko Carstens 已提交
1620

1621
ENTRY(sys_syncfs_wrapper)
H
Heiko Carstens 已提交
1622 1623
	lgfr	%r2,%r2			# int
	jg	sys_syncfs
1624

1625
ENTRY(sys_setns_wrapper)
1626 1627 1628
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_setns
1629 1630 1631 1632 1633 1634 1635 1636 1637

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)
1638
	jg	compat_sys_process_vm_readv
1639 1640 1641 1642 1643 1644 1645 1646 1647

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)
1648
	jg	compat_sys_process_vm_writev
1649 1650 1651 1652 1653

ENTRY(sys_s390_runtime_instr_wrapper)
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_s390_runtime_instr