2 * arch/s390/kernel/compat_wrapper.S
3 * wrapper for 31 bit compatible system calls.
5 * Copyright (C) IBM Corp. 2000,2006
6 * Author(s): Gerhard Tonn (ton@de.ibm.com),
7 * Thomas Spatzier (tspat@de.ibm.com)
10 .globl sys32_exit_wrapper
13 jg sys_exit # branch to sys_exit
15 .globl sys32_read_wrapper
17 llgfr %r2,%r2 # unsigned int
18 llgtr %r3,%r3 # char *
19 llgfr %r4,%r4 # size_t
20 jg sys32_read # branch to sys_read
22 .globl sys32_write_wrapper
24 llgfr %r2,%r2 # unsigned int
25 llgtr %r3,%r3 # const char *
26 llgfr %r4,%r4 # size_t
27 jg sys32_write # branch to system call
29 .globl sys32_open_wrapper
31 llgtr %r2,%r2 # const char *
34 jg sys_open # branch to system call
36 .globl sys32_close_wrapper
38 llgfr %r2,%r2 # unsigned int
39 jg sys_close # branch to system call
41 .globl sys32_creat_wrapper
43 llgtr %r2,%r2 # const char *
45 jg sys_creat # branch to system call
47 .globl sys32_link_wrapper
49 llgtr %r2,%r2 # const char *
50 llgtr %r3,%r3 # const char *
51 jg sys_link # branch to system call
53 .globl sys32_unlink_wrapper
55 llgtr %r2,%r2 # const char *
56 jg sys_unlink # branch to system call
58 .globl sys32_chdir_wrapper
60 llgtr %r2,%r2 # const char *
61 jg sys_chdir # branch to system call
63 .globl sys32_time_wrapper
66 jg compat_sys_time # branch to system call
68 .globl sys32_mknod_wrapper
70 llgtr %r2,%r2 # const char *
73 jg sys_mknod # branch to system call
75 .globl sys32_chmod_wrapper
77 llgtr %r2,%r2 # const char *
78 llgfr %r3,%r3 # mode_t
79 jg sys_chmod # branch to system call
81 .globl sys32_lchown16_wrapper
82 sys32_lchown16_wrapper:
83 llgtr %r2,%r2 # const char *
84 llgfr %r3,%r3 # __kernel_old_uid_emu31_t
85 llgfr %r4,%r4 # __kernel_old_uid_emu31_t
86 jg sys32_lchown16 # branch to system call
88 .globl sys32_lseek_wrapper
90 llgfr %r2,%r2 # unsigned int
92 llgfr %r4,%r4 # unsigned int
93 jg sys_lseek # branch to system call
95 #sys32_getpid_wrapper # void
97 .globl sys32_mount_wrapper
99 llgtr %r2,%r2 # char *
100 llgtr %r3,%r3 # char *
101 llgtr %r4,%r4 # char *
102 llgfr %r5,%r5 # unsigned long
103 llgtr %r6,%r6 # void *
104 jg compat_sys_mount # branch to system call
106 .globl sys32_oldumount_wrapper
107 sys32_oldumount_wrapper:
108 llgtr %r2,%r2 # char *
109 jg sys_oldumount # branch to system call
111 .globl sys32_setuid16_wrapper
112 sys32_setuid16_wrapper:
113 llgfr %r2,%r2 # __kernel_old_uid_emu31_t
114 jg sys32_setuid16 # branch to system call
116 #sys32_getuid16_wrapper # void
118 .globl sys32_ptrace_wrapper
119 sys32_ptrace_wrapper:
124 jg compat_sys_ptrace # branch to system call
126 .globl sys32_alarm_wrapper
128 llgfr %r2,%r2 # unsigned int
129 jg sys_alarm # branch to system call
131 .globl compat_sys_utime_wrapper
132 compat_sys_utime_wrapper:
133 llgtr %r2,%r2 # char *
134 llgtr %r3,%r3 # struct compat_utimbuf *
135 jg compat_sys_utime # branch to system call
137 .globl sys32_access_wrapper
138 sys32_access_wrapper:
139 llgtr %r2,%r2 # const char *
141 jg sys_access # branch to system call
143 .globl sys32_nice_wrapper
146 jg sys_nice # branch to system call
148 #sys32_sync_wrapper # void
150 .globl sys32_kill_wrapper
154 jg sys_kill # branch to system call
156 .globl sys32_rename_wrapper
157 sys32_rename_wrapper:
158 llgtr %r2,%r2 # const char *
159 llgtr %r3,%r3 # const char *
160 jg sys_rename # branch to system call
162 .globl sys32_mkdir_wrapper
164 llgtr %r2,%r2 # const char *
166 jg sys_mkdir # branch to system call
168 .globl sys32_rmdir_wrapper
170 llgtr %r2,%r2 # const char *
171 jg sys_rmdir # branch to system call
173 .globl sys32_dup_wrapper
175 llgfr %r2,%r2 # unsigned int
176 jg sys_dup # branch to system call
178 .globl sys32_pipe_wrapper
180 llgtr %r2,%r2 # u32 *
181 jg sys_pipe # branch to system call
183 .globl compat_sys_times_wrapper
184 compat_sys_times_wrapper:
185 llgtr %r2,%r2 # struct compat_tms *
186 jg compat_sys_times # branch to system call
188 .globl sys32_brk_wrapper
190 llgtr %r2,%r2 # unsigned long
191 jg sys_brk # branch to system call
193 .globl sys32_setgid16_wrapper
194 sys32_setgid16_wrapper:
195 llgfr %r2,%r2 # __kernel_old_gid_emu31_t
196 jg sys32_setgid16 # branch to system call
198 #sys32_getgid16_wrapper # void
200 .globl sys32_signal_wrapper
201 sys32_signal_wrapper:
203 llgtr %r3,%r3 # __sighandler_t
206 #sys32_geteuid16_wrapper # void
208 #sys32_getegid16_wrapper # void
210 .globl sys32_acct_wrapper
212 llgtr %r2,%r2 # char *
213 jg sys_acct # branch to system call
215 .globl sys32_umount_wrapper
216 sys32_umount_wrapper:
217 llgtr %r2,%r2 # char *
219 jg sys_umount # branch to system call
221 .globl compat_sys_ioctl_wrapper
222 compat_sys_ioctl_wrapper:
223 llgfr %r2,%r2 # unsigned int
224 llgfr %r3,%r3 # unsigned int
225 llgfr %r4,%r4 # unsigned int
226 jg compat_sys_ioctl # branch to system call
228 .globl compat_sys_fcntl_wrapper
229 compat_sys_fcntl_wrapper:
230 llgfr %r2,%r2 # unsigned int
231 llgfr %r3,%r3 # unsigned int
232 llgfr %r4,%r4 # unsigned long
233 jg compat_sys_fcntl # branch to system call
235 .globl sys32_setpgid_wrapper
236 sys32_setpgid_wrapper:
239 jg sys_setpgid # branch to system call
241 .globl sys32_umask_wrapper
244 jg sys_umask # branch to system call
246 .globl sys32_chroot_wrapper
247 sys32_chroot_wrapper:
248 llgtr %r2,%r2 # char *
249 jg sys_chroot # branch to system call
251 .globl sys32_ustat_wrapper
253 llgfr %r2,%r2 # dev_t
254 llgtr %r3,%r3 # struct ustat *
257 .globl sys32_dup2_wrapper
259 llgfr %r2,%r2 # unsigned int
260 llgfr %r3,%r3 # unsigned int
261 jg sys_dup2 # branch to system call
263 #sys32_getppid_wrapper # void
265 #sys32_getpgrp_wrapper # void
267 #sys32_setsid_wrapper # void
269 .globl sys32_sigaction_wrapper
270 sys32_sigaction_wrapper:
272 llgtr %r3,%r3 # const struct old_sigaction *
273 llgtr %r4,%r4 # struct old_sigaction32 *
274 jg sys32_sigaction # branch to system call
276 .globl sys32_setreuid16_wrapper
277 sys32_setreuid16_wrapper:
278 llgfr %r2,%r2 # __kernel_old_uid_emu31_t
279 llgfr %r3,%r3 # __kernel_old_uid_emu31_t
280 jg sys32_setreuid16 # branch to system call
282 .globl sys32_setregid16_wrapper
283 sys32_setregid16_wrapper:
284 llgfr %r2,%r2 # __kernel_old_gid_emu31_t
285 llgfr %r3,%r3 # __kernel_old_gid_emu31_t
286 jg sys32_setregid16 # branch to system call
288 .globl sys_sigsuspend_wrapper
289 sys_sigsuspend_wrapper:
292 llgfr %r4,%r4 # old_sigset_t
295 .globl compat_sys_sigpending_wrapper
296 compat_sys_sigpending_wrapper:
297 llgtr %r2,%r2 # compat_old_sigset_t *
298 jg compat_sys_sigpending # branch to system call
300 .globl sys32_sethostname_wrapper
301 sys32_sethostname_wrapper:
302 llgtr %r2,%r2 # char *
304 jg sys_sethostname # branch to system call
306 .globl compat_sys_setrlimit_wrapper
307 compat_sys_setrlimit_wrapper:
308 llgfr %r2,%r2 # unsigned int
309 llgtr %r3,%r3 # struct rlimit_emu31 *
310 jg compat_sys_setrlimit # branch to system call
312 .globl compat_sys_old_getrlimit_wrapper
313 compat_sys_old_getrlimit_wrapper:
314 llgfr %r2,%r2 # unsigned int
315 llgtr %r3,%r3 # struct rlimit_emu31 *
316 jg compat_sys_old_getrlimit # branch to system call
318 .globl compat_sys_getrlimit_wrapper
319 compat_sys_getrlimit_wrapper:
320 llgfr %r2,%r2 # unsigned int
321 llgtr %r3,%r3 # struct rlimit_emu31 *
322 jg compat_sys_getrlimit # branch to system call
324 .globl sys32_mmap2_wrapper
326 llgtr %r2,%r2 # struct mmap_arg_struct_emu31 *
327 jg sys32_mmap2 # branch to system call
329 .globl compat_sys_getrusage_wrapper
330 compat_sys_getrusage_wrapper:
332 llgtr %r3,%r3 # struct rusage_emu31 *
333 jg compat_sys_getrusage # branch to system call
335 .globl compat_sys_gettimeofday_wrapper
336 compat_sys_gettimeofday_wrapper:
337 llgtr %r2,%r2 # struct timeval_emu31 *
338 llgtr %r3,%r3 # struct timezone *
339 jg compat_sys_gettimeofday # branch to system call
341 .globl compat_sys_settimeofday_wrapper
342 compat_sys_settimeofday_wrapper:
343 llgtr %r2,%r2 # struct timeval_emu31 *
344 llgtr %r3,%r3 # struct timezone *
345 jg compat_sys_settimeofday # branch to system call
347 .globl sys32_getgroups16_wrapper
348 sys32_getgroups16_wrapper:
350 llgtr %r3,%r3 # __kernel_old_gid_emu31_t *
351 jg sys32_getgroups16 # branch to system call
353 .globl sys32_setgroups16_wrapper
354 sys32_setgroups16_wrapper:
356 llgtr %r3,%r3 # __kernel_old_gid_emu31_t *
357 jg sys32_setgroups16 # branch to system call
359 .globl sys32_symlink_wrapper
360 sys32_symlink_wrapper:
361 llgtr %r2,%r2 # const char *
362 llgtr %r3,%r3 # const char *
363 jg sys_symlink # branch to system call
365 .globl sys32_readlink_wrapper
366 sys32_readlink_wrapper:
367 llgtr %r2,%r2 # const char *
368 llgtr %r3,%r3 # char *
370 jg sys_readlink # branch to system call
372 .globl sys32_uselib_wrapper
373 sys32_uselib_wrapper:
374 llgtr %r2,%r2 # const char *
375 jg sys_uselib # branch to system call
377 .globl sys32_swapon_wrapper
378 sys32_swapon_wrapper:
379 llgtr %r2,%r2 # const char *
381 jg sys_swapon # branch to system call
383 .globl sys32_reboot_wrapper
384 sys32_reboot_wrapper:
387 llgfr %r4,%r4 # unsigned int
388 llgtr %r5,%r5 # void *
389 jg sys_reboot # branch to system call
391 .globl old32_readdir_wrapper
392 old32_readdir_wrapper:
393 llgfr %r2,%r2 # unsigned int
394 llgtr %r3,%r3 # void *
395 llgfr %r4,%r4 # unsigned int
396 jg compat_sys_old_readdir # branch to system call
398 .globl old32_mmap_wrapper
400 llgtr %r2,%r2 # struct mmap_arg_struct_emu31 *
401 jg old32_mmap # branch to system call
403 .globl sys32_munmap_wrapper
404 sys32_munmap_wrapper:
405 llgfr %r2,%r2 # unsigned long
406 llgfr %r3,%r3 # size_t
407 jg sys_munmap # branch to system call
409 .globl sys32_truncate_wrapper
410 sys32_truncate_wrapper:
411 llgtr %r2,%r2 # const char *
413 jg sys_truncate # branch to system call
415 .globl sys32_ftruncate_wrapper
416 sys32_ftruncate_wrapper:
417 llgfr %r2,%r2 # unsigned int
418 llgfr %r3,%r3 # unsigned long
419 jg sys_ftruncate # branch to system call
421 .globl sys32_fchmod_wrapper
422 sys32_fchmod_wrapper:
423 llgfr %r2,%r2 # unsigned int
424 llgfr %r3,%r3 # mode_t
425 jg sys_fchmod # branch to system call
427 .globl sys32_fchown16_wrapper
428 sys32_fchown16_wrapper:
429 llgfr %r2,%r2 # unsigned int
430 llgfr %r3,%r3 # compat_uid_t
431 llgfr %r4,%r4 # compat_uid_t
432 jg sys32_fchown16 # branch to system call
434 .globl sys32_getpriority_wrapper
435 sys32_getpriority_wrapper:
438 jg sys_getpriority # branch to system call
440 .globl sys32_setpriority_wrapper
441 sys32_setpriority_wrapper:
445 jg sys_setpriority # branch to system call
447 .globl compat_sys_statfs_wrapper
448 compat_sys_statfs_wrapper:
449 llgtr %r2,%r2 # char *
450 llgtr %r3,%r3 # struct compat_statfs *
451 jg compat_sys_statfs # branch to system call
453 .globl compat_sys_fstatfs_wrapper
454 compat_sys_fstatfs_wrapper:
455 llgfr %r2,%r2 # unsigned int
456 llgtr %r3,%r3 # struct compat_statfs *
457 jg compat_sys_fstatfs # branch to system call
459 .globl compat_sys_socketcall_wrapper
460 compat_sys_socketcall_wrapper:
462 llgtr %r3,%r3 # u32 *
463 jg compat_sys_socketcall # branch to system call
465 .globl sys32_syslog_wrapper
466 sys32_syslog_wrapper:
468 llgtr %r3,%r3 # char *
470 jg sys_syslog # branch to system call
472 .globl compat_sys_setitimer_wrapper
473 compat_sys_setitimer_wrapper:
475 llgtr %r3,%r3 # struct itimerval_emu31 *
476 llgtr %r4,%r4 # struct itimerval_emu31 *
477 jg compat_sys_setitimer # branch to system call
479 .globl compat_sys_getitimer_wrapper
480 compat_sys_getitimer_wrapper:
482 llgtr %r3,%r3 # struct itimerval_emu31 *
483 jg compat_sys_getitimer # branch to system call
485 .globl compat_sys_newstat_wrapper
486 compat_sys_newstat_wrapper:
487 llgtr %r2,%r2 # char *
488 llgtr %r3,%r3 # struct stat_emu31 *
489 jg compat_sys_newstat # branch to system call
491 .globl compat_sys_newlstat_wrapper
492 compat_sys_newlstat_wrapper:
493 llgtr %r2,%r2 # char *
494 llgtr %r3,%r3 # struct stat_emu31 *
495 jg compat_sys_newlstat # branch to system call
497 .globl compat_sys_newfstat_wrapper
498 compat_sys_newfstat_wrapper:
499 llgfr %r2,%r2 # unsigned int
500 llgtr %r3,%r3 # struct stat_emu31 *
501 jg compat_sys_newfstat # branch to system call
503 #sys32_vhangup_wrapper # void
505 .globl compat_sys_wait4_wrapper
506 compat_sys_wait4_wrapper:
508 llgtr %r3,%r3 # unsigned int *
510 llgtr %r5,%r5 # struct rusage *
511 jg compat_sys_wait4 # branch to system call
513 .globl sys32_swapoff_wrapper
514 sys32_swapoff_wrapper:
515 llgtr %r2,%r2 # const char *
516 jg sys_swapoff # branch to system call
518 .globl compat_sys_sysinfo_wrapper
519 compat_sys_sysinfo_wrapper:
520 llgtr %r2,%r2 # struct sysinfo_emu31 *
521 jg compat_sys_sysinfo # branch to system call
523 .globl sys32_ipc_wrapper
530 jg sys32_ipc # branch to system call
532 .globl sys32_fsync_wrapper
534 llgfr %r2,%r2 # unsigned int
535 jg sys_fsync # branch to system call
537 #sys32_sigreturn_wrapper # done in sigreturn_glue
539 #sys32_clone_wrapper # done in clone_glue
541 .globl sys32_setdomainname_wrapper
542 sys32_setdomainname_wrapper:
543 llgtr %r2,%r2 # char *
545 jg sys_setdomainname # branch to system call
547 .globl sys32_newuname_wrapper
548 sys32_newuname_wrapper:
549 llgtr %r2,%r2 # struct new_utsname *
550 jg sys_newuname # branch to system call
552 .globl compat_sys_adjtimex_wrapper
553 compat_sys_adjtimex_wrapper:
554 llgtr %r2,%r2 # struct compat_timex *
555 jg compat_sys_adjtimex # branch to system call
557 .globl sys32_mprotect_wrapper
558 sys32_mprotect_wrapper:
559 llgtr %r2,%r2 # unsigned long (actually pointer
560 llgfr %r3,%r3 # size_t
561 llgfr %r4,%r4 # unsigned long
562 jg sys_mprotect # branch to system call
564 .globl compat_sys_sigprocmask_wrapper
565 compat_sys_sigprocmask_wrapper:
567 llgtr %r3,%r3 # compat_old_sigset_t *
568 llgtr %r4,%r4 # compat_old_sigset_t *
569 jg compat_sys_sigprocmask # branch to system call
571 .globl sys_init_module_wrapper
572 sys_init_module_wrapper:
573 llgtr %r2,%r2 # void *
574 llgfr %r3,%r3 # unsigned long
575 llgtr %r4,%r4 # char *
576 jg sys_init_module # branch to system call
578 .globl sys_delete_module_wrapper
579 sys_delete_module_wrapper:
580 llgtr %r2,%r2 # const char *
581 llgfr %r3,%r3 # unsigned int
582 jg sys_delete_module # branch to system call
584 .globl sys32_quotactl_wrapper
585 sys32_quotactl_wrapper:
586 llgfr %r2,%r2 # unsigned int
587 llgtr %r3,%r3 # const char *
588 llgfr %r4,%r4 # qid_t
589 llgtr %r5,%r5 # caddr_t
590 jg sys_quotactl # branch to system call
592 .globl sys32_getpgid_wrapper
593 sys32_getpgid_wrapper:
595 jg sys_getpgid # branch to system call
597 .globl sys32_fchdir_wrapper
598 sys32_fchdir_wrapper:
599 llgfr %r2,%r2 # unsigned int
600 jg sys_fchdir # branch to system call
602 .globl sys32_bdflush_wrapper
603 sys32_bdflush_wrapper:
606 jg sys_bdflush # branch to system call
608 .globl sys32_sysfs_wrapper
611 llgfr %r3,%r3 # unsigned long
612 llgfr %r4,%r4 # unsigned long
613 jg sys_sysfs # branch to system call
615 .globl sys32_personality_wrapper
616 sys32_personality_wrapper:
617 llgfr %r2,%r2 # unsigned int
618 jg sys_s390_personality # branch to system call
620 .globl sys32_setfsuid16_wrapper
621 sys32_setfsuid16_wrapper:
622 llgfr %r2,%r2 # __kernel_old_uid_emu31_t
623 jg sys32_setfsuid16 # branch to system call
625 .globl sys32_setfsgid16_wrapper
626 sys32_setfsgid16_wrapper:
627 llgfr %r2,%r2 # __kernel_old_gid_emu31_t
628 jg sys32_setfsgid16 # branch to system call
630 .globl sys32_llseek_wrapper
631 sys32_llseek_wrapper:
632 llgfr %r2,%r2 # unsigned int
633 llgfr %r3,%r3 # unsigned long
634 llgfr %r4,%r4 # unsigned long
635 llgtr %r5,%r5 # loff_t *
636 llgfr %r6,%r6 # unsigned int
637 jg sys_llseek # branch to system call
639 .globl sys32_getdents_wrapper
640 sys32_getdents_wrapper:
641 llgfr %r2,%r2 # unsigned int
642 llgtr %r3,%r3 # void *
643 llgfr %r4,%r4 # unsigned int
644 jg compat_sys_getdents # branch to system call
646 .globl compat_sys_select_wrapper
647 compat_sys_select_wrapper:
649 llgtr %r3,%r3 # compat_fd_set *
650 llgtr %r4,%r4 # compat_fd_set *
651 llgtr %r5,%r5 # compat_fd_set *
652 llgtr %r6,%r6 # struct compat_timeval *
653 jg compat_sys_select # branch to system call
655 .globl sys32_flock_wrapper
657 llgfr %r2,%r2 # unsigned int
658 llgfr %r3,%r3 # unsigned int
659 jg sys_flock # branch to system call
661 .globl sys32_msync_wrapper
663 llgfr %r2,%r2 # unsigned long
664 llgfr %r3,%r3 # size_t
666 jg sys_msync # branch to system call
668 .globl compat_sys_readv_wrapper
669 compat_sys_readv_wrapper:
671 llgtr %r3,%r3 # const struct compat_iovec *
672 llgfr %r4,%r4 # unsigned long
673 jg compat_sys_readv # branch to system call
675 .globl compat_sys_writev_wrapper
676 compat_sys_writev_wrapper:
678 llgtr %r3,%r3 # const struct compat_iovec *
679 llgfr %r4,%r4 # unsigned long
680 jg compat_sys_writev # branch to system call
682 .globl sys32_getsid_wrapper
683 sys32_getsid_wrapper:
685 jg sys_getsid # branch to system call
687 .globl sys32_fdatasync_wrapper
688 sys32_fdatasync_wrapper:
689 llgfr %r2,%r2 # unsigned int
690 jg sys_fdatasync # branch to system call
692 .globl sys32_mlock_wrapper
694 llgfr %r2,%r2 # unsigned long
695 llgfr %r3,%r3 # size_t
696 jg sys_mlock # branch to system call
698 .globl sys32_munlock_wrapper
699 sys32_munlock_wrapper:
700 llgfr %r2,%r2 # unsigned long
701 llgfr %r3,%r3 # size_t
702 jg sys_munlock # branch to system call
704 .globl sys32_mlockall_wrapper
705 sys32_mlockall_wrapper:
707 jg sys_mlockall # branch to system call
709 #sys32_munlockall_wrapper # void
711 .globl sys32_sched_setparam_wrapper
712 sys32_sched_setparam_wrapper:
714 llgtr %r3,%r3 # struct sched_param *
715 jg sys_sched_setparam # branch to system call
717 .globl sys32_sched_getparam_wrapper
718 sys32_sched_getparam_wrapper:
720 llgtr %r3,%r3 # struct sched_param *
721 jg sys_sched_getparam # branch to system call
723 .globl sys32_sched_setscheduler_wrapper
724 sys32_sched_setscheduler_wrapper:
727 llgtr %r4,%r4 # struct sched_param *
728 jg sys_sched_setscheduler # branch to system call
730 .globl sys32_sched_getscheduler_wrapper
731 sys32_sched_getscheduler_wrapper:
733 jg sys_sched_getscheduler # branch to system call
735 #sys32_sched_yield_wrapper # void
737 .globl sys32_sched_get_priority_max_wrapper
738 sys32_sched_get_priority_max_wrapper:
740 jg sys_sched_get_priority_max # branch to system call
742 .globl sys32_sched_get_priority_min_wrapper
743 sys32_sched_get_priority_min_wrapper:
745 jg sys_sched_get_priority_min # branch to system call
747 .globl sys32_sched_rr_get_interval_wrapper
748 sys32_sched_rr_get_interval_wrapper:
750 llgtr %r3,%r3 # struct compat_timespec *
751 jg sys32_sched_rr_get_interval # branch to system call
753 .globl compat_sys_nanosleep_wrapper
754 compat_sys_nanosleep_wrapper:
755 llgtr %r2,%r2 # struct compat_timespec *
756 llgtr %r3,%r3 # struct compat_timespec *
757 jg compat_sys_nanosleep # branch to system call
759 .globl sys32_mremap_wrapper
760 sys32_mremap_wrapper:
761 llgfr %r2,%r2 # unsigned long
762 llgfr %r3,%r3 # unsigned long
763 llgfr %r4,%r4 # unsigned long
764 llgfr %r5,%r5 # unsigned long
765 llgfr %r6,%r6 # unsigned long
766 jg sys_mremap # branch to system call
768 .globl sys32_setresuid16_wrapper
769 sys32_setresuid16_wrapper:
770 llgfr %r2,%r2 # __kernel_old_uid_emu31_t
771 llgfr %r3,%r3 # __kernel_old_uid_emu31_t
772 llgfr %r4,%r4 # __kernel_old_uid_emu31_t
773 jg sys32_setresuid16 # branch to system call
775 .globl sys32_getresuid16_wrapper
776 sys32_getresuid16_wrapper:
777 llgtr %r2,%r2 # __kernel_old_uid_emu31_t *
778 llgtr %r3,%r3 # __kernel_old_uid_emu31_t *
779 llgtr %r4,%r4 # __kernel_old_uid_emu31_t *
780 jg sys32_getresuid16 # branch to system call
782 .globl sys32_poll_wrapper
784 llgtr %r2,%r2 # struct pollfd *
785 llgfr %r3,%r3 # unsigned int
787 jg sys_poll # branch to system call
789 .globl compat_sys_nfsservctl_wrapper
790 compat_sys_nfsservctl_wrapper:
792 llgtr %r3,%r3 # struct compat_nfsctl_arg*
793 llgtr %r4,%r4 # union compat_nfsctl_res*
794 jg compat_sys_nfsservctl # branch to system call
796 .globl sys32_setresgid16_wrapper
797 sys32_setresgid16_wrapper:
798 llgfr %r2,%r2 # __kernel_old_gid_emu31_t
799 llgfr %r3,%r3 # __kernel_old_gid_emu31_t
800 llgfr %r4,%r4 # __kernel_old_gid_emu31_t
801 jg sys32_setresgid16 # branch to system call
803 .globl sys32_getresgid16_wrapper
804 sys32_getresgid16_wrapper:
805 llgtr %r2,%r2 # __kernel_old_gid_emu31_t *
806 llgtr %r3,%r3 # __kernel_old_gid_emu31_t *
807 llgtr %r4,%r4 # __kernel_old_gid_emu31_t *
808 jg sys32_getresgid16 # branch to system call
810 .globl sys32_prctl_wrapper
813 llgfr %r3,%r3 # unsigned long
814 llgfr %r4,%r4 # unsigned long
815 llgfr %r5,%r5 # unsigned long
816 llgfr %r6,%r6 # unsigned long
817 jg sys_prctl # branch to system call
819 #sys32_rt_sigreturn_wrapper # done in rt_sigreturn_glue
821 .globl sys32_rt_sigaction_wrapper
822 sys32_rt_sigaction_wrapper:
824 llgtr %r3,%r3 # const struct sigaction_emu31 *
825 llgtr %r4,%r4 # const struct sigaction_emu31 *
826 llgfr %r5,%r5 # size_t
827 jg sys32_rt_sigaction # branch to system call
829 .globl sys32_rt_sigprocmask_wrapper
830 sys32_rt_sigprocmask_wrapper:
832 llgtr %r3,%r3 # old_sigset_emu31 *
833 llgtr %r4,%r4 # old_sigset_emu31 *
834 llgfr %r5,%r5 # size_t
835 jg sys32_rt_sigprocmask # branch to system call
837 .globl sys32_rt_sigpending_wrapper
838 sys32_rt_sigpending_wrapper:
839 llgtr %r2,%r2 # sigset_emu31 *
840 llgfr %r3,%r3 # size_t
841 jg sys32_rt_sigpending # branch to system call
843 .globl compat_sys_rt_sigtimedwait_wrapper
844 compat_sys_rt_sigtimedwait_wrapper:
845 llgtr %r2,%r2 # const sigset_emu31_t *
846 llgtr %r3,%r3 # siginfo_emu31_t *
847 llgtr %r4,%r4 # const struct compat_timespec *
848 llgfr %r5,%r5 # size_t
849 jg compat_sys_rt_sigtimedwait # branch to system call
851 .globl sys32_rt_sigqueueinfo_wrapper
852 sys32_rt_sigqueueinfo_wrapper:
855 llgtr %r4,%r4 # siginfo_emu31_t *
856 jg sys32_rt_sigqueueinfo # branch to system call
858 .globl compat_sys_rt_sigsuspend_wrapper
859 compat_sys_rt_sigsuspend_wrapper:
860 llgtr %r2,%r2 # compat_sigset_t *
861 llgfr %r3,%r3 # compat_size_t
862 jg compat_sys_rt_sigsuspend
864 .globl sys32_pread64_wrapper
865 sys32_pread64_wrapper:
866 llgfr %r2,%r2 # unsigned int
867 llgtr %r3,%r3 # char *
868 llgfr %r4,%r4 # size_t
871 jg sys32_pread64 # branch to system call
873 .globl sys32_pwrite64_wrapper
874 sys32_pwrite64_wrapper:
875 llgfr %r2,%r2 # unsigned int
876 llgtr %r3,%r3 # const char *
877 llgfr %r4,%r4 # size_t
880 jg sys32_pwrite64 # branch to system call
882 .globl sys32_chown16_wrapper
883 sys32_chown16_wrapper:
884 llgtr %r2,%r2 # const char *
885 llgfr %r3,%r3 # __kernel_old_uid_emu31_t
886 llgfr %r4,%r4 # __kernel_old_gid_emu31_t
887 jg sys32_chown16 # branch to system call
889 .globl sys32_getcwd_wrapper
890 sys32_getcwd_wrapper:
891 llgtr %r2,%r2 # char *
892 llgfr %r3,%r3 # unsigned long
893 jg sys_getcwd # branch to system call
895 .globl sys32_capget_wrapper
896 sys32_capget_wrapper:
897 llgtr %r2,%r2 # cap_user_header_t
898 llgtr %r3,%r3 # cap_user_data_t
899 jg sys_capget # branch to system call
901 .globl sys32_capset_wrapper
902 sys32_capset_wrapper:
903 llgtr %r2,%r2 # cap_user_header_t
904 llgtr %r3,%r3 # const cap_user_data_t
905 jg sys_capset # branch to system call
907 .globl sys32_sigaltstack_wrapper
908 sys32_sigaltstack_wrapper:
909 llgtr %r2,%r2 # const stack_emu31_t *
910 llgtr %r3,%r3 # stack_emu31_t *
913 .globl sys32_sendfile_wrapper
914 sys32_sendfile_wrapper:
917 llgtr %r4,%r4 # __kernel_off_emu31_t *
918 llgfr %r5,%r5 # size_t
919 jg sys32_sendfile # branch to system call
921 #sys32_vfork_wrapper # done in vfork_glue
923 .globl sys32_truncate64_wrapper
924 sys32_truncate64_wrapper:
925 llgtr %r2,%r2 # const char *
926 llgfr %r3,%r3 # unsigned long
927 llgfr %r4,%r4 # unsigned long
928 jg sys32_truncate64 # branch to system call
930 .globl sys32_ftruncate64_wrapper
931 sys32_ftruncate64_wrapper:
932 llgfr %r2,%r2 # unsigned int
933 llgfr %r3,%r3 # unsigned long
934 llgfr %r4,%r4 # unsigned long
935 jg sys32_ftruncate64 # branch to system call
937 .globl sys32_lchown_wrapper
938 sys32_lchown_wrapper:
939 llgtr %r2,%r2 # const char *
940 llgfr %r3,%r3 # uid_t
941 llgfr %r4,%r4 # gid_t
942 jg sys_lchown # branch to system call
944 #sys32_getuid_wrapper # void
945 #sys32_getgid_wrapper # void
946 #sys32_geteuid_wrapper # void
947 #sys32_getegid_wrapper # void
949 .globl sys32_setreuid_wrapper
950 sys32_setreuid_wrapper:
951 llgfr %r2,%r2 # uid_t
952 llgfr %r3,%r3 # uid_t
953 jg sys_setreuid # branch to system call
955 .globl sys32_setregid_wrapper
956 sys32_setregid_wrapper:
957 llgfr %r2,%r2 # gid_t
958 llgfr %r3,%r3 # gid_t
959 jg sys_setregid # branch to system call
961 .globl sys32_getgroups_wrapper
962 sys32_getgroups_wrapper:
964 llgtr %r3,%r3 # gid_t *
965 jg sys_getgroups # branch to system call
967 .globl sys32_setgroups_wrapper
968 sys32_setgroups_wrapper:
970 llgtr %r3,%r3 # gid_t *
971 jg sys_setgroups # branch to system call
973 .globl sys32_fchown_wrapper
974 sys32_fchown_wrapper:
975 llgfr %r2,%r2 # unsigned int
976 llgfr %r3,%r3 # uid_t
977 llgfr %r4,%r4 # gid_t
978 jg sys_fchown # branch to system call
980 .globl sys32_setresuid_wrapper
981 sys32_setresuid_wrapper:
982 llgfr %r2,%r2 # uid_t
983 llgfr %r3,%r3 # uid_t
984 llgfr %r4,%r4 # uid_t
985 jg sys_setresuid # branch to system call
987 .globl sys32_getresuid_wrapper
988 sys32_getresuid_wrapper:
989 llgtr %r2,%r2 # uid_t *
990 llgtr %r3,%r3 # uid_t *
991 llgtr %r4,%r4 # uid_t *
992 jg sys_getresuid # branch to system call
994 .globl sys32_setresgid_wrapper
995 sys32_setresgid_wrapper:
996 llgfr %r2,%r2 # gid_t
997 llgfr %r3,%r3 # gid_t
998 llgfr %r4,%r4 # gid_t
999 jg sys_setresgid # branch to system call
1001 .globl sys32_getresgid_wrapper
1002 sys32_getresgid_wrapper:
1003 llgtr %r2,%r2 # gid_t *
1004 llgtr %r3,%r3 # gid_t *
1005 llgtr %r4,%r4 # gid_t *
1006 jg sys_getresgid # branch to system call
1008 .globl sys32_chown_wrapper
1009 sys32_chown_wrapper:
1010 llgtr %r2,%r2 # const char *
1011 llgfr %r3,%r3 # uid_t
1012 llgfr %r4,%r4 # gid_t
1013 jg sys_chown # branch to system call
1015 .globl sys32_setuid_wrapper
1016 sys32_setuid_wrapper:
1017 llgfr %r2,%r2 # uid_t
1018 jg sys_setuid # branch to system call
1020 .globl sys32_setgid_wrapper
1021 sys32_setgid_wrapper:
1022 llgfr %r2,%r2 # gid_t
1023 jg sys_setgid # branch to system call
1025 .globl sys32_setfsuid_wrapper
1026 sys32_setfsuid_wrapper:
1027 llgfr %r2,%r2 # uid_t
1028 jg sys_setfsuid # branch to system call
1030 .globl sys32_setfsgid_wrapper
1031 sys32_setfsgid_wrapper:
1032 llgfr %r2,%r2 # gid_t
1033 jg sys_setfsgid # branch to system call
1035 .globl sys32_pivot_root_wrapper
1036 sys32_pivot_root_wrapper:
1037 llgtr %r2,%r2 # const char *
1038 llgtr %r3,%r3 # const char *
1039 jg sys_pivot_root # branch to system call
1041 .globl sys32_mincore_wrapper
1042 sys32_mincore_wrapper:
1043 llgfr %r2,%r2 # unsigned long
1044 llgfr %r3,%r3 # size_t
1045 llgtr %r4,%r4 # unsigned char *
1046 jg sys_mincore # branch to system call
1048 .globl sys32_madvise_wrapper
1049 sys32_madvise_wrapper:
1050 llgfr %r2,%r2 # unsigned long
1051 llgfr %r3,%r3 # size_t
1053 jg sys_madvise # branch to system call
1055 .globl sys32_getdents64_wrapper
1056 sys32_getdents64_wrapper:
1057 llgfr %r2,%r2 # unsigned int
1058 llgtr %r3,%r3 # void *
1059 llgfr %r4,%r4 # unsigned int
1060 jg sys_getdents64 # branch to system call
1062 .globl compat_sys_fcntl64_wrapper
1063 compat_sys_fcntl64_wrapper:
1064 llgfr %r2,%r2 # unsigned int
1065 llgfr %r3,%r3 # unsigned int
1066 llgfr %r4,%r4 # unsigned long
1067 jg compat_sys_fcntl64 # branch to system call
1069 .globl sys32_stat64_wrapper
1070 sys32_stat64_wrapper:
1071 llgtr %r2,%r2 # char *
1072 llgtr %r3,%r3 # struct stat64 *
1073 jg sys32_stat64 # branch to system call
1075 .globl sys32_lstat64_wrapper
1076 sys32_lstat64_wrapper:
1077 llgtr %r2,%r2 # char *
1078 llgtr %r3,%r3 # struct stat64 *
1079 jg sys32_lstat64 # branch to system call
1081 .globl sys32_stime_wrapper
1082 sys32_stime_wrapper:
1083 llgtr %r2,%r2 # long *
1084 jg compat_sys_stime # branch to system call
1086 .globl sys32_sysctl_wrapper
1087 sys32_sysctl_wrapper:
1088 llgtr %r2,%r2 # struct compat_sysctl_args *
1089 jg compat_sys_sysctl
1091 .globl sys32_fstat64_wrapper
1092 sys32_fstat64_wrapper:
1093 llgfr %r2,%r2 # unsigned long
1094 llgtr %r3,%r3 # struct stat64 *
1095 jg sys32_fstat64 # branch to system call
1097 .globl compat_sys_futex_wrapper
1098 compat_sys_futex_wrapper:
1099 llgtr %r2,%r2 # u32 *
1102 llgtr %r5,%r5 # struct compat_timespec *
1103 llgtr %r6,%r6 # u32 *
1104 lgf %r0,164(%r15) # int
1106 jg compat_sys_futex # branch to system call
1108 .globl sys32_setxattr_wrapper
1109 sys32_setxattr_wrapper:
1110 llgtr %r2,%r2 # char *
1111 llgtr %r3,%r3 # char *
1112 llgtr %r4,%r4 # void *
1113 llgfr %r5,%r5 # size_t
1117 .globl sys32_lsetxattr_wrapper
1118 sys32_lsetxattr_wrapper:
1119 llgtr %r2,%r2 # char *
1120 llgtr %r3,%r3 # char *
1121 llgtr %r4,%r4 # void *
1122 llgfr %r5,%r5 # size_t
1126 .globl sys32_fsetxattr_wrapper
1127 sys32_fsetxattr_wrapper:
1129 llgtr %r3,%r3 # char *
1130 llgtr %r4,%r4 # void *
1131 llgfr %r5,%r5 # size_t
1135 .globl sys32_getxattr_wrapper
1136 sys32_getxattr_wrapper:
1137 llgtr %r2,%r2 # char *
1138 llgtr %r3,%r3 # char *
1139 llgtr %r4,%r4 # void *
1140 llgfr %r5,%r5 # size_t
1143 .globl sys32_lgetxattr_wrapper
1144 sys32_lgetxattr_wrapper:
1145 llgtr %r2,%r2 # char *
1146 llgtr %r3,%r3 # char *
1147 llgtr %r4,%r4 # void *
1148 llgfr %r5,%r5 # size_t
1151 .globl sys32_fgetxattr_wrapper
1152 sys32_fgetxattr_wrapper:
1154 llgtr %r3,%r3 # char *
1155 llgtr %r4,%r4 # void *
1156 llgfr %r5,%r5 # size_t
1159 .globl sys32_listxattr_wrapper
1160 sys32_listxattr_wrapper:
1161 llgtr %r2,%r2 # char *
1162 llgtr %r3,%r3 # char *
1163 llgfr %r4,%r4 # size_t
1166 .globl sys32_llistxattr_wrapper
1167 sys32_llistxattr_wrapper:
1168 llgtr %r2,%r2 # char *
1169 llgtr %r3,%r3 # char *
1170 llgfr %r4,%r4 # size_t
1173 .globl sys32_flistxattr_wrapper
1174 sys32_flistxattr_wrapper:
1176 llgtr %r3,%r3 # char *
1177 llgfr %r4,%r4 # size_t
1180 .globl sys32_removexattr_wrapper
1181 sys32_removexattr_wrapper:
1182 llgtr %r2,%r2 # char *
1183 llgtr %r3,%r3 # char *
1186 .globl sys32_lremovexattr_wrapper
1187 sys32_lremovexattr_wrapper:
1188 llgtr %r2,%r2 # char *
1189 llgtr %r3,%r3 # char *
1192 .globl sys32_fremovexattr_wrapper
1193 sys32_fremovexattr_wrapper:
1195 llgtr %r3,%r3 # char *
1198 .globl sys32_sched_setaffinity_wrapper
1199 sys32_sched_setaffinity_wrapper:
1201 llgfr %r3,%r3 # unsigned int
1202 llgtr %r4,%r4 # unsigned long *
1203 jg compat_sys_sched_setaffinity
1205 .globl sys32_sched_getaffinity_wrapper
1206 sys32_sched_getaffinity_wrapper:
1208 llgfr %r3,%r3 # unsigned int
1209 llgtr %r4,%r4 # unsigned long *
1210 jg compat_sys_sched_getaffinity
1212 .globl sys32_exit_group_wrapper
1213 sys32_exit_group_wrapper:
1215 jg sys_exit_group # branch to system call
1217 .globl sys32_set_tid_address_wrapper
1218 sys32_set_tid_address_wrapper:
1219 llgtr %r2,%r2 # int *
1220 jg sys_set_tid_address # branch to system call
1222 .globl sys_epoll_create_wrapper
1223 sys_epoll_create_wrapper:
1225 jg sys_epoll_create # branch to system call
1227 .globl sys_epoll_ctl_wrapper
1228 sys_epoll_ctl_wrapper:
1232 llgtr %r5,%r5 # struct epoll_event *
1233 jg sys_epoll_ctl # branch to system call
1235 .globl sys_epoll_wait_wrapper
1236 sys_epoll_wait_wrapper:
1238 llgtr %r3,%r3 # struct epoll_event *
1241 jg sys_epoll_wait # branch to system call
1243 .globl sys32_lookup_dcookie_wrapper
1244 sys32_lookup_dcookie_wrapper:
1245 sllg %r2,%r2,32 # get high word of 64bit dcookie
1246 or %r2,%r3 # get low word of 64bit dcookie
1247 llgtr %r3,%r4 # char *
1248 llgfr %r4,%r5 # size_t
1249 jg sys_lookup_dcookie
1251 .globl sys32_fadvise64_wrapper
1252 sys32_fadvise64_wrapper:
1254 sllg %r3,%r3,32 # get high word of 64bit loff_t
1255 or %r3,%r4 # get low word of 64bit loff_t
1256 llgfr %r4,%r5 # size_t (unsigned long)
1260 .globl sys32_fadvise64_64_wrapper
1261 sys32_fadvise64_64_wrapper:
1262 llgtr %r2,%r2 # struct fadvise64_64_args *
1263 jg sys32_fadvise64_64
1265 .globl sys32_clock_settime_wrapper
1266 sys32_clock_settime_wrapper:
1267 lgfr %r2,%r2 # clockid_t (int)
1268 llgtr %r3,%r3 # struct compat_timespec *
1269 jg compat_sys_clock_settime
1271 .globl sys32_clock_gettime_wrapper
1272 sys32_clock_gettime_wrapper:
1273 lgfr %r2,%r2 # clockid_t (int)
1274 llgtr %r3,%r3 # struct compat_timespec *
1275 jg compat_sys_clock_gettime
1277 .globl sys32_clock_getres_wrapper
1278 sys32_clock_getres_wrapper:
1279 lgfr %r2,%r2 # clockid_t (int)
1280 llgtr %r3,%r3 # struct compat_timespec *
1281 jg compat_sys_clock_getres
1283 .globl sys32_clock_nanosleep_wrapper
1284 sys32_clock_nanosleep_wrapper:
1285 lgfr %r2,%r2 # clockid_t (int)
1287 llgtr %r4,%r4 # struct compat_timespec *
1288 llgtr %r5,%r5 # struct compat_timespec *
1289 jg compat_sys_clock_nanosleep
1291 .globl sys32_timer_create_wrapper
1292 sys32_timer_create_wrapper:
1293 lgfr %r2,%r2 # timer_t (int)
1294 llgtr %r3,%r3 # struct compat_sigevent *
1295 llgtr %r4,%r4 # timer_t *
1296 jg compat_sys_timer_create
1298 .globl sys32_timer_settime_wrapper
1299 sys32_timer_settime_wrapper:
1300 lgfr %r2,%r2 # timer_t (int)
1302 llgtr %r4,%r4 # struct compat_itimerspec *
1303 llgtr %r5,%r5 # struct compat_itimerspec *
1304 jg compat_sys_timer_settime
1306 .globl sys32_timer_gettime_wrapper
1307 sys32_timer_gettime_wrapper:
1308 lgfr %r2,%r2 # timer_t (int)
1309 llgtr %r3,%r3 # struct compat_itimerspec *
1310 jg compat_sys_timer_gettime
1312 .globl sys32_timer_getoverrun_wrapper
1313 sys32_timer_getoverrun_wrapper:
1314 lgfr %r2,%r2 # timer_t (int)
1315 jg sys_timer_getoverrun
1317 .globl sys32_timer_delete_wrapper
1318 sys32_timer_delete_wrapper:
1319 lgfr %r2,%r2 # timer_t (int)
1322 .globl sys32_io_setup_wrapper
1323 sys32_io_setup_wrapper:
1324 llgfr %r2,%r2 # unsigned int
1325 llgtr %r3,%r3 # u32 *
1326 jg compat_sys_io_setup
1328 .globl sys32_io_destroy_wrapper
1329 sys32_io_destroy_wrapper:
1330 llgfr %r2,%r2 # (aio_context_t) u32
1333 .globl sys32_io_getevents_wrapper
1334 sys32_io_getevents_wrapper:
1335 llgfr %r2,%r2 # (aio_context_t) u32
1338 llgtr %r5,%r5 # struct io_event *
1339 llgtr %r6,%r6 # struct compat_timespec *
1340 jg compat_sys_io_getevents
1342 .globl sys32_io_submit_wrapper
1343 sys32_io_submit_wrapper:
1344 llgfr %r2,%r2 # (aio_context_t) u32
1346 llgtr %r4,%r4 # struct iocb **
1347 jg compat_sys_io_submit
1349 .globl sys32_io_cancel_wrapper
1350 sys32_io_cancel_wrapper:
1351 llgfr %r2,%r2 # (aio_context_t) u32
1352 llgtr %r3,%r3 # struct iocb *
1353 llgtr %r4,%r4 # struct io_event *
1356 .globl compat_sys_statfs64_wrapper
1357 compat_sys_statfs64_wrapper:
1358 llgtr %r2,%r2 # const char *
1359 llgfr %r3,%r3 # compat_size_t
1360 llgtr %r4,%r4 # struct compat_statfs64 *
1361 jg compat_sys_statfs64
1363 .globl compat_sys_fstatfs64_wrapper
1364 compat_sys_fstatfs64_wrapper:
1365 llgfr %r2,%r2 # unsigned int fd
1366 llgfr %r3,%r3 # compat_size_t
1367 llgtr %r4,%r4 # struct compat_statfs64 *
1368 jg compat_sys_fstatfs64
1370 .globl compat_sys_mq_open_wrapper
1371 compat_sys_mq_open_wrapper:
1372 llgtr %r2,%r2 # const char *
1374 llgfr %r4,%r4 # mode_t
1375 llgtr %r5,%r5 # struct compat_mq_attr *
1376 jg compat_sys_mq_open
1378 .globl sys32_mq_unlink_wrapper
1379 sys32_mq_unlink_wrapper:
1380 llgtr %r2,%r2 # const char *
1383 .globl compat_sys_mq_timedsend_wrapper
1384 compat_sys_mq_timedsend_wrapper:
1385 lgfr %r2,%r2 # mqd_t
1386 llgtr %r3,%r3 # const char *
1387 llgfr %r4,%r4 # size_t
1388 llgfr %r5,%r5 # unsigned int
1389 llgtr %r6,%r6 # const struct compat_timespec *
1390 jg compat_sys_mq_timedsend
1392 .globl compat_sys_mq_timedreceive_wrapper
1393 compat_sys_mq_timedreceive_wrapper:
1394 lgfr %r2,%r2 # mqd_t
1395 llgtr %r3,%r3 # char *
1396 llgfr %r4,%r4 # size_t
1397 llgtr %r5,%r5 # unsigned int *
1398 llgtr %r6,%r6 # const struct compat_timespec *
1399 jg compat_sys_mq_timedreceive
1401 .globl compat_sys_mq_notify_wrapper
1402 compat_sys_mq_notify_wrapper:
1403 lgfr %r2,%r2 # mqd_t
1404 llgtr %r3,%r3 # struct compat_sigevent *
1405 jg compat_sys_mq_notify
1407 .globl compat_sys_mq_getsetattr_wrapper
1408 compat_sys_mq_getsetattr_wrapper:
1409 lgfr %r2,%r2 # mqd_t
1410 llgtr %r3,%r3 # struct compat_mq_attr *
1411 llgtr %r4,%r4 # struct compat_mq_attr *
1412 jg compat_sys_mq_getsetattr
1414 .globl compat_sys_add_key_wrapper
1415 compat_sys_add_key_wrapper:
1416 llgtr %r2,%r2 # const char *
1417 llgtr %r3,%r3 # const char *
1418 llgtr %r4,%r4 # const void *
1419 llgfr %r5,%r5 # size_t
1420 llgfr %r6,%r6 # (key_serial_t) u32
1423 .globl compat_sys_request_key_wrapper
1424 compat_sys_request_key_wrapper:
1425 llgtr %r2,%r2 # const char *
1426 llgtr %r3,%r3 # const char *
1427 llgtr %r4,%r4 # const void *
1428 llgfr %r5,%r5 # (key_serial_t) u32
1431 .globl sys32_remap_file_pages_wrapper
1432 sys32_remap_file_pages_wrapper:
1433 llgfr %r2,%r2 # unsigned long
1434 llgfr %r3,%r3 # unsigned long
1435 llgfr %r4,%r4 # unsigned long
1436 llgfr %r5,%r5 # unsigned long
1437 llgfr %r6,%r6 # unsigned long
1438 jg sys_remap_file_pages
1440 .globl compat_sys_waitid_wrapper
1441 compat_sys_waitid_wrapper:
1443 lgfr %r3,%r3 # pid_t
1444 llgtr %r4,%r4 # siginfo_emu31_t *
1446 llgtr %r6,%r6 # struct rusage_emu31 *
1447 jg compat_sys_waitid
1449 .globl compat_sys_kexec_load_wrapper
1450 compat_sys_kexec_load_wrapper:
1451 llgfr %r2,%r2 # unsigned long
1452 llgfr %r3,%r3 # unsigned long
1453 llgtr %r4,%r4 # struct kexec_segment *
1454 llgfr %r5,%r5 # unsigned long
1455 jg compat_sys_kexec_load
1457 .globl sys_ioprio_set_wrapper
1458 sys_ioprio_set_wrapper:
1464 .globl sys_ioprio_get_wrapper
1465 sys_ioprio_get_wrapper:
1470 .globl sys_inotify_add_watch_wrapper
1471 sys_inotify_add_watch_wrapper:
1473 llgtr %r3,%r3 # const char *
1475 jg sys_inotify_add_watch
1477 .globl sys_inotify_rm_watch_wrapper
1478 sys_inotify_rm_watch_wrapper:
1481 jg sys_inotify_rm_watch
1483 .globl compat_sys_openat_wrapper
1484 compat_sys_openat_wrapper:
1485 llgfr %r2,%r2 # unsigned int
1486 llgtr %r3,%r3 # const char *
1489 jg compat_sys_openat
1491 .globl sys_mkdirat_wrapper
1492 sys_mkdirat_wrapper:
1494 llgtr %r3,%r3 # const char *
1498 .globl sys_mknodat_wrapper
1499 sys_mknodat_wrapper:
1501 llgtr %r3,%r3 # const char *
1503 llgfr %r5,%r5 # unsigned int
1506 .globl sys_fchownat_wrapper
1507 sys_fchownat_wrapper:
1509 llgtr %r3,%r3 # const char *
1510 llgfr %r4,%r4 # uid_t
1511 llgfr %r5,%r5 # gid_t
1515 .globl compat_sys_futimesat_wrapper
1516 compat_sys_futimesat_wrapper:
1517 llgfr %r2,%r2 # unsigned int
1518 llgtr %r3,%r3 # char *
1519 llgtr %r4,%r4 # struct timeval *
1520 jg compat_sys_futimesat
1522 .globl sys32_fstatat64_wrapper
1523 sys32_fstatat64_wrapper:
1524 llgfr %r2,%r2 # unsigned int
1525 llgtr %r3,%r3 # char *
1526 llgtr %r4,%r4 # struct stat64 *
1530 .globl sys_unlinkat_wrapper
1531 sys_unlinkat_wrapper:
1533 llgtr %r3,%r3 # const char *
1537 .globl sys_renameat_wrapper
1538 sys_renameat_wrapper:
1540 llgtr %r3,%r3 # const char *
1542 llgtr %r5,%r5 # const char *
1545 .globl sys_linkat_wrapper
1548 llgtr %r3,%r3 # const char *
1550 llgtr %r5,%r5 # const char *
1554 .globl sys_symlinkat_wrapper
1555 sys_symlinkat_wrapper:
1556 llgtr %r2,%r2 # const char *
1558 llgtr %r4,%r4 # const char *
1561 .globl sys_readlinkat_wrapper
1562 sys_readlinkat_wrapper:
1564 llgtr %r3,%r3 # const char *
1565 llgtr %r4,%r4 # char *
1569 .globl sys_fchmodat_wrapper
1570 sys_fchmodat_wrapper:
1572 llgtr %r3,%r3 # const char *
1573 llgfr %r4,%r4 # mode_t
1576 .globl sys_faccessat_wrapper
1577 sys_faccessat_wrapper:
1579 llgtr %r3,%r3 # const char *
1583 .globl compat_sys_pselect6_wrapper
1584 compat_sys_pselect6_wrapper:
1586 llgtr %r3,%r3 # fd_set *
1587 llgtr %r4,%r4 # fd_set *
1588 llgtr %r5,%r5 # fd_set *
1589 llgtr %r6,%r6 # struct timespec *
1590 llgt %r0,164(%r15) # void *
1592 jg compat_sys_pselect6
1594 .globl compat_sys_ppoll_wrapper
1595 compat_sys_ppoll_wrapper:
1596 llgtr %r2,%r2 # struct pollfd *
1597 llgfr %r3,%r3 # unsigned int
1598 llgtr %r4,%r4 # struct timespec *
1599 llgtr %r5,%r5 # const sigset_t *
1600 llgfr %r6,%r6 # size_t
1603 .globl sys_unshare_wrapper
1604 sys_unshare_wrapper:
1605 llgfr %r2,%r2 # unsigned long
1608 .globl compat_sys_set_robust_list_wrapper
1609 compat_sys_set_robust_list_wrapper:
1610 llgtr %r2,%r2 # struct compat_robust_list_head *
1611 llgfr %r3,%r3 # size_t
1612 jg compat_sys_set_robust_list
1614 .globl compat_sys_get_robust_list_wrapper
1615 compat_sys_get_robust_list_wrapper:
1617 llgtr %r3,%r3 # compat_uptr_t_t *
1618 llgtr %r4,%r4 # compat_size_t *
1619 jg compat_sys_get_robust_list
1621 .globl sys_splice_wrapper
1624 llgtr %r3,%r3 # loff_t *
1626 llgtr %r5,%r5 # loff_t *
1627 llgfr %r6,%r6 # size_t
1628 llgf %r0,164(%r15) # unsigned int
1632 .globl sys_sync_file_range_wrapper
1633 sys_sync_file_range_wrapper:
1635 sllg %r3,%r3,32 # get high word of 64bit loff_t
1636 or %r3,%r4 # get low word of 64bit loff_t
1637 sllg %r4,%r5,32 # get high word of 64bit loff_t
1638 or %r4,%r6 # get low word of 64bit loff_t
1639 llgf %r5,164(%r15) # unsigned int
1640 jg sys_sync_file_range
1642 .globl sys_tee_wrapper
1646 llgfr %r4,%r4 # size_t
1647 llgfr %r5,%r5 # unsigned int
1650 .globl compat_sys_vmsplice_wrapper
1651 compat_sys_vmsplice_wrapper:
1653 llgtr %r3,%r3 # compat_iovec *
1654 llgfr %r4,%r4 # unsigned int
1655 llgfr %r5,%r5 # unsigned int
1656 jg compat_sys_vmsplice
1658 .globl sys_getcpu_wrapper
1660 llgtr %r2,%r2 # unsigned *
1661 llgtr %r3,%r3 # unsigned *
1662 llgtr %r4,%r4 # struct getcpu_cache *
1665 .globl compat_sys_epoll_pwait_wrapper
1666 compat_sys_epoll_pwait_wrapper:
1668 llgtr %r3,%r3 # struct compat_epoll_event *
1671 llgtr %r6,%r6 # compat_sigset_t *
1672 llgf %r0,164(%r15) # compat_size_t
1674 jg compat_sys_epoll_pwait
1676 .globl compat_sys_utimes_wrapper
1677 compat_sys_utimes_wrapper:
1678 llgtr %r2,%r2 # char *
1679 llgtr %r3,%r3 # struct compat_timeval *
1680 jg compat_sys_utimes
1682 .globl compat_sys_utimensat_wrapper
1683 compat_sys_utimensat_wrapper:
1684 llgfr %r2,%r2 # unsigned int
1685 llgtr %r3,%r3 # char *
1686 llgtr %r4,%r4 # struct compat_timespec *
1688 jg compat_sys_utimensat
1690 .globl compat_sys_signalfd_wrapper
1691 compat_sys_signalfd_wrapper:
1693 llgtr %r3,%r3 # compat_sigset_t *
1694 llgfr %r4,%r4 # compat_size_t
1695 jg compat_sys_signalfd
1697 .globl sys_eventfd_wrapper
1698 sys_eventfd_wrapper:
1699 llgfr %r2,%r2 # unsigned int
1702 .globl sys_fallocate_wrapper
1703 sys_fallocate_wrapper:
1706 sllg %r4,%r4,32 # get high word of 64bit loff_t
1707 lr %r4,%r5 # get low word of 64bit loff_t
1708 sllg %r5,%r6,32 # get high word of 64bit loff_t
1709 l %r5,164(%r15) # get low word of 64bit loff_t
1712 .globl sys_timerfd_create_wrapper
1713 sys_timerfd_create_wrapper:
1716 jg sys_timerfd_create
1718 .globl compat_sys_timerfd_settime_wrapper
1719 compat_sys_timerfd_settime_wrapper:
1722 llgtr %r4,%r4 # struct compat_itimerspec *
1723 llgtr %r5,%r5 # struct compat_itimerspec *
1724 jg compat_sys_timerfd_settime
1726 .globl compat_sys_timerfd_gettime_wrapper
1727 compat_sys_timerfd_gettime_wrapper:
1729 llgtr %r3,%r3 # struct compat_itimerspec *
1730 jg compat_sys_timerfd_gettime
1732 .globl compat_sys_signalfd4_wrapper
1733 compat_sys_signalfd4_wrapper:
1735 llgtr %r3,%r3 # compat_sigset_t *
1736 llgfr %r4,%r4 # compat_size_t
1738 jg compat_sys_signalfd4
1740 .globl sys_eventfd2_wrapper
1741 sys_eventfd2_wrapper:
1742 llgfr %r2,%r2 # unsigned int
1746 .globl sys_inotify_init1_wrapper
1747 sys_inotify_init1_wrapper:
1749 jg sys_inotify_init1
1751 .globl sys_pipe2_wrapper
1753 llgtr %r2,%r2 # u32 *
1755 jg sys_pipe2 # branch to system call
1757 .globl sys_dup3_wrapper
1759 llgfr %r2,%r2 # unsigned int
1760 llgfr %r3,%r3 # unsigned int
1762 jg sys_dup3 # branch to system call
1764 .globl sys_epoll_create1_wrapper
1765 sys_epoll_create1_wrapper:
1767 jg sys_epoll_create1 # branch to system call
1769 .globl sys32_readahead_wrapper
1770 sys32_readahead_wrapper:
1775 jg sys32_readahead # branch to system call
1777 .globl sys32_sendfile64_wrapper
1778 sys32_sendfile64_wrapper:
1781 llgtr %r4,%r4 # compat_loff_t *
1783 jg sys32_sendfile64 # branch to system call
1785 .globl sys_tkill_wrapper
1787 lgfr %r2,%r2 # pid_t
1789 jg sys_tkill # branch to system call
1791 .globl sys_tgkill_wrapper
1793 lgfr %r2,%r2 # pid_t
1794 lgfr %r3,%r3 # pid_t
1796 jg sys_tgkill # branch to system call
1798 .globl compat_sys_keyctl_wrapper
1799 compat_sys_keyctl_wrapper:
1805 jg compat_sys_keyctl # branch to system call
1807 .globl compat_sys_preadv_wrapper
1808 compat_sys_preadv_wrapper:
1809 llgfr %r2,%r2 # unsigned long
1810 llgtr %r3,%r3 # compat_iovec *
1811 llgfr %r4,%r4 # unsigned long
1814 jg compat_sys_preadv # branch to system call
1816 .globl compat_sys_pwritev_wrapper
1817 compat_sys_pwritev_wrapper:
1818 llgfr %r2,%r2 # unsigned long
1819 llgtr %r3,%r3 # compat_iovec *
1820 llgfr %r4,%r4 # unsigned long
1823 jg compat_sys_pwritev # branch to system call
1825 .globl compat_sys_rt_tgsigqueueinfo_wrapper
1826 compat_sys_rt_tgsigqueueinfo_wrapper:
1827 lgfr %r2,%r2 # compat_pid_t
1828 lgfr %r3,%r3 # compat_pid_t
1830 llgtr %r5,%r5 # struct compat_siginfo *
1831 jg compat_sys_rt_tgsigqueueinfo_wrapper # branch to system call
1833 .globl sys_perf_event_open_wrapper
1834 sys_perf_event_open_wrapper:
1835 llgtr %r2,%r2 # const struct perf_event_attr *
1836 lgfr %r3,%r3 # pid_t
1839 llgfr %r6,%r6 # unsigned long
1840 jg sys_perf_event_open # branch to system call
1842 .globl sys_clone_wrapper
1844 llgfr %r2,%r2 # unsigned long
1845 llgfr %r3,%r3 # unsigned long
1846 llgtr %r4,%r4 # int *
1847 llgtr %r5,%r5 # int *
1848 jg sys_clone # branch to system call
1850 .globl sys32_execve_wrapper
1851 sys32_execve_wrapper:
1852 llgtr %r2,%r2 # char *
1853 llgtr %r3,%r3 # compat_uptr_t *
1854 llgtr %r4,%r4 # compat_uptr_t *
1855 jg sys32_execve # branch to system call
1857 .globl sys_fanotify_init_wrapper
1858 sys_fanotify_init_wrapper:
1859 llgfr %r2,%r2 # unsigned int
1860 llgfr %r3,%r3 # unsigned int
1861 jg sys_fanotify_init # branch to system call
1863 .globl sys_fanotify_mark_wrapper
1864 sys_fanotify_mark_wrapper:
1866 llgfr %r3,%r3 # unsigned int
1867 sllg %r4,%r4,32 # get high word of 64bit mask
1868 lr %r4,%r5 # get low word of 64bit mask
1869 llgfr %r5,%r6 # unsigned int
1870 llgt %r6,164(%r15) # char *
1871 jg sys_fanotify_mark # branch to system call
1873 .globl sys_prlimit64_wrapper
1874 sys_prlimit64_wrapper:
1875 lgfr %r2,%r2 # pid_t
1876 llgfr %r3,%r3 # unsigned int
1877 llgtr %r4,%r4 # const struct rlimit64 __user *
1878 llgtr %r5,%r5 # struct rlimit64 __user *
1879 jg sys_prlimit64 # branch to system call
1881 .globl sys_name_to_handle_at_wrapper
1882 sys_name_to_handle_at_wrapper:
1884 llgtr %r3,%r3 # const char __user *
1885 llgtr %r4,%r4 # struct file_handle __user *
1886 llgtr %r5,%r5 # int __user *
1888 jg sys_name_to_handle_at
1890 .globl compat_sys_open_by_handle_at_wrapper
1891 compat_sys_open_by_handle_at_wrapper:
1893 llgtr %r3,%r3 # struct file_handle __user *
1895 jg compat_sys_open_by_handle_at
1897 .globl compat_sys_clock_adjtime_wrapper
1898 compat_sys_clock_adjtime_wrapper:
1899 lgfr %r2,%r2 # clockid_t (int)
1900 llgtr %r3,%r3 # struct compat_timex __user *
1901 jg compat_sys_clock_adjtime
1903 .globl sys_syncfs_wrapper
1908 .globl sys_setns_wrapper