Merge tag 'dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[platform/adaptation/renesas_rcar/renesas_kernel.git] / arch / s390 / kernel / compat_wrapper.S
1 /*
2 *    wrapper for 31 bit compatible system calls.
3 *
4 *    Copyright IBM Corp. 2000, 2006
5 *    Author(s): Gerhard Tonn (ton@de.ibm.com),
6 *               Thomas Spatzier (tspat@de.ibm.com)
7 */
8
9 #include <linux/linkage.h>
10
11 ENTRY(sys32_exit_wrapper)
12         lgfr    %r2,%r2                 # int
13         jg      sys_exit                # branch to sys_exit
14
15 ENTRY(sys32_read_wrapper)
16         llgfr   %r2,%r2                 # unsigned int
17         llgtr   %r3,%r3                 # char *
18         llgfr   %r4,%r4                 # size_t
19         jg      sys32_read              # branch to sys_read
20
21 ENTRY(sys32_write_wrapper)
22         llgfr   %r2,%r2                 # unsigned int
23         llgtr   %r3,%r3                 # const char *
24         llgfr   %r4,%r4                 # size_t
25         jg      sys32_write             # branch to system call
26
27 ENTRY(sys32_open_wrapper)
28         llgtr   %r2,%r2                 # const char *
29         lgfr    %r3,%r3                 # int
30         lgfr    %r4,%r4                 # int
31         jg      sys_open                # branch to system call
32
33 ENTRY(sys32_close_wrapper)
34         llgfr   %r2,%r2                 # unsigned int
35         jg      sys_close               # branch to system call
36
37 ENTRY(sys32_creat_wrapper)
38         llgtr   %r2,%r2                 # const char *
39         lgfr    %r3,%r3                 # int
40         jg      sys_creat               # branch to system call
41
42 ENTRY(sys32_link_wrapper)
43         llgtr   %r2,%r2                 # const char *
44         llgtr   %r3,%r3                 # const char *
45         jg      sys_link                # branch to system call
46
47 ENTRY(sys32_unlink_wrapper)
48         llgtr   %r2,%r2                 # const char *
49         jg      sys_unlink              # branch to system call
50
51 ENTRY(sys32_chdir_wrapper)
52         llgtr   %r2,%r2                 # const char *
53         jg      sys_chdir               # branch to system call
54
55 ENTRY(sys32_time_wrapper)
56         llgtr   %r2,%r2                 # int *
57         jg      compat_sys_time         # branch to system call
58
59 ENTRY(sys32_mknod_wrapper)
60         llgtr   %r2,%r2                 # const char *
61         lgfr    %r3,%r3                 # int
62         llgfr   %r4,%r4                 # dev
63         jg      sys_mknod               # branch to system call
64
65 ENTRY(sys32_chmod_wrapper)
66         llgtr   %r2,%r2                 # const char *
67         llgfr   %r3,%r3                 # mode_t
68         jg      sys_chmod               # branch to system call
69
70 ENTRY(sys32_lchown16_wrapper)
71         llgtr   %r2,%r2                 # const char *
72         llgfr   %r3,%r3                 # __kernel_old_uid_emu31_t
73         llgfr   %r4,%r4                 # __kernel_old_uid_emu31_t
74         jg      sys32_lchown16          # branch to system call
75
76 ENTRY(sys32_lseek_wrapper)
77         llgfr   %r2,%r2                 # unsigned int
78         lgfr    %r3,%r3                 # off_t
79         llgfr   %r4,%r4                 # unsigned int
80         jg      sys_lseek               # branch to system call
81
82 #sys32_getpid_wrapper                           # void
83
84 ENTRY(sys32_mount_wrapper)
85         llgtr   %r2,%r2                 # char *
86         llgtr   %r3,%r3                 # char *
87         llgtr   %r4,%r4                 # char *
88         llgfr   %r5,%r5                 # unsigned long
89         llgtr   %r6,%r6                 # void *
90         jg      compat_sys_mount        # branch to system call
91
92 ENTRY(sys32_oldumount_wrapper)
93         llgtr   %r2,%r2                 # char *
94         jg      sys_oldumount           # branch to system call
95
96 ENTRY(sys32_setuid16_wrapper)
97         llgfr   %r2,%r2                 # __kernel_old_uid_emu31_t
98         jg      sys32_setuid16          # branch to system call
99
100 #sys32_getuid16_wrapper                 # void
101
102 ENTRY(sys32_ptrace_wrapper)
103         lgfr    %r2,%r2                 # long
104         lgfr    %r3,%r3                 # long
105         llgtr   %r4,%r4                 # long
106         llgfr   %r5,%r5                 # long
107         jg      compat_sys_ptrace       # branch to system call
108
109 ENTRY(sys32_alarm_wrapper)
110         llgfr   %r2,%r2                 # unsigned int
111         jg      sys_alarm               # branch to system call
112
113 ENTRY(compat_sys_utime_wrapper)
114         llgtr   %r2,%r2                 # char *
115         llgtr   %r3,%r3                 # struct compat_utimbuf *
116         jg      compat_sys_utime        # branch to system call
117
118 ENTRY(sys32_access_wrapper)
119         llgtr   %r2,%r2                 # const char *
120         lgfr    %r3,%r3                 # int
121         jg      sys_access              # branch to system call
122
123 ENTRY(sys32_nice_wrapper)
124         lgfr    %r2,%r2                 # int
125         jg      sys_nice                # branch to system call
126
127 #sys32_sync_wrapper                     # void
128
129 ENTRY(sys32_kill_wrapper)
130         lgfr    %r2,%r2                 # int
131         lgfr    %r3,%r3                 # int
132         jg      sys_kill                # branch to system call
133
134 ENTRY(sys32_rename_wrapper)
135         llgtr   %r2,%r2                 # const char *
136         llgtr   %r3,%r3                 # const char *
137         jg      sys_rename              # branch to system call
138
139 ENTRY(sys32_mkdir_wrapper)
140         llgtr   %r2,%r2                 # const char *
141         lgfr    %r3,%r3                 # int
142         jg      sys_mkdir               # branch to system call
143
144 ENTRY(sys32_rmdir_wrapper)
145         llgtr   %r2,%r2                 # const char *
146         jg      sys_rmdir               # branch to system call
147
148 ENTRY(sys32_dup_wrapper)
149         llgfr   %r2,%r2                 # unsigned int
150         jg      sys_dup                 # branch to system call
151
152 ENTRY(sys32_pipe_wrapper)
153         llgtr   %r2,%r2                 # u32 *
154         jg      sys_pipe                # branch to system call
155
156 ENTRY(compat_sys_times_wrapper)
157         llgtr   %r2,%r2                 # struct compat_tms *
158         jg      compat_sys_times        # branch to system call
159
160 ENTRY(sys32_brk_wrapper)
161         llgtr   %r2,%r2                 # unsigned long
162         jg      sys_brk                 # branch to system call
163
164 ENTRY(sys32_setgid16_wrapper)
165         llgfr   %r2,%r2                 # __kernel_old_gid_emu31_t
166         jg      sys32_setgid16          # branch to system call
167
168 #sys32_getgid16_wrapper                 # void
169
170 ENTRY(sys32_signal_wrapper)
171         lgfr    %r2,%r2                 # int
172         llgtr   %r3,%r3                 # __sighandler_t
173         jg      sys_signal
174
175 #sys32_geteuid16_wrapper                # void
176
177 #sys32_getegid16_wrapper                # void
178
179 ENTRY(sys32_acct_wrapper)
180         llgtr   %r2,%r2                 # char *
181         jg      sys_acct                # branch to system call
182
183 ENTRY(sys32_umount_wrapper)
184         llgtr   %r2,%r2                 # char *
185         lgfr    %r3,%r3                 # int
186         jg      sys_umount              # branch to system call
187
188 ENTRY(compat_sys_ioctl_wrapper)
189         llgfr   %r2,%r2                 # unsigned int
190         llgfr   %r3,%r3                 # unsigned int
191         llgfr   %r4,%r4                 # unsigned int
192         jg      compat_sys_ioctl        # branch to system call
193
194 ENTRY(compat_sys_fcntl_wrapper)
195         llgfr   %r2,%r2                 # unsigned int
196         llgfr   %r3,%r3                 # unsigned int
197         llgfr   %r4,%r4                 # unsigned long
198         jg      compat_sys_fcntl        # branch to system call
199
200 ENTRY(sys32_setpgid_wrapper)
201         lgfr    %r2,%r2                 # pid_t
202         lgfr    %r3,%r3                 # pid_t
203         jg      sys_setpgid             # branch to system call
204
205 ENTRY(sys32_umask_wrapper)
206         lgfr    %r2,%r2                 # int
207         jg      sys_umask               # branch to system call
208
209 ENTRY(sys32_chroot_wrapper)
210         llgtr   %r2,%r2                 # char *
211         jg      sys_chroot              # branch to system call
212
213 ENTRY(sys32_ustat_wrapper)
214         llgfr   %r2,%r2                 # dev_t
215         llgtr   %r3,%r3                 # struct ustat *
216         jg      compat_sys_ustat
217
218 ENTRY(sys32_dup2_wrapper)
219         llgfr   %r2,%r2                 # unsigned int
220         llgfr   %r3,%r3                 # unsigned int
221         jg      sys_dup2                # branch to system call
222
223 #sys32_getppid_wrapper                  # void
224
225 #sys32_getpgrp_wrapper                  # void
226
227 #sys32_setsid_wrapper                   # void
228
229 ENTRY(sys32_sigaction_wrapper)
230         lgfr    %r2,%r2                 # int
231         llgtr   %r3,%r3                 # const struct old_sigaction *
232         llgtr   %r4,%r4                 # struct old_sigaction32 *
233         jg      sys32_sigaction         # branch to system call
234
235 ENTRY(sys32_setreuid16_wrapper)
236         llgfr   %r2,%r2                 # __kernel_old_uid_emu31_t
237         llgfr   %r3,%r3                 # __kernel_old_uid_emu31_t
238         jg      sys32_setreuid16        # branch to system call
239
240 ENTRY(sys32_setregid16_wrapper)
241         llgfr   %r2,%r2                 # __kernel_old_gid_emu31_t
242         llgfr   %r3,%r3                 # __kernel_old_gid_emu31_t
243         jg      sys32_setregid16        # branch to system call
244
245 ENTRY(sys_sigsuspend_wrapper)
246         lgfr    %r2,%r2                 # int
247         lgfr    %r3,%r3                 # int
248         llgfr   %r4,%r4                 # old_sigset_t
249         jg      sys_sigsuspend
250
251 ENTRY(compat_sys_sigpending_wrapper)
252         llgtr   %r2,%r2                 # compat_old_sigset_t *
253         jg      compat_sys_sigpending   # branch to system call
254
255 ENTRY(sys32_sethostname_wrapper)
256         llgtr   %r2,%r2                 # char *
257         lgfr    %r3,%r3                 # int
258         jg      sys_sethostname         # branch to system call
259
260 ENTRY(compat_sys_setrlimit_wrapper)
261         llgfr   %r2,%r2                 # unsigned int
262         llgtr   %r3,%r3                 # struct rlimit_emu31 *
263         jg      compat_sys_setrlimit    # branch to system call
264
265 ENTRY(compat_sys_old_getrlimit_wrapper)
266         llgfr   %r2,%r2                 # unsigned int
267         llgtr   %r3,%r3                 # struct rlimit_emu31 *
268         jg      compat_sys_old_getrlimit # branch to system call
269
270 ENTRY(compat_sys_getrlimit_wrapper)
271         llgfr   %r2,%r2                 # unsigned int
272         llgtr   %r3,%r3                 # struct rlimit_emu31 *
273         jg      compat_sys_getrlimit    # branch to system call
274
275 ENTRY(sys32_mmap2_wrapper)
276         llgtr   %r2,%r2                 # struct mmap_arg_struct_emu31 *
277         jg      sys32_mmap2                     # branch to system call
278
279 ENTRY(compat_sys_getrusage_wrapper)
280         lgfr    %r2,%r2                 # int
281         llgtr   %r3,%r3                 # struct rusage_emu31 *
282         jg      compat_sys_getrusage    # branch to system call
283
284 ENTRY(compat_sys_gettimeofday_wrapper)
285         llgtr   %r2,%r2                 # struct timeval_emu31 *
286         llgtr   %r3,%r3                 # struct timezone *
287         jg      compat_sys_gettimeofday # branch to system call
288
289 ENTRY(compat_sys_settimeofday_wrapper)
290         llgtr   %r2,%r2                 # struct timeval_emu31 *
291         llgtr   %r3,%r3                 # struct timezone *
292         jg      compat_sys_settimeofday # branch to system call
293
294 ENTRY(sys32_getgroups16_wrapper)
295         lgfr    %r2,%r2                 # int
296         llgtr   %r3,%r3                 # __kernel_old_gid_emu31_t *
297         jg      sys32_getgroups16       # branch to system call
298
299 ENTRY(sys32_setgroups16_wrapper)
300         lgfr    %r2,%r2                 # int
301         llgtr   %r3,%r3                 # __kernel_old_gid_emu31_t *
302         jg      sys32_setgroups16       # branch to system call
303
304 ENTRY(sys32_symlink_wrapper)
305         llgtr   %r2,%r2                 # const char *
306         llgtr   %r3,%r3                 # const char *
307         jg      sys_symlink             # branch to system call
308
309 ENTRY(sys32_readlink_wrapper)
310         llgtr   %r2,%r2                 # const char *
311         llgtr   %r3,%r3                 # char *
312         lgfr    %r4,%r4                 # int
313         jg      sys_readlink            # branch to system call
314
315 ENTRY(sys32_uselib_wrapper)
316         llgtr   %r2,%r2                 # const char *
317         jg      sys_uselib              # branch to system call
318
319 ENTRY(sys32_swapon_wrapper)
320         llgtr   %r2,%r2                 # const char *
321         lgfr    %r3,%r3                 # int
322         jg      sys_swapon              # branch to system call
323
324 ENTRY(sys32_reboot_wrapper)
325         lgfr    %r2,%r2                 # int
326         lgfr    %r3,%r3                 # int
327         llgfr   %r4,%r4                 # unsigned int
328         llgtr   %r5,%r5                 # void *
329         jg      sys_reboot              # branch to system call
330
331 ENTRY(old32_readdir_wrapper)
332         llgfr   %r2,%r2                 # unsigned int
333         llgtr   %r3,%r3                 # void *
334         llgfr   %r4,%r4                 # unsigned int
335         jg      compat_sys_old_readdir  # branch to system call
336
337 ENTRY(old32_mmap_wrapper)
338         llgtr   %r2,%r2                 # struct mmap_arg_struct_emu31 *
339         jg      old32_mmap              # branch to system call
340
341 ENTRY(sys32_munmap_wrapper)
342         llgfr   %r2,%r2                 # unsigned long
343         llgfr   %r3,%r3                 # size_t
344         jg      sys_munmap              # branch to system call
345
346 ENTRY(sys32_truncate_wrapper)
347         llgtr   %r2,%r2                 # const char *
348         lgfr    %r3,%r3                 # long
349         jg      sys_truncate            # branch to system call
350
351 ENTRY(sys32_ftruncate_wrapper)
352         llgfr   %r2,%r2                 # unsigned int
353         llgfr   %r3,%r3                 # unsigned long
354         jg      sys_ftruncate           # branch to system call
355
356 ENTRY(sys32_fchmod_wrapper)
357         llgfr   %r2,%r2                 # unsigned int
358         llgfr   %r3,%r3                 # mode_t
359         jg      sys_fchmod              # branch to system call
360
361 ENTRY(sys32_fchown16_wrapper)
362         llgfr   %r2,%r2                 # unsigned int
363         llgfr   %r3,%r3                 # compat_uid_t
364         llgfr   %r4,%r4                 # compat_uid_t
365         jg      sys32_fchown16          # branch to system call
366
367 ENTRY(sys32_getpriority_wrapper)
368         lgfr    %r2,%r2                 # int
369         lgfr    %r3,%r3                 # int
370         jg      sys_getpriority         # branch to system call
371
372 ENTRY(sys32_setpriority_wrapper)
373         lgfr    %r2,%r2                 # int
374         lgfr    %r3,%r3                 # int
375         lgfr    %r4,%r4                 # int
376         jg      sys_setpriority         # branch to system call
377
378 ENTRY(compat_sys_statfs_wrapper)
379         llgtr   %r2,%r2                 # char *
380         llgtr   %r3,%r3                 # struct compat_statfs *
381         jg      compat_sys_statfs       # branch to system call
382
383 ENTRY(compat_sys_fstatfs_wrapper)
384         llgfr   %r2,%r2                 # unsigned int
385         llgtr   %r3,%r3                 # struct compat_statfs *
386         jg      compat_sys_fstatfs      # branch to system call
387
388 ENTRY(compat_sys_socketcall_wrapper)
389         lgfr    %r2,%r2                 # int
390         llgtr   %r3,%r3                 # u32 *
391         jg      compat_sys_socketcall   # branch to system call
392
393 ENTRY(sys32_syslog_wrapper)
394         lgfr    %r2,%r2                 # int
395         llgtr   %r3,%r3                 # char *
396         lgfr    %r4,%r4                 # int
397         jg      sys_syslog              # branch to system call
398
399 ENTRY(compat_sys_setitimer_wrapper)
400         lgfr    %r2,%r2                 # int
401         llgtr   %r3,%r3                 # struct itimerval_emu31 *
402         llgtr   %r4,%r4                 # struct itimerval_emu31 *
403         jg      compat_sys_setitimer    # branch to system call
404
405 ENTRY(compat_sys_getitimer_wrapper)
406         lgfr    %r2,%r2                 # int
407         llgtr   %r3,%r3                 # struct itimerval_emu31 *
408         jg      compat_sys_getitimer    # branch to system call
409
410 ENTRY(compat_sys_newstat_wrapper)
411         llgtr   %r2,%r2                 # char *
412         llgtr   %r3,%r3                 # struct stat_emu31 *
413         jg      compat_sys_newstat      # branch to system call
414
415 ENTRY(compat_sys_newlstat_wrapper)
416         llgtr   %r2,%r2                 # char *
417         llgtr   %r3,%r3                 # struct stat_emu31 *
418         jg      compat_sys_newlstat     # branch to system call
419
420 ENTRY(compat_sys_newfstat_wrapper)
421         llgfr   %r2,%r2                 # unsigned int
422         llgtr   %r3,%r3                 # struct stat_emu31 *
423         jg      compat_sys_newfstat     # branch to system call
424
425 #sys32_vhangup_wrapper                  # void
426
427 ENTRY(compat_sys_wait4_wrapper)
428         lgfr    %r2,%r2                 # pid_t
429         llgtr   %r3,%r3                 # unsigned int *
430         lgfr    %r4,%r4                 # int
431         llgtr   %r5,%r5                 # struct rusage *
432         jg      compat_sys_wait4        # branch to system call
433
434 ENTRY(sys32_swapoff_wrapper)
435         llgtr   %r2,%r2                 # const char *
436         jg      sys_swapoff             # branch to system call
437
438 ENTRY(compat_sys_sysinfo_wrapper)
439         llgtr   %r2,%r2                 # struct sysinfo_emu31 *
440         jg      compat_sys_sysinfo      # branch to system call
441
442 ENTRY(sys32_ipc_wrapper)
443         llgfr   %r2,%r2                 # uint
444         lgfr    %r3,%r3                 # int
445         lgfr    %r4,%r4                 # int
446         lgfr    %r5,%r5                 # int
447         llgfr   %r6,%r6                 # u32
448         jg      sys32_ipc               # branch to system call
449
450 ENTRY(sys32_fsync_wrapper)
451         llgfr   %r2,%r2                 # unsigned int
452         jg      sys_fsync               # branch to system call
453
454 #sys32_sigreturn_wrapper                # done in sigreturn_glue
455
456 #sys32_clone_wrapper                    # done in clone_glue
457
458 ENTRY(sys32_setdomainname_wrapper)
459         llgtr   %r2,%r2                 # char *
460         lgfr    %r3,%r3                 # int
461         jg      sys_setdomainname       # branch to system call
462
463 ENTRY(sys32_newuname_wrapper)
464         llgtr   %r2,%r2                 # struct new_utsname *
465         jg      sys_newuname            # branch to system call
466
467 ENTRY(compat_sys_adjtimex_wrapper)
468         llgtr   %r2,%r2                 # struct compat_timex *
469         jg      compat_sys_adjtimex     # branch to system call
470
471 ENTRY(sys32_mprotect_wrapper)
472         llgtr   %r2,%r2                 # unsigned long (actually pointer
473         llgfr   %r3,%r3                 # size_t
474         llgfr   %r4,%r4                 # unsigned long
475         jg      sys_mprotect            # branch to system call
476
477 ENTRY(compat_sys_sigprocmask_wrapper)
478         lgfr    %r2,%r2                 # int
479         llgtr   %r3,%r3                 # compat_old_sigset_t *
480         llgtr   %r4,%r4                 # compat_old_sigset_t *
481         jg      compat_sys_sigprocmask          # branch to system call
482
483 ENTRY(sys_init_module_wrapper)
484         llgtr   %r2,%r2                 # void *
485         llgfr   %r3,%r3                 # unsigned long
486         llgtr   %r4,%r4                 # char *
487         jg      sys_init_module         # branch to system call
488
489 ENTRY(sys_delete_module_wrapper)
490         llgtr   %r2,%r2                 # const char *
491         llgfr   %r3,%r3                 # unsigned int
492         jg      sys_delete_module       # branch to system call
493
494 ENTRY(sys32_quotactl_wrapper)
495         llgfr   %r2,%r2                 # unsigned int
496         llgtr   %r3,%r3                 # const char *
497         llgfr   %r4,%r4                 # qid_t
498         llgtr   %r5,%r5                 # caddr_t
499         jg      sys_quotactl            # branch to system call
500
501 ENTRY(sys32_getpgid_wrapper)
502         lgfr    %r2,%r2                 # pid_t
503         jg      sys_getpgid             # branch to system call
504
505 ENTRY(sys32_fchdir_wrapper)
506         llgfr   %r2,%r2                 # unsigned int
507         jg      sys_fchdir              # branch to system call
508
509 ENTRY(sys32_bdflush_wrapper)
510         lgfr    %r2,%r2                 # int
511         lgfr    %r3,%r3                 # long
512         jg      sys_bdflush             # branch to system call
513
514 ENTRY(sys32_sysfs_wrapper)
515         lgfr    %r2,%r2                 # int
516         llgfr   %r3,%r3                 # unsigned long
517         llgfr   %r4,%r4                 # unsigned long
518         jg      sys_sysfs               # branch to system call
519
520 ENTRY(sys32_personality_wrapper)
521         llgfr   %r2,%r2                 # unsigned int
522         jg      sys_s390_personality    # branch to system call
523
524 ENTRY(sys32_setfsuid16_wrapper)
525         llgfr   %r2,%r2                 # __kernel_old_uid_emu31_t
526         jg      sys32_setfsuid16        # branch to system call
527
528 ENTRY(sys32_setfsgid16_wrapper)
529         llgfr   %r2,%r2                 # __kernel_old_gid_emu31_t
530         jg      sys32_setfsgid16        # branch to system call
531
532 ENTRY(sys32_llseek_wrapper)
533         llgfr   %r2,%r2                 # unsigned int
534         llgfr   %r3,%r3                 # unsigned long
535         llgfr   %r4,%r4                 # unsigned long
536         llgtr   %r5,%r5                 # loff_t *
537         llgfr   %r6,%r6                 # unsigned int
538         jg      sys_llseek              # branch to system call
539
540 ENTRY(sys32_getdents_wrapper)
541         llgfr   %r2,%r2                 # unsigned int
542         llgtr   %r3,%r3                 # void *
543         llgfr   %r4,%r4                 # unsigned int
544         jg      compat_sys_getdents     # branch to system call
545
546 ENTRY(compat_sys_select_wrapper)
547         lgfr    %r2,%r2                 # int
548         llgtr   %r3,%r3                 # compat_fd_set *
549         llgtr   %r4,%r4                 # compat_fd_set *
550         llgtr   %r5,%r5                 # compat_fd_set *
551         llgtr   %r6,%r6                 # struct compat_timeval *
552         jg      compat_sys_select       # branch to system call
553
554 ENTRY(sys32_flock_wrapper)
555         llgfr   %r2,%r2                 # unsigned int
556         llgfr   %r3,%r3                 # unsigned int
557         jg      sys_flock               # branch to system call
558
559 ENTRY(sys32_msync_wrapper)
560         llgfr   %r2,%r2                 # unsigned long
561         llgfr   %r3,%r3                 # size_t
562         lgfr    %r4,%r4                 # int
563         jg      sys_msync               # branch to system call
564
565 ENTRY(compat_sys_readv_wrapper)
566         lgfr    %r2,%r2                 # int
567         llgtr   %r3,%r3                 # const struct compat_iovec *
568         llgfr   %r4,%r4                 # unsigned long
569         jg      compat_sys_readv        # branch to system call
570
571 ENTRY(compat_sys_writev_wrapper)
572         lgfr    %r2,%r2                 # int
573         llgtr   %r3,%r3                 # const struct compat_iovec *
574         llgfr   %r4,%r4                 # unsigned long
575         jg      compat_sys_writev       # branch to system call
576
577 ENTRY(sys32_getsid_wrapper)
578         lgfr    %r2,%r2                 # pid_t
579         jg      sys_getsid              # branch to system call
580
581 ENTRY(sys32_fdatasync_wrapper)
582         llgfr   %r2,%r2                 # unsigned int
583         jg      sys_fdatasync           # branch to system call
584
585 ENTRY(sys32_mlock_wrapper)
586         llgfr   %r2,%r2                 # unsigned long
587         llgfr   %r3,%r3                 # size_t
588         jg      sys_mlock               # branch to system call
589
590 ENTRY(sys32_munlock_wrapper)
591         llgfr   %r2,%r2                 # unsigned long
592         llgfr   %r3,%r3                 # size_t
593         jg      sys_munlock             # branch to system call
594
595 ENTRY(sys32_mlockall_wrapper)
596         lgfr    %r2,%r2                 # int
597         jg      sys_mlockall            # branch to system call
598
599 #sys32_munlockall_wrapper               # void
600
601 ENTRY(sys32_sched_setparam_wrapper)
602         lgfr    %r2,%r2                 # pid_t
603         llgtr   %r3,%r3                 # struct sched_param *
604         jg      sys_sched_setparam      # branch to system call
605
606 ENTRY(sys32_sched_getparam_wrapper)
607         lgfr    %r2,%r2                 # pid_t
608         llgtr   %r3,%r3                 # struct sched_param *
609         jg      sys_sched_getparam      # branch to system call
610
611 ENTRY(sys32_sched_setscheduler_wrapper)
612         lgfr    %r2,%r2                 # pid_t
613         lgfr    %r3,%r3                 # int
614         llgtr   %r4,%r4                 # struct sched_param *
615         jg      sys_sched_setscheduler  # branch to system call
616
617 ENTRY(sys32_sched_getscheduler_wrapper)
618         lgfr    %r2,%r2                 # pid_t
619         jg      sys_sched_getscheduler  # branch to system call
620
621 #sys32_sched_yield_wrapper              # void
622
623 ENTRY(sys32_sched_get_priority_max_wrapper)
624         lgfr    %r2,%r2                 # int
625         jg      sys_sched_get_priority_max      # branch to system call
626
627 ENTRY(sys32_sched_get_priority_min_wrapper)
628         lgfr    %r2,%r2                 # int
629         jg      sys_sched_get_priority_min      # branch to system call
630
631 ENTRY(sys32_sched_rr_get_interval_wrapper)
632         lgfr    %r2,%r2                 # pid_t
633         llgtr   %r3,%r3                 # struct compat_timespec *
634         jg      sys32_sched_rr_get_interval     # branch to system call
635
636 ENTRY(compat_sys_nanosleep_wrapper)
637         llgtr   %r2,%r2                 # struct compat_timespec *
638         llgtr   %r3,%r3                 # struct compat_timespec *
639         jg      compat_sys_nanosleep            # branch to system call
640
641 ENTRY(sys32_mremap_wrapper)
642         llgfr   %r2,%r2                 # unsigned long
643         llgfr   %r3,%r3                 # unsigned long
644         llgfr   %r4,%r4                 # unsigned long
645         llgfr   %r5,%r5                 # unsigned long
646         llgfr   %r6,%r6                 # unsigned long
647         jg      sys_mremap              # branch to system call
648
649 ENTRY(sys32_setresuid16_wrapper)
650         llgfr   %r2,%r2                 # __kernel_old_uid_emu31_t
651         llgfr   %r3,%r3                 # __kernel_old_uid_emu31_t
652         llgfr   %r4,%r4                 # __kernel_old_uid_emu31_t
653         jg      sys32_setresuid16       # branch to system call
654
655 ENTRY(sys32_getresuid16_wrapper)
656         llgtr   %r2,%r2                 # __kernel_old_uid_emu31_t *
657         llgtr   %r3,%r3                 # __kernel_old_uid_emu31_t *
658         llgtr   %r4,%r4                 # __kernel_old_uid_emu31_t *
659         jg      sys32_getresuid16       # branch to system call
660
661 ENTRY(sys32_poll_wrapper)
662         llgtr   %r2,%r2                 # struct pollfd *
663         llgfr   %r3,%r3                 # unsigned int
664         lgfr    %r4,%r4                 # int
665         jg      sys_poll                # branch to system call
666
667 ENTRY(sys32_setresgid16_wrapper)
668         llgfr   %r2,%r2                 # __kernel_old_gid_emu31_t
669         llgfr   %r3,%r3                 # __kernel_old_gid_emu31_t
670         llgfr   %r4,%r4                 # __kernel_old_gid_emu31_t
671         jg      sys32_setresgid16       # branch to system call
672
673 ENTRY(sys32_getresgid16_wrapper)
674         llgtr   %r2,%r2                 # __kernel_old_gid_emu31_t *
675         llgtr   %r3,%r3                 # __kernel_old_gid_emu31_t *
676         llgtr   %r4,%r4                 # __kernel_old_gid_emu31_t *
677         jg      sys32_getresgid16       # branch to system call
678
679 ENTRY(sys32_prctl_wrapper)
680         lgfr    %r2,%r2                 # int
681         llgfr   %r3,%r3                 # unsigned long
682         llgfr   %r4,%r4                 # unsigned long
683         llgfr   %r5,%r5                 # unsigned long
684         llgfr   %r6,%r6                 # unsigned long
685         jg      sys_prctl               # branch to system call
686
687 #sys32_rt_sigreturn_wrapper             # done in rt_sigreturn_glue
688
689 ENTRY(sys32_rt_sigaction_wrapper)
690         lgfr    %r2,%r2                 # int
691         llgtr   %r3,%r3                 # const struct sigaction_emu31 *
692         llgtr   %r4,%r4                 # const struct sigaction_emu31 *
693         llgfr   %r5,%r5                 # size_t
694         jg      sys32_rt_sigaction      # branch to system call
695
696 ENTRY(sys32_rt_sigprocmask_wrapper)
697         lgfr    %r2,%r2                 # int
698         llgtr   %r3,%r3                 # old_sigset_emu31 *
699         llgtr   %r4,%r4                 # old_sigset_emu31 *
700         llgfr   %r5,%r5                 # size_t
701         jg      sys32_rt_sigprocmask    # branch to system call
702
703 ENTRY(sys32_rt_sigpending_wrapper)
704         llgtr   %r2,%r2                 # sigset_emu31 *
705         llgfr   %r3,%r3                 # size_t
706         jg      sys32_rt_sigpending     # branch to system call
707
708 ENTRY(compat_sys_rt_sigtimedwait_wrapper)
709         llgtr   %r2,%r2                 # const sigset_emu31_t *
710         llgtr   %r3,%r3                 # siginfo_emu31_t *
711         llgtr   %r4,%r4                 # const struct compat_timespec *
712         llgfr   %r5,%r5                 # size_t
713         jg      compat_sys_rt_sigtimedwait      # branch to system call
714
715 ENTRY(sys32_rt_sigqueueinfo_wrapper)
716         lgfr    %r2,%r2                 # int
717         lgfr    %r3,%r3                 # int
718         llgtr   %r4,%r4                 # siginfo_emu31_t *
719         jg      sys32_rt_sigqueueinfo   # branch to system call
720
721 ENTRY(compat_sys_rt_sigsuspend_wrapper)
722         llgtr   %r2,%r2                 # compat_sigset_t *
723         llgfr   %r3,%r3                 # compat_size_t
724         jg      compat_sys_rt_sigsuspend
725
726 ENTRY(sys32_pread64_wrapper)
727         llgfr   %r2,%r2                 # unsigned int
728         llgtr   %r3,%r3                 # char *
729         llgfr   %r4,%r4                 # size_t
730         llgfr   %r5,%r5                 # u32
731         llgfr   %r6,%r6                 # u32
732         jg      sys32_pread64           # branch to system call
733
734 ENTRY(sys32_pwrite64_wrapper)
735         llgfr   %r2,%r2                 # unsigned int
736         llgtr   %r3,%r3                 # const char *
737         llgfr   %r4,%r4                 # size_t
738         llgfr   %r5,%r5                 # u32
739         llgfr   %r6,%r6                 # u32
740         jg      sys32_pwrite64          # branch to system call
741
742 ENTRY(sys32_chown16_wrapper)
743         llgtr   %r2,%r2                 # const char *
744         llgfr   %r3,%r3                 # __kernel_old_uid_emu31_t
745         llgfr   %r4,%r4                 # __kernel_old_gid_emu31_t
746         jg      sys32_chown16           # branch to system call
747
748 ENTRY(sys32_getcwd_wrapper)
749         llgtr   %r2,%r2                 # char *
750         llgfr   %r3,%r3                 # unsigned long
751         jg      sys_getcwd              # branch to system call
752
753 ENTRY(sys32_capget_wrapper)
754         llgtr   %r2,%r2                 # cap_user_header_t
755         llgtr   %r3,%r3                 # cap_user_data_t
756         jg      sys_capget              # branch to system call
757
758 ENTRY(sys32_capset_wrapper)
759         llgtr   %r2,%r2                 # cap_user_header_t
760         llgtr   %r3,%r3                 # const cap_user_data_t
761         jg      sys_capset              # branch to system call
762
763 ENTRY(sys32_sigaltstack_wrapper)
764         llgtr   %r2,%r2                 # const stack_emu31_t *
765         llgtr   %r3,%r3                 # stack_emu31_t *
766         jg      sys32_sigaltstack
767
768 ENTRY(sys32_sendfile_wrapper)
769         lgfr    %r2,%r2                 # int
770         lgfr    %r3,%r3                 # int
771         llgtr   %r4,%r4                 # __kernel_off_emu31_t *
772         llgfr   %r5,%r5                 # size_t
773         jg      sys32_sendfile          # branch to system call
774
775 #sys32_vfork_wrapper                    # done in vfork_glue
776
777 ENTRY(sys32_truncate64_wrapper)
778         llgtr   %r2,%r2                 # const char *
779         llgfr   %r3,%r3                 # unsigned long
780         llgfr   %r4,%r4                 # unsigned long
781         jg      sys32_truncate64        # branch to system call
782
783 ENTRY(sys32_ftruncate64_wrapper)
784         llgfr   %r2,%r2                 # unsigned int
785         llgfr   %r3,%r3                 # unsigned long
786         llgfr   %r4,%r4                 # unsigned long
787         jg      sys32_ftruncate64       # branch to system call
788
789 ENTRY(sys32_lchown_wrapper)
790         llgtr   %r2,%r2                 # const char *
791         llgfr   %r3,%r3                 # uid_t
792         llgfr   %r4,%r4                 # gid_t
793         jg      sys_lchown              # branch to system call
794
795 #sys32_getuid_wrapper                   # void
796 #sys32_getgid_wrapper                   # void
797 #sys32_geteuid_wrapper                  # void
798 #sys32_getegid_wrapper                  # void
799
800 ENTRY(sys32_setreuid_wrapper)
801         llgfr   %r2,%r2                 # uid_t
802         llgfr   %r3,%r3                 # uid_t
803         jg      sys_setreuid            # branch to system call
804
805 ENTRY(sys32_setregid_wrapper)
806         llgfr   %r2,%r2                 # gid_t
807         llgfr   %r3,%r3                 # gid_t
808         jg      sys_setregid            # branch to system call
809
810 ENTRY(sys32_getgroups_wrapper)
811         lgfr    %r2,%r2                 # int
812         llgtr   %r3,%r3                 # gid_t *
813         jg      sys_getgroups           # branch to system call
814
815 ENTRY(sys32_setgroups_wrapper)
816         lgfr    %r2,%r2                 # int
817         llgtr   %r3,%r3                 # gid_t *
818         jg      sys_setgroups           # branch to system call
819
820 ENTRY(sys32_fchown_wrapper)
821         llgfr   %r2,%r2                 # unsigned int
822         llgfr   %r3,%r3                 # uid_t
823         llgfr   %r4,%r4                 # gid_t
824         jg      sys_fchown              # branch to system call
825
826 ENTRY(sys32_setresuid_wrapper)
827         llgfr   %r2,%r2                 # uid_t
828         llgfr   %r3,%r3                 # uid_t
829         llgfr   %r4,%r4                 # uid_t
830         jg      sys_setresuid           # branch to system call
831
832 ENTRY(sys32_getresuid_wrapper)
833         llgtr   %r2,%r2                 # uid_t *
834         llgtr   %r3,%r3                 # uid_t *
835         llgtr   %r4,%r4                 # uid_t *
836         jg      sys_getresuid           # branch to system call
837
838 ENTRY(sys32_setresgid_wrapper)
839         llgfr   %r2,%r2                 # gid_t
840         llgfr   %r3,%r3                 # gid_t
841         llgfr   %r4,%r4                 # gid_t
842         jg      sys_setresgid           # branch to system call
843
844 ENTRY(sys32_getresgid_wrapper)
845         llgtr   %r2,%r2                 # gid_t *
846         llgtr   %r3,%r3                 # gid_t *
847         llgtr   %r4,%r4                 # gid_t *
848         jg      sys_getresgid           # branch to system call
849
850 ENTRY(sys32_chown_wrapper)
851         llgtr   %r2,%r2                 # const char *
852         llgfr   %r3,%r3                 # uid_t
853         llgfr   %r4,%r4                 # gid_t
854         jg      sys_chown               # branch to system call
855
856 ENTRY(sys32_setuid_wrapper)
857         llgfr   %r2,%r2                 # uid_t
858         jg      sys_setuid              # branch to system call
859
860 ENTRY(sys32_setgid_wrapper)
861         llgfr   %r2,%r2                 # gid_t
862         jg      sys_setgid              # branch to system call
863
864 ENTRY(sys32_setfsuid_wrapper)
865         llgfr   %r2,%r2                 # uid_t
866         jg      sys_setfsuid            # branch to system call
867
868 ENTRY(sys32_setfsgid_wrapper)
869         llgfr   %r2,%r2                 # gid_t
870         jg      sys_setfsgid            # branch to system call
871
872 ENTRY(sys32_pivot_root_wrapper)
873         llgtr   %r2,%r2                 # const char *
874         llgtr   %r3,%r3                 # const char *
875         jg      sys_pivot_root          # branch to system call
876
877 ENTRY(sys32_mincore_wrapper)
878         llgfr   %r2,%r2                 # unsigned long
879         llgfr   %r3,%r3                 # size_t
880         llgtr   %r4,%r4                 # unsigned char *
881         jg      sys_mincore             # branch to system call
882
883 ENTRY(sys32_madvise_wrapper)
884         llgfr   %r2,%r2                 # unsigned long
885         llgfr   %r3,%r3                 # size_t
886         lgfr    %r4,%r4                 # int
887         jg      sys_madvise             # branch to system call
888
889 ENTRY(sys32_getdents64_wrapper)
890         llgfr   %r2,%r2                 # unsigned int
891         llgtr   %r3,%r3                 # void *
892         llgfr   %r4,%r4                 # unsigned int
893         jg      sys_getdents64          # branch to system call
894
895 ENTRY(compat_sys_fcntl64_wrapper)
896         llgfr   %r2,%r2                 # unsigned int
897         llgfr   %r3,%r3                 # unsigned int
898         llgfr   %r4,%r4                 # unsigned long
899         jg      compat_sys_fcntl64      # branch to system call
900
901 ENTRY(sys32_stat64_wrapper)
902         llgtr   %r2,%r2                 # char *
903         llgtr   %r3,%r3                 # struct stat64 *
904         jg      sys32_stat64            # branch to system call
905
906 ENTRY(sys32_lstat64_wrapper)
907         llgtr   %r2,%r2                 # char *
908         llgtr   %r3,%r3                 # struct stat64 *
909         jg      sys32_lstat64           # branch to system call
910
911 ENTRY(sys32_stime_wrapper)
912         llgtr   %r2,%r2                 # long *
913         jg      compat_sys_stime        # branch to system call
914
915 ENTRY(sys32_sysctl_wrapper)
916         llgtr   %r2,%r2                 # struct compat_sysctl_args *
917         jg      compat_sys_sysctl
918
919 ENTRY(sys32_fstat64_wrapper)
920         llgfr   %r2,%r2                 # unsigned long
921         llgtr   %r3,%r3                 # struct stat64 *
922         jg      sys32_fstat64           # branch to system call
923
924 ENTRY(compat_sys_futex_wrapper)
925         llgtr   %r2,%r2                 # u32 *
926         lgfr    %r3,%r3                 # int
927         lgfr    %r4,%r4                 # int
928         llgtr   %r5,%r5                 # struct compat_timespec *
929         llgtr   %r6,%r6                 # u32 *
930         lgf     %r0,164(%r15)           # int
931         stg     %r0,160(%r15)
932         jg      compat_sys_futex        # branch to system call
933
934 ENTRY(sys32_setxattr_wrapper)
935         llgtr   %r2,%r2                 # char *
936         llgtr   %r3,%r3                 # char *
937         llgtr   %r4,%r4                 # void *
938         llgfr   %r5,%r5                 # size_t
939         lgfr    %r6,%r6                 # int
940         jg      sys_setxattr
941
942 ENTRY(sys32_lsetxattr_wrapper)
943         llgtr   %r2,%r2                 # char *
944         llgtr   %r3,%r3                 # char *
945         llgtr   %r4,%r4                 # void *
946         llgfr   %r5,%r5                 # size_t
947         lgfr    %r6,%r6                 # int
948         jg      sys_lsetxattr
949
950 ENTRY(sys32_fsetxattr_wrapper)
951         lgfr    %r2,%r2                 # int
952         llgtr   %r3,%r3                 # char *
953         llgtr   %r4,%r4                 # void *
954         llgfr   %r5,%r5                 # size_t
955         lgfr    %r6,%r6                 # int
956         jg      sys_fsetxattr
957
958 ENTRY(sys32_getxattr_wrapper)
959         llgtr   %r2,%r2                 # char *
960         llgtr   %r3,%r3                 # char *
961         llgtr   %r4,%r4                 # void *
962         llgfr   %r5,%r5                 # size_t
963         jg      sys_getxattr
964
965 ENTRY(sys32_lgetxattr_wrapper)
966         llgtr   %r2,%r2                 # char *
967         llgtr   %r3,%r3                 # char *
968         llgtr   %r4,%r4                 # void *
969         llgfr   %r5,%r5                 # size_t
970         jg      sys_lgetxattr
971
972 ENTRY(sys32_fgetxattr_wrapper)
973         lgfr    %r2,%r2                 # int
974         llgtr   %r3,%r3                 # char *
975         llgtr   %r4,%r4                 # void *
976         llgfr   %r5,%r5                 # size_t
977         jg      sys_fgetxattr
978
979 ENTRY(sys32_listxattr_wrapper)
980         llgtr   %r2,%r2                 # char *
981         llgtr   %r3,%r3                 # char *
982         llgfr   %r4,%r4                 # size_t
983         jg      sys_listxattr
984
985 ENTRY(sys32_llistxattr_wrapper)
986         llgtr   %r2,%r2                 # char *
987         llgtr   %r3,%r3                 # char *
988         llgfr   %r4,%r4                 # size_t
989         jg      sys_llistxattr
990
991 ENTRY(sys32_flistxattr_wrapper)
992         lgfr    %r2,%r2                 # int
993         llgtr   %r3,%r3                 # char *
994         llgfr   %r4,%r4                 # size_t
995         jg      sys_flistxattr
996
997 ENTRY(sys32_removexattr_wrapper)
998         llgtr   %r2,%r2                 # char *
999         llgtr   %r3,%r3                 # char *
1000         jg      sys_removexattr
1001
1002 ENTRY(sys32_lremovexattr_wrapper)
1003         llgtr   %r2,%r2                 # char *
1004         llgtr   %r3,%r3                 # char *
1005         jg      sys_lremovexattr
1006
1007 ENTRY(sys32_fremovexattr_wrapper)
1008         lgfr    %r2,%r2                 # int
1009         llgtr   %r3,%r3                 # char *
1010         jg      sys_fremovexattr
1011
1012 ENTRY(sys32_sched_setaffinity_wrapper)
1013         lgfr    %r2,%r2                 # int
1014         llgfr   %r3,%r3                 # unsigned int
1015         llgtr   %r4,%r4                 # unsigned long *
1016         jg      compat_sys_sched_setaffinity
1017
1018 ENTRY(sys32_sched_getaffinity_wrapper)
1019         lgfr    %r2,%r2                 # int
1020         llgfr   %r3,%r3                 # unsigned int
1021         llgtr   %r4,%r4                 # unsigned long *
1022         jg      compat_sys_sched_getaffinity
1023
1024 ENTRY(sys32_exit_group_wrapper)
1025         lgfr    %r2,%r2                 # int
1026         jg      sys_exit_group          # branch to system call
1027
1028 ENTRY(sys32_set_tid_address_wrapper)
1029         llgtr   %r2,%r2                 # int *
1030         jg      sys_set_tid_address     # branch to system call
1031
1032 ENTRY(sys_epoll_create_wrapper)
1033         lgfr    %r2,%r2                 # int
1034         jg      sys_epoll_create        # branch to system call
1035
1036 ENTRY(sys_epoll_ctl_wrapper)
1037         lgfr    %r2,%r2                 # int
1038         lgfr    %r3,%r3                 # int
1039         lgfr    %r4,%r4                 # int
1040         llgtr   %r5,%r5                 # struct epoll_event *
1041         jg      sys_epoll_ctl           # branch to system call
1042
1043 ENTRY(sys_epoll_wait_wrapper)
1044         lgfr    %r2,%r2                 # int
1045         llgtr   %r3,%r3                 # struct epoll_event *
1046         lgfr    %r4,%r4                 # int
1047         lgfr    %r5,%r5                 # int
1048         jg      sys_epoll_wait          # branch to system call
1049
1050 ENTRY(sys32_lookup_dcookie_wrapper)
1051         sllg    %r2,%r2,32              # get high word of 64bit dcookie
1052         or      %r2,%r3                 # get low word of 64bit dcookie
1053         llgtr   %r3,%r4                 # char *
1054         llgfr   %r4,%r5                 # size_t
1055         jg      sys_lookup_dcookie
1056
1057 ENTRY(sys32_fadvise64_wrapper)
1058         lgfr    %r2,%r2                 # int
1059         sllg    %r3,%r3,32              # get high word of 64bit loff_t
1060         or      %r3,%r4                 # get low word of 64bit loff_t
1061         llgfr   %r4,%r5                 # size_t (unsigned long)
1062         lgfr    %r5,%r6                 # int
1063         jg      sys32_fadvise64
1064
1065 ENTRY(sys32_fadvise64_64_wrapper)
1066         llgtr   %r2,%r2                 # struct fadvise64_64_args *
1067         jg      sys32_fadvise64_64
1068
1069 ENTRY(sys32_clock_settime_wrapper)
1070         lgfr    %r2,%r2                 # clockid_t (int)
1071         llgtr   %r3,%r3                 # struct compat_timespec *
1072         jg      compat_sys_clock_settime
1073
1074 ENTRY(sys32_clock_gettime_wrapper)
1075         lgfr    %r2,%r2                 # clockid_t (int)
1076         llgtr   %r3,%r3                 # struct compat_timespec *
1077         jg      compat_sys_clock_gettime
1078
1079 ENTRY(sys32_clock_getres_wrapper)
1080         lgfr    %r2,%r2                 # clockid_t (int)
1081         llgtr   %r3,%r3                 # struct compat_timespec *
1082         jg      compat_sys_clock_getres
1083
1084 ENTRY(sys32_clock_nanosleep_wrapper)
1085         lgfr    %r2,%r2                 # clockid_t (int)
1086         lgfr    %r3,%r3                 # int
1087         llgtr   %r4,%r4                 # struct compat_timespec *
1088         llgtr   %r5,%r5                 # struct compat_timespec *
1089         jg      compat_sys_clock_nanosleep
1090
1091 ENTRY(sys32_timer_create_wrapper)
1092         lgfr    %r2,%r2                 # timer_t (int)
1093         llgtr   %r3,%r3                 # struct compat_sigevent *
1094         llgtr   %r4,%r4                 # timer_t *
1095         jg      compat_sys_timer_create
1096
1097 ENTRY(sys32_timer_settime_wrapper)
1098         lgfr    %r2,%r2                 # timer_t (int)
1099         lgfr    %r3,%r3                 # int
1100         llgtr   %r4,%r4                 # struct compat_itimerspec *
1101         llgtr   %r5,%r5                 # struct compat_itimerspec *
1102         jg      compat_sys_timer_settime
1103
1104 ENTRY(sys32_timer_gettime_wrapper)
1105         lgfr    %r2,%r2                 # timer_t (int)
1106         llgtr   %r3,%r3                 # struct compat_itimerspec *
1107         jg      compat_sys_timer_gettime
1108
1109 ENTRY(sys32_timer_getoverrun_wrapper)
1110         lgfr    %r2,%r2                 # timer_t (int)
1111         jg      sys_timer_getoverrun
1112
1113 ENTRY(sys32_timer_delete_wrapper)
1114         lgfr    %r2,%r2                 # timer_t (int)
1115         jg      sys_timer_delete
1116
1117 ENTRY(sys32_io_setup_wrapper)
1118         llgfr   %r2,%r2                 # unsigned int
1119         llgtr   %r3,%r3                 # u32 *
1120         jg      compat_sys_io_setup
1121
1122 ENTRY(sys32_io_destroy_wrapper)
1123         llgfr   %r2,%r2                 # (aio_context_t) u32
1124         jg      sys_io_destroy
1125
1126 ENTRY(sys32_io_getevents_wrapper)
1127         llgfr   %r2,%r2                 # (aio_context_t) u32
1128         lgfr    %r3,%r3                 # long
1129         lgfr    %r4,%r4                 # long
1130         llgtr   %r5,%r5                 # struct io_event *
1131         llgtr   %r6,%r6                 # struct compat_timespec *
1132         jg      compat_sys_io_getevents
1133
1134 ENTRY(sys32_io_submit_wrapper)
1135         llgfr   %r2,%r2                 # (aio_context_t) u32
1136         lgfr    %r3,%r3                 # long
1137         llgtr   %r4,%r4                 # struct iocb **
1138         jg      compat_sys_io_submit
1139
1140 ENTRY(sys32_io_cancel_wrapper)
1141         llgfr   %r2,%r2                 # (aio_context_t) u32
1142         llgtr   %r3,%r3                 # struct iocb *
1143         llgtr   %r4,%r4                 # struct io_event *
1144         jg      sys_io_cancel
1145
1146 ENTRY(compat_sys_statfs64_wrapper)
1147         llgtr   %r2,%r2                 # const char *
1148         llgfr   %r3,%r3                 # compat_size_t
1149         llgtr   %r4,%r4                 # struct compat_statfs64 *
1150         jg      compat_sys_statfs64
1151
1152 ENTRY(compat_sys_fstatfs64_wrapper)
1153         llgfr   %r2,%r2                 # unsigned int fd
1154         llgfr   %r3,%r3                 # compat_size_t
1155         llgtr   %r4,%r4                 # struct compat_statfs64 *
1156         jg      compat_sys_fstatfs64
1157
1158 ENTRY(compat_sys_mq_open_wrapper)
1159         llgtr   %r2,%r2                 # const char *
1160         lgfr    %r3,%r3                 # int
1161         llgfr   %r4,%r4                 # mode_t
1162         llgtr   %r5,%r5                 # struct compat_mq_attr *
1163         jg      compat_sys_mq_open
1164
1165 ENTRY(sys32_mq_unlink_wrapper)
1166         llgtr   %r2,%r2                 # const char *
1167         jg      sys_mq_unlink
1168
1169 ENTRY(compat_sys_mq_timedsend_wrapper)
1170         lgfr    %r2,%r2                 # mqd_t
1171         llgtr   %r3,%r3                 # const char *
1172         llgfr   %r4,%r4                 # size_t
1173         llgfr   %r5,%r5                 # unsigned int
1174         llgtr   %r6,%r6                 # const struct compat_timespec *
1175         jg      compat_sys_mq_timedsend
1176
1177 ENTRY(compat_sys_mq_timedreceive_wrapper)
1178         lgfr    %r2,%r2                 # mqd_t
1179         llgtr   %r3,%r3                 # char *
1180         llgfr   %r4,%r4                 # size_t
1181         llgtr   %r5,%r5                 # unsigned int *
1182         llgtr   %r6,%r6                 # const struct compat_timespec *
1183         jg      compat_sys_mq_timedreceive
1184
1185 ENTRY(compat_sys_mq_notify_wrapper)
1186         lgfr    %r2,%r2                 # mqd_t
1187         llgtr   %r3,%r3                 # struct compat_sigevent *
1188         jg      compat_sys_mq_notify
1189
1190 ENTRY(compat_sys_mq_getsetattr_wrapper)
1191         lgfr    %r2,%r2                 # mqd_t
1192         llgtr   %r3,%r3                 # struct compat_mq_attr *
1193         llgtr   %r4,%r4                 # struct compat_mq_attr *
1194         jg      compat_sys_mq_getsetattr
1195
1196 ENTRY(compat_sys_add_key_wrapper)
1197         llgtr   %r2,%r2                 # const char *
1198         llgtr   %r3,%r3                 # const char *
1199         llgtr   %r4,%r4                 # const void *
1200         llgfr   %r5,%r5                 # size_t
1201         llgfr   %r6,%r6                 # (key_serial_t) u32
1202         jg      sys_add_key
1203
1204 ENTRY(compat_sys_request_key_wrapper)
1205         llgtr   %r2,%r2                 # const char *
1206         llgtr   %r3,%r3                 # const char *
1207         llgtr   %r4,%r4                 # const void *
1208         llgfr   %r5,%r5                 # (key_serial_t) u32
1209         jg      sys_request_key
1210
1211 ENTRY(sys32_remap_file_pages_wrapper)
1212         llgfr   %r2,%r2                 # unsigned long
1213         llgfr   %r3,%r3                 # unsigned long
1214         llgfr   %r4,%r4                 # unsigned long
1215         llgfr   %r5,%r5                 # unsigned long
1216         llgfr   %r6,%r6                 # unsigned long
1217         jg      sys_remap_file_pages
1218
1219 ENTRY(compat_sys_waitid_wrapper)
1220         lgfr    %r2,%r2                 # int
1221         lgfr    %r3,%r3                 # pid_t
1222         llgtr   %r4,%r4                 # siginfo_emu31_t *
1223         lgfr    %r5,%r5                 # int
1224         llgtr   %r6,%r6                 # struct rusage_emu31 *
1225         jg      compat_sys_waitid
1226
1227 ENTRY(compat_sys_kexec_load_wrapper)
1228         llgfr   %r2,%r2                 # unsigned long
1229         llgfr   %r3,%r3                 # unsigned long
1230         llgtr   %r4,%r4                 # struct kexec_segment *
1231         llgfr   %r5,%r5                 # unsigned long
1232         jg      compat_sys_kexec_load
1233
1234 ENTRY(sys_ioprio_set_wrapper)
1235         lgfr    %r2,%r2                 # int
1236         lgfr    %r3,%r3                 # int
1237         lgfr    %r4,%r4                 # int
1238         jg      sys_ioprio_set
1239
1240 ENTRY(sys_ioprio_get_wrapper)
1241         lgfr    %r2,%r2                 # int
1242         lgfr    %r3,%r3                 # int
1243         jg      sys_ioprio_get
1244
1245 ENTRY(sys_inotify_add_watch_wrapper)
1246         lgfr    %r2,%r2                 # int
1247         llgtr   %r3,%r3                 # const char *
1248         llgfr   %r4,%r4                 # u32
1249         jg      sys_inotify_add_watch
1250
1251 ENTRY(sys_inotify_rm_watch_wrapper)
1252         lgfr    %r2,%r2                 # int
1253         llgfr   %r3,%r3                 # u32
1254         jg      sys_inotify_rm_watch
1255
1256 ENTRY(compat_sys_openat_wrapper)
1257         llgfr   %r2,%r2                 # unsigned int
1258         llgtr   %r3,%r3                 # const char *
1259         lgfr    %r4,%r4                 # int
1260         lgfr    %r5,%r5                 # int
1261         jg      compat_sys_openat
1262
1263 ENTRY(sys_mkdirat_wrapper)
1264         lgfr    %r2,%r2                 # int
1265         llgtr   %r3,%r3                 # const char *
1266         lgfr    %r4,%r4                 # int
1267         jg      sys_mkdirat
1268
1269 ENTRY(sys_mknodat_wrapper)
1270         lgfr    %r2,%r2                 # int
1271         llgtr   %r3,%r3                 # const char *
1272         lgfr    %r4,%r4                 # int
1273         llgfr   %r5,%r5                 # unsigned int
1274         jg      sys_mknodat
1275
1276 ENTRY(sys_fchownat_wrapper)
1277         lgfr    %r2,%r2                 # int
1278         llgtr   %r3,%r3                 # const char *
1279         llgfr   %r4,%r4                 # uid_t
1280         llgfr   %r5,%r5                 # gid_t
1281         lgfr    %r6,%r6                 # int
1282         jg      sys_fchownat
1283
1284 ENTRY(compat_sys_futimesat_wrapper)
1285         llgfr   %r2,%r2                 # unsigned int
1286         llgtr   %r3,%r3                 # char *
1287         llgtr   %r4,%r4                 # struct timeval *
1288         jg      compat_sys_futimesat
1289
1290 ENTRY(sys32_fstatat64_wrapper)
1291         llgfr   %r2,%r2                 # unsigned int
1292         llgtr   %r3,%r3                 # char *
1293         llgtr   %r4,%r4                 # struct stat64 *
1294         lgfr    %r5,%r5                 # int
1295         jg      sys32_fstatat64
1296
1297 ENTRY(sys_unlinkat_wrapper)
1298         lgfr    %r2,%r2                 # int
1299         llgtr   %r3,%r3                 # const char *
1300         lgfr    %r4,%r4                 # int
1301         jg      sys_unlinkat
1302
1303 ENTRY(sys_renameat_wrapper)
1304         lgfr    %r2,%r2                 # int
1305         llgtr   %r3,%r3                 # const char *
1306         lgfr    %r4,%r4                 # int
1307         llgtr   %r5,%r5                 # const char *
1308         jg      sys_renameat
1309
1310 ENTRY(sys_linkat_wrapper)
1311         lgfr    %r2,%r2                 # int
1312         llgtr   %r3,%r3                 # const char *
1313         lgfr    %r4,%r4                 # int
1314         llgtr   %r5,%r5                 # const char *
1315         lgfr    %r6,%r6                 # int
1316         jg      sys_linkat
1317
1318 ENTRY(sys_symlinkat_wrapper)
1319         llgtr   %r2,%r2                 # const char *
1320         lgfr    %r3,%r3                 # int
1321         llgtr   %r4,%r4                 # const char *
1322         jg      sys_symlinkat
1323
1324 ENTRY(sys_readlinkat_wrapper)
1325         lgfr    %r2,%r2                 # int
1326         llgtr   %r3,%r3                 # const char *
1327         llgtr   %r4,%r4                 # char *
1328         lgfr    %r5,%r5                 # int
1329         jg      sys_readlinkat
1330
1331 ENTRY(sys_fchmodat_wrapper)
1332         lgfr    %r2,%r2                 # int
1333         llgtr   %r3,%r3                 # const char *
1334         llgfr   %r4,%r4                 # mode_t
1335         jg      sys_fchmodat
1336
1337 ENTRY(sys_faccessat_wrapper)
1338         lgfr    %r2,%r2                 # int
1339         llgtr   %r3,%r3                 # const char *
1340         lgfr    %r4,%r4                 # int
1341         jg      sys_faccessat
1342
1343 ENTRY(compat_sys_pselect6_wrapper)
1344         lgfr    %r2,%r2                 # int
1345         llgtr   %r3,%r3                 # fd_set *
1346         llgtr   %r4,%r4                 # fd_set *
1347         llgtr   %r5,%r5                 # fd_set *
1348         llgtr   %r6,%r6                 # struct timespec *
1349         llgt    %r0,164(%r15)           # void *
1350         stg     %r0,160(%r15)
1351         jg      compat_sys_pselect6
1352
1353 ENTRY(compat_sys_ppoll_wrapper)
1354         llgtr   %r2,%r2                 # struct pollfd *
1355         llgfr   %r3,%r3                 # unsigned int
1356         llgtr   %r4,%r4                 # struct timespec *
1357         llgtr   %r5,%r5                 # const sigset_t *
1358         llgfr   %r6,%r6                 # size_t
1359         jg      compat_sys_ppoll
1360
1361 ENTRY(sys_unshare_wrapper)
1362         llgfr   %r2,%r2                 # unsigned long
1363         jg      sys_unshare
1364
1365 ENTRY(compat_sys_set_robust_list_wrapper)
1366         llgtr   %r2,%r2                 # struct compat_robust_list_head *
1367         llgfr   %r3,%r3                 # size_t
1368         jg      compat_sys_set_robust_list
1369
1370 ENTRY(compat_sys_get_robust_list_wrapper)
1371         lgfr    %r2,%r2                 # int
1372         llgtr   %r3,%r3                 # compat_uptr_t_t *
1373         llgtr   %r4,%r4                 # compat_size_t *
1374         jg      compat_sys_get_robust_list
1375
1376 ENTRY(sys_splice_wrapper)
1377         lgfr    %r2,%r2                 # int
1378         llgtr   %r3,%r3                 # loff_t *
1379         lgfr    %r4,%r4                 # int
1380         llgtr   %r5,%r5                 # loff_t *
1381         llgfr   %r6,%r6                 # size_t
1382         llgf    %r0,164(%r15)           # unsigned int
1383         stg     %r0,160(%r15)
1384         jg      sys_splice
1385
1386 ENTRY(sys_sync_file_range_wrapper)
1387         lgfr    %r2,%r2                 # int
1388         sllg    %r3,%r3,32              # get high word of 64bit loff_t
1389         or      %r3,%r4                 # get low word of 64bit loff_t
1390         sllg    %r4,%r5,32              # get high word of 64bit loff_t
1391         or      %r4,%r6                 # get low word of 64bit loff_t
1392         llgf    %r5,164(%r15)           # unsigned int
1393         jg      sys_sync_file_range
1394
1395 ENTRY(sys_tee_wrapper)
1396         lgfr    %r2,%r2                 # int
1397         lgfr    %r3,%r3                 # int
1398         llgfr   %r4,%r4                 # size_t
1399         llgfr   %r5,%r5                 # unsigned int
1400         jg      sys_tee
1401
1402 ENTRY(compat_sys_vmsplice_wrapper)
1403         lgfr    %r2,%r2                 # int
1404         llgtr   %r3,%r3                 # compat_iovec *
1405         llgfr   %r4,%r4                 # unsigned int
1406         llgfr   %r5,%r5                 # unsigned int
1407         jg      compat_sys_vmsplice
1408
1409 ENTRY(sys_getcpu_wrapper)
1410         llgtr   %r2,%r2                 # unsigned *
1411         llgtr   %r3,%r3                 # unsigned *
1412         llgtr   %r4,%r4                 # struct getcpu_cache *
1413         jg      sys_getcpu
1414
1415 ENTRY(compat_sys_epoll_pwait_wrapper)
1416         lgfr    %r2,%r2                 # int
1417         llgtr   %r3,%r3                 # struct compat_epoll_event *
1418         lgfr    %r4,%r4                 # int
1419         lgfr    %r5,%r5                 # int
1420         llgtr   %r6,%r6                 # compat_sigset_t *
1421         llgf    %r0,164(%r15)           # compat_size_t
1422         stg     %r0,160(%r15)
1423         jg      compat_sys_epoll_pwait
1424
1425 ENTRY(compat_sys_utimes_wrapper)
1426         llgtr   %r2,%r2                 # char *
1427         llgtr   %r3,%r3                 # struct compat_timeval *
1428         jg      compat_sys_utimes
1429
1430 ENTRY(compat_sys_utimensat_wrapper)
1431         llgfr   %r2,%r2                 # unsigned int
1432         llgtr   %r3,%r3                 # char *
1433         llgtr   %r4,%r4                 # struct compat_timespec *
1434         lgfr    %r5,%r5                 # int
1435         jg      compat_sys_utimensat
1436
1437 ENTRY(compat_sys_signalfd_wrapper)
1438         lgfr    %r2,%r2                 # int
1439         llgtr   %r3,%r3                 # compat_sigset_t *
1440         llgfr   %r4,%r4                 # compat_size_t
1441         jg      compat_sys_signalfd
1442
1443 ENTRY(sys_eventfd_wrapper)
1444         llgfr   %r2,%r2                 # unsigned int
1445         jg      sys_eventfd
1446
1447 ENTRY(sys_fallocate_wrapper)
1448         lgfr    %r2,%r2                 # int
1449         lgfr    %r3,%r3                 # int
1450         sllg    %r4,%r4,32              # get high word of 64bit loff_t
1451         lr      %r4,%r5                 # get low word of 64bit loff_t
1452         sllg    %r5,%r6,32              # get high word of 64bit loff_t
1453         l       %r5,164(%r15)           # get low word of 64bit loff_t
1454         jg      sys_fallocate
1455
1456 ENTRY(sys_timerfd_create_wrapper)
1457         lgfr    %r2,%r2                 # int
1458         lgfr    %r3,%r3                 # int
1459         jg      sys_timerfd_create
1460
1461 ENTRY(compat_sys_timerfd_settime_wrapper)
1462         lgfr    %r2,%r2                 # int
1463         lgfr    %r3,%r3                 # int
1464         llgtr   %r4,%r4                 # struct compat_itimerspec *
1465         llgtr   %r5,%r5                 # struct compat_itimerspec *
1466         jg      compat_sys_timerfd_settime
1467
1468 ENTRY(compat_sys_timerfd_gettime_wrapper)
1469         lgfr    %r2,%r2                 # int
1470         llgtr   %r3,%r3                 # struct compat_itimerspec *
1471         jg      compat_sys_timerfd_gettime
1472
1473 ENTRY(compat_sys_signalfd4_wrapper)
1474         lgfr    %r2,%r2                 # int
1475         llgtr   %r3,%r3                 # compat_sigset_t *
1476         llgfr   %r4,%r4                 # compat_size_t
1477         lgfr    %r5,%r5                 # int
1478         jg      compat_sys_signalfd4
1479
1480 ENTRY(sys_eventfd2_wrapper)
1481         llgfr   %r2,%r2                 # unsigned int
1482         lgfr    %r3,%r3                 # int
1483         jg      sys_eventfd2
1484
1485 ENTRY(sys_inotify_init1_wrapper)
1486         lgfr    %r2,%r2                 # int
1487         jg      sys_inotify_init1
1488
1489 ENTRY(sys_pipe2_wrapper)
1490         llgtr   %r2,%r2                 # u32 *
1491         lgfr    %r3,%r3                 # int
1492         jg      sys_pipe2               # branch to system call
1493
1494 ENTRY(sys_dup3_wrapper)
1495         llgfr   %r2,%r2                 # unsigned int
1496         llgfr   %r3,%r3                 # unsigned int
1497         lgfr    %r4,%r4                 # int
1498         jg      sys_dup3                # branch to system call
1499
1500 ENTRY(sys_epoll_create1_wrapper)
1501         lgfr    %r2,%r2                 # int
1502         jg      sys_epoll_create1       # branch to system call
1503
1504 ENTRY(sys32_readahead_wrapper)
1505         lgfr    %r2,%r2                 # int
1506         llgfr   %r3,%r3                 # u32
1507         llgfr   %r4,%r4                 # u32
1508         lgfr    %r5,%r5                 # s32
1509         jg      sys32_readahead         # branch to system call
1510
1511 ENTRY(sys32_sendfile64_wrapper)
1512         lgfr    %r2,%r2                 # int
1513         lgfr    %r3,%r3                 # int
1514         llgtr   %r4,%r4                 # compat_loff_t *
1515         lgfr    %r5,%r5                 # s32
1516         jg      sys32_sendfile64        # branch to system call
1517
1518 ENTRY(sys_tkill_wrapper)
1519         lgfr    %r2,%r2                 # pid_t
1520         lgfr    %r3,%r3                 # int
1521         jg      sys_tkill               # branch to system call
1522
1523 ENTRY(sys_tgkill_wrapper)
1524         lgfr    %r2,%r2                 # pid_t
1525         lgfr    %r3,%r3                 # pid_t
1526         lgfr    %r4,%r4                 # int
1527         jg      sys_tgkill              # branch to system call
1528
1529 ENTRY(compat_sys_keyctl_wrapper)
1530         llgfr   %r2,%r2                 # u32
1531         llgfr   %r3,%r3                 # u32
1532         llgfr   %r4,%r4                 # u32
1533         llgfr   %r5,%r5                 # u32
1534         llgfr   %r6,%r6                 # u32
1535         jg      compat_sys_keyctl       # branch to system call
1536
1537 ENTRY(compat_sys_preadv_wrapper)
1538         llgfr   %r2,%r2                 # unsigned long
1539         llgtr   %r3,%r3                 # compat_iovec *
1540         llgfr   %r4,%r4                 # unsigned long
1541         llgfr   %r5,%r5                 # u32
1542         llgfr   %r6,%r6                 # u32
1543         jg      compat_sys_preadv       # branch to system call
1544
1545 ENTRY(compat_sys_pwritev_wrapper)
1546         llgfr   %r2,%r2                 # unsigned long
1547         llgtr   %r3,%r3                 # compat_iovec *
1548         llgfr   %r4,%r4                 # unsigned long
1549         llgfr   %r5,%r5                 # u32
1550         llgfr   %r6,%r6                 # u32
1551         jg      compat_sys_pwritev      # branch to system call
1552
1553 ENTRY(compat_sys_rt_tgsigqueueinfo_wrapper)
1554         lgfr    %r2,%r2                 # compat_pid_t
1555         lgfr    %r3,%r3                 # compat_pid_t
1556         lgfr    %r4,%r4                 # int
1557         llgtr   %r5,%r5                 # struct compat_siginfo *
1558         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         lgfr    %r3,%r3                 # pid_t
1563         lgfr    %r4,%r4                 # int
1564         lgfr    %r5,%r5                 # int
1565         llgfr   %r6,%r6                 # unsigned long
1566         jg      sys_perf_event_open     # branch to system call
1567
1568 ENTRY(sys_clone_wrapper)
1569         llgfr   %r2,%r2                 # unsigned long
1570         llgfr   %r3,%r3                 # unsigned long
1571         llgtr   %r4,%r4                 # int *
1572         llgtr   %r5,%r5                 # int *
1573         jg      sys_clone               # branch to system call
1574
1575 ENTRY(sys32_execve_wrapper)
1576         llgtr   %r2,%r2                 # char *
1577         llgtr   %r3,%r3                 # compat_uptr_t *
1578         llgtr   %r4,%r4                 # compat_uptr_t *
1579         jg      sys32_execve            # branch to system call
1580
1581 ENTRY(sys_fanotify_init_wrapper)
1582         llgfr   %r2,%r2                 # unsigned int
1583         llgfr   %r3,%r3                 # unsigned int
1584         jg      sys_fanotify_init       # branch to system call
1585
1586 ENTRY(sys_fanotify_mark_wrapper)
1587         lgfr    %r2,%r2                 # int
1588         llgfr   %r3,%r3                 # unsigned int
1589         sllg    %r4,%r4,32              # get high word of 64bit mask
1590         lr      %r4,%r5                 # get low word of 64bit mask
1591         llgfr   %r5,%r6                 # unsigned int
1592         llgt    %r6,164(%r15)           # char *
1593         jg      sys_fanotify_mark       # branch to system call
1594
1595 ENTRY(sys_prlimit64_wrapper)
1596         lgfr    %r2,%r2                 # pid_t
1597         llgfr   %r3,%r3                 # unsigned int
1598         llgtr   %r4,%r4                 # const struct rlimit64 __user *
1599         llgtr   %r5,%r5                 # struct rlimit64 __user *
1600         jg      sys_prlimit64           # branch to system call
1601
1602 ENTRY(sys_name_to_handle_at_wrapper)
1603         lgfr    %r2,%r2                 # int
1604         llgtr   %r3,%r3                 # const char __user *
1605         llgtr   %r4,%r4                 # struct file_handle __user *
1606         llgtr   %r5,%r5                 # int __user *
1607         lgfr    %r6,%r6                 # int
1608         jg      sys_name_to_handle_at
1609
1610 ENTRY(compat_sys_open_by_handle_at_wrapper)
1611         lgfr    %r2,%r2                 # int
1612         llgtr   %r3,%r3                 # struct file_handle __user *
1613         lgfr    %r4,%r4                 # int
1614         jg      compat_sys_open_by_handle_at
1615
1616 ENTRY(compat_sys_clock_adjtime_wrapper)
1617         lgfr    %r2,%r2                 # clockid_t (int)
1618         llgtr   %r3,%r3                 # struct compat_timex __user *
1619         jg      compat_sys_clock_adjtime
1620
1621 ENTRY(sys_syncfs_wrapper)
1622         lgfr    %r2,%r2                 # int
1623         jg      sys_syncfs
1624
1625 ENTRY(sys_setns_wrapper)
1626         lgfr    %r2,%r2                 # int
1627         lgfr    %r3,%r3                 # int
1628         jg      sys_setns
1629
1630 ENTRY(compat_sys_process_vm_readv_wrapper)
1631         lgfr    %r2,%r2                 # compat_pid_t
1632         llgtr   %r3,%r3                 # struct compat_iovec __user *
1633         llgfr   %r4,%r4                 # unsigned long
1634         llgtr   %r5,%r5                 # struct compat_iovec __user *
1635         llgfr   %r6,%r6                 # unsigned long
1636         llgf    %r0,164(%r15)           # unsigned long
1637         stg     %r0,160(%r15)
1638         jg      compat_sys_process_vm_readv
1639
1640 ENTRY(compat_sys_process_vm_writev_wrapper)
1641         lgfr    %r2,%r2                 # compat_pid_t
1642         llgtr   %r3,%r3                 # struct compat_iovec __user *
1643         llgfr   %r4,%r4                 # unsigned long
1644         llgtr   %r5,%r5                 # struct compat_iovec __user *
1645         llgfr   %r6,%r6                 # unsigned long
1646         llgf    %r0,164(%r15)           # unsigned long
1647         stg     %r0,160(%r15)
1648         jg      compat_sys_process_vm_writev
1649
1650 ENTRY(sys_s390_runtime_instr_wrapper)
1651         lgfr    %r2,%r2                 # int
1652         lgfr    %r3,%r3                 # int
1653         jg      sys_s390_runtime_instr
1654
1655 ENTRY(sys_kcmp_wrapper)
1656         lgfr    %r2,%r2                 # pid_t
1657         lgfr    %r3,%r3                 # pid_t
1658         lgfr    %r4,%r4                 # int
1659         llgfr   %r5,%r5                 # unsigned long
1660         llgfr   %r6,%r6                 # unsigned long
1661         jg      sys_kcmp