1 |
1275 |
phoenix |
/*
|
2 |
|
|
* arch/s390/kernel/sys_wrapper31.S
|
3 |
|
|
* wrapper for 31 bit compatible system calls.
|
4 |
|
|
*
|
5 |
|
|
* S390 version
|
6 |
|
|
* Copyright (C) 2000 IBM Deutschland Entwicklung GmbH, IBM Corporation
|
7 |
|
|
* Author(s): Gerhard Tonn (ton@de.ibm.com),
|
8 |
|
|
*/
|
9 |
|
|
|
10 |
|
|
.globl sys32_exit_wrapper
|
11 |
|
|
sys32_exit_wrapper:
|
12 |
|
|
lgfr %r2,%r2 # int
|
13 |
|
|
jg sys_exit # branch to sys_exit
|
14 |
|
|
|
15 |
|
|
.globl sys32_read_wrapper
|
16 |
|
|
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
|
21 |
|
|
|
22 |
|
|
.globl sys32_write_wrapper
|
23 |
|
|
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
|
28 |
|
|
|
29 |
|
|
.globl sys32_open_wrapper
|
30 |
|
|
sys32_open_wrapper:
|
31 |
|
|
llgtr %r2,%r2 # const char *
|
32 |
|
|
lgfr %r3,%r3 # int
|
33 |
|
|
lgfr %r4,%r4 # int
|
34 |
|
|
jg sys_open # branch to system call
|
35 |
|
|
|
36 |
|
|
.globl sys32_close_wrapper
|
37 |
|
|
sys32_close_wrapper:
|
38 |
|
|
llgfr %r2,%r2 # unsigned int
|
39 |
|
|
jg sys_close # branch to system call
|
40 |
|
|
|
41 |
|
|
.globl sys32_creat_wrapper
|
42 |
|
|
sys32_creat_wrapper:
|
43 |
|
|
llgtr %r2,%r2 # const char *
|
44 |
|
|
lgfr %r3,%r3 # int
|
45 |
|
|
jg sys_creat # branch to system call
|
46 |
|
|
|
47 |
|
|
.globl sys32_link_wrapper
|
48 |
|
|
sys32_link_wrapper:
|
49 |
|
|
llgtr %r2,%r2 # const char *
|
50 |
|
|
llgtr %r3,%r3 # const char *
|
51 |
|
|
jg sys_link # branch to system call
|
52 |
|
|
|
53 |
|
|
.globl sys32_unlink_wrapper
|
54 |
|
|
sys32_unlink_wrapper:
|
55 |
|
|
llgtr %r2,%r2 # const char *
|
56 |
|
|
jg sys_unlink # branch to system call
|
57 |
|
|
|
58 |
|
|
.globl sys32_chdir_wrapper
|
59 |
|
|
sys32_chdir_wrapper:
|
60 |
|
|
llgtr %r2,%r2 # const char *
|
61 |
|
|
jg sys_chdir # branch to system call
|
62 |
|
|
|
63 |
|
|
.globl sys32_time_wrapper
|
64 |
|
|
sys32_time_wrapper:
|
65 |
|
|
llgtr %r2,%r2 # int *
|
66 |
|
|
jg sys_time # branch to system call
|
67 |
|
|
|
68 |
|
|
.globl sys32_mknod_wrapper
|
69 |
|
|
sys32_mknod_wrapper:
|
70 |
|
|
llgtr %r2,%r2 # const char *
|
71 |
|
|
lgfr %r3,%r3 # int
|
72 |
|
|
llgfr %r4,%r4 # dev
|
73 |
|
|
jg sys_mknod # branch to system call
|
74 |
|
|
|
75 |
|
|
.globl sys32_chmod_wrapper
|
76 |
|
|
sys32_chmod_wrapper:
|
77 |
|
|
llgtr %r2,%r2 # const char *
|
78 |
|
|
llgfr %r3,%r3 # mode_t
|
79 |
|
|
jg sys_chmod # branch to system call
|
80 |
|
|
|
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
|
87 |
|
|
|
88 |
|
|
.globl sys32_lseek_wrapper
|
89 |
|
|
sys32_lseek_wrapper:
|
90 |
|
|
llgfr %r2,%r2 # unsigned int
|
91 |
|
|
lgfr %r3,%r3 # off_t
|
92 |
|
|
llgfr %r4,%r4 # unsigned int
|
93 |
|
|
jg sys_lseek # branch to system call
|
94 |
|
|
|
95 |
|
|
#sys32_getpid_wrapper # void
|
96 |
|
|
|
97 |
|
|
.globl sys32_mount_wrapper
|
98 |
|
|
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 sys32_mount # branch to system call
|
105 |
|
|
|
106 |
|
|
.globl sys32_oldumount_wrapper
|
107 |
|
|
sys32_oldumount_wrapper:
|
108 |
|
|
llgtr %r2,%r2 # char *
|
109 |
|
|
jg sys_oldumount # branch to system call
|
110 |
|
|
|
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
|
115 |
|
|
|
116 |
|
|
#sys32_getuid16_wrapper # void
|
117 |
|
|
|
118 |
|
|
.globl sys32_ptrace_wrapper
|
119 |
|
|
sys32_ptrace_wrapper:
|
120 |
|
|
lgfr %r2,%r2 # long
|
121 |
|
|
lgfr %r3,%r3 # long
|
122 |
|
|
llgtr %r4,%r4 # long
|
123 |
|
|
llgfr %r5,%r5 # long
|
124 |
|
|
jg sys_ptrace # branch to system call
|
125 |
|
|
|
126 |
|
|
.globl sys32_alarm_wrapper
|
127 |
|
|
sys32_alarm_wrapper:
|
128 |
|
|
llgtr %r2,%r2 # unsigned int
|
129 |
|
|
jg sys_alarm # branch to system call
|
130 |
|
|
|
131 |
|
|
#sys32_pause_wrapper # void
|
132 |
|
|
|
133 |
|
|
.globl sys32_utime_wrapper
|
134 |
|
|
sys32_utime_wrapper:
|
135 |
|
|
llgtr %r2,%r2 # char *
|
136 |
|
|
llgtr %r3,%r3 # struct utimbuf_emu31 *
|
137 |
|
|
jg sys32_utime # branch to system call
|
138 |
|
|
|
139 |
|
|
.globl sys32_access_wrapper
|
140 |
|
|
sys32_access_wrapper:
|
141 |
|
|
llgtr %r2,%r2 # const char *
|
142 |
|
|
lgfr %r3,%r3 # int
|
143 |
|
|
jg sys_access # branch to system call
|
144 |
|
|
|
145 |
|
|
.globl sys32_nice_wrapper
|
146 |
|
|
sys32_nice_wrapper:
|
147 |
|
|
lgfr %r2,%r2 # int
|
148 |
|
|
jg sys_nice # branch to system call
|
149 |
|
|
|
150 |
|
|
#sys32_sync_wrapper # void
|
151 |
|
|
|
152 |
|
|
.globl sys32_kill_wrapper
|
153 |
|
|
sys32_kill_wrapper:
|
154 |
|
|
lgfr %r2,%r2 # int
|
155 |
|
|
lgfr %r3,%r3 # int
|
156 |
|
|
jg sys_kill # branch to system call
|
157 |
|
|
|
158 |
|
|
.globl sys32_rename_wrapper
|
159 |
|
|
sys32_rename_wrapper:
|
160 |
|
|
llgtr %r2,%r2 # const char *
|
161 |
|
|
llgtr %r3,%r3 # const char *
|
162 |
|
|
jg sys_rename # branch to system call
|
163 |
|
|
|
164 |
|
|
.globl sys32_mkdir_wrapper
|
165 |
|
|
sys32_mkdir_wrapper:
|
166 |
|
|
llgtr %r2,%r2 # const char *
|
167 |
|
|
lgfr %r3,%r3 # int
|
168 |
|
|
jg sys_mkdir # branch to system call
|
169 |
|
|
|
170 |
|
|
.globl sys32_rmdir_wrapper
|
171 |
|
|
sys32_rmdir_wrapper:
|
172 |
|
|
llgtr %r2,%r2 # const char *
|
173 |
|
|
jg sys_rmdir # branch to system call
|
174 |
|
|
|
175 |
|
|
.globl sys32_dup_wrapper
|
176 |
|
|
sys32_dup_wrapper:
|
177 |
|
|
llgfr %r2,%r2 # unsigned int
|
178 |
|
|
jg sys_dup # branch to system call
|
179 |
|
|
|
180 |
|
|
.globl sys32_pipe_wrapper
|
181 |
|
|
sys32_pipe_wrapper:
|
182 |
|
|
llgtr %r2,%r2 # u32 *
|
183 |
|
|
jg sys_pipe # branch to system call
|
184 |
|
|
|
185 |
|
|
.globl sys32_times_wrapper
|
186 |
|
|
sys32_times_wrapper:
|
187 |
|
|
llgtr %r2,%r2 # struct tms_emu31 *
|
188 |
|
|
jg sys32_times # branch to system call
|
189 |
|
|
|
190 |
|
|
.globl sys32_brk_wrapper
|
191 |
|
|
sys32_brk_wrapper:
|
192 |
|
|
llgtr %r2,%r2 # unsigned long
|
193 |
|
|
jg sys_brk # branch to system call
|
194 |
|
|
|
195 |
|
|
.globl sys32_setgid16_wrapper
|
196 |
|
|
sys32_setgid16_wrapper:
|
197 |
|
|
llgfr %r2,%r2 # __kernel_old_gid_emu31_t
|
198 |
|
|
jg sys32_setgid16 # branch to system call
|
199 |
|
|
|
200 |
|
|
#sys32_getgid16_wrapper # void
|
201 |
|
|
|
202 |
|
|
.globl sys32_signal_wrapper
|
203 |
|
|
sys32_signal_wrapper:
|
204 |
|
|
lgfr %r2,%r2 # int
|
205 |
|
|
llgfr %r3,%r3 # __sighandler_t
|
206 |
|
|
jg sys_signal
|
207 |
|
|
|
208 |
|
|
#sys32_geteuid16_wrapper # void
|
209 |
|
|
|
210 |
|
|
#sys32_getegid16_wrapper # void
|
211 |
|
|
|
212 |
|
|
.globl sys32_acct_wrapper
|
213 |
|
|
sys32_acct_wrapper:
|
214 |
|
|
llgtr %r2,%r2 # char *
|
215 |
|
|
jg sys_acct # branch to system call
|
216 |
|
|
|
217 |
|
|
.globl sys32_umount_wrapper
|
218 |
|
|
sys32_umount_wrapper:
|
219 |
|
|
llgtr %r2,%r2 # char *
|
220 |
|
|
lgfr %r3,%r3 # int
|
221 |
|
|
jg sys_umount # branch to system call
|
222 |
|
|
|
223 |
|
|
.globl sys32_ioctl_wrapper
|
224 |
|
|
sys32_ioctl_wrapper:
|
225 |
|
|
llgfr %r2,%r2 # unsigned int
|
226 |
|
|
llgfr %r3,%r3 # unsigned int
|
227 |
|
|
llgfr %r4,%r4 # unsigned int
|
228 |
|
|
jg sys32_ioctl # branch to system call
|
229 |
|
|
|
230 |
|
|
.globl sys32_fcntl_wrapper
|
231 |
|
|
sys32_fcntl_wrapper:
|
232 |
|
|
llgfr %r2,%r2 # unsigned int
|
233 |
|
|
llgfr %r3,%r3 # unsigned int
|
234 |
|
|
llgfr %r4,%r4 # unsigned long
|
235 |
|
|
jg sys32_fcntl # branch to system call
|
236 |
|
|
|
237 |
|
|
.globl sys32_setpgid_wrapper
|
238 |
|
|
sys32_setpgid_wrapper:
|
239 |
|
|
lgfr %r2,%r2 # pid_t
|
240 |
|
|
lgfr %r3,%r3 # pid_t
|
241 |
|
|
jg sys_setpgid # branch to system call
|
242 |
|
|
|
243 |
|
|
.globl sys32_umask_wrapper
|
244 |
|
|
sys32_umask_wrapper:
|
245 |
|
|
lgfr %r3,%r3 # int
|
246 |
|
|
jg sys_umask # branch to system call
|
247 |
|
|
|
248 |
|
|
.globl sys32_chroot_wrapper
|
249 |
|
|
sys32_chroot_wrapper:
|
250 |
|
|
llgtr %r2,%r2 # char *
|
251 |
|
|
jg sys_chroot # branch to system call
|
252 |
|
|
|
253 |
|
|
.globl sys32_ustat_wrapper
|
254 |
|
|
sys32_ustat_wrapper:
|
255 |
|
|
llgfr %r2,%r2 # dev_t
|
256 |
|
|
llgtr %r3,%r3 # struct ustat *
|
257 |
|
|
jg sys_ustat
|
258 |
|
|
|
259 |
|
|
.globl sys32_dup2_wrapper
|
260 |
|
|
sys32_dup2_wrapper:
|
261 |
|
|
llgfr %r2,%r2 # unsigned int
|
262 |
|
|
llgfr %r3,%r3 # unsigned int
|
263 |
|
|
jg sys_dup2 # branch to system call
|
264 |
|
|
|
265 |
|
|
#sys32_getppid_wrapper # void
|
266 |
|
|
|
267 |
|
|
#sys32_getpgrp_wrapper # void
|
268 |
|
|
|
269 |
|
|
#sys32_setsid_wrapper # void
|
270 |
|
|
|
271 |
|
|
.globl sys32_sigaction_wrapper
|
272 |
|
|
sys32_sigaction_wrapper:
|
273 |
|
|
lgfr %r2,%r2 # int
|
274 |
|
|
llgtr %r3,%r3 # const struct old_sigaction *
|
275 |
|
|
jg sys32_sigaction # branch to system call
|
276 |
|
|
|
277 |
|
|
.globl sys32_setreuid16_wrapper
|
278 |
|
|
sys32_setreuid16_wrapper:
|
279 |
|
|
llgfr %r2,%r2 # __kernel_old_uid_emu31_t
|
280 |
|
|
llgfr %r3,%r3 # __kernel_old_uid_emu31_t
|
281 |
|
|
jg sys32_setreuid16 # branch to system call
|
282 |
|
|
|
283 |
|
|
.globl sys32_setregid16_wrapper
|
284 |
|
|
sys32_setregid16_wrapper:
|
285 |
|
|
llgfr %r2,%r2 # __kernel_old_gid_emu31_t
|
286 |
|
|
llgfr %r3,%r3 # __kernel_old_gid_emu31_t
|
287 |
|
|
jg sys32_setregid16 # branch to system call
|
288 |
|
|
|
289 |
|
|
#sys32_sigsuspend_wrapper # done in sigsuspend_glue
|
290 |
|
|
|
291 |
|
|
.globl sys32_sigpending_wrapper
|
292 |
|
|
sys32_sigpending_wrapper:
|
293 |
|
|
llgtr %r2,%r2 # old_sigset_emu31_t *
|
294 |
|
|
jg sys32_sigpending # branch to system call
|
295 |
|
|
|
296 |
|
|
.globl sys32_sethostname_wrapper
|
297 |
|
|
sys32_sethostname_wrapper:
|
298 |
|
|
llgtr %r2,%r2 # char *
|
299 |
|
|
lgfr %r3,%r3 # int
|
300 |
|
|
jg sys_sethostname # branch to system call
|
301 |
|
|
|
302 |
|
|
.globl sys32_setrlimit_wrapper
|
303 |
|
|
sys32_setrlimit_wrapper:
|
304 |
|
|
llgfr %r2,%r2 # unsigned int
|
305 |
|
|
llgtr %r3,%r3 # struct rlimit_emu31 *
|
306 |
|
|
jg sys32_setrlimit # branch to system call
|
307 |
|
|
|
308 |
|
|
.globl sys32_old_getrlimit_wrapper
|
309 |
|
|
sys32_old_getrlimit_wrapper:
|
310 |
|
|
llgfr %r2,%r2 # unsigned int
|
311 |
|
|
llgtr %r3,%r3 # struct rlimit_emu31 *
|
312 |
|
|
jg sys32_old_getrlimit # branch to system call
|
313 |
|
|
|
314 |
|
|
.globl sys32_getrlimit_wrapper
|
315 |
|
|
sys32_getrlimit_wrapper:
|
316 |
|
|
llgfr %r2,%r2 # unsigned int
|
317 |
|
|
llgtr %r3,%r3 # struct rlimit_emu31 *
|
318 |
|
|
jg sys32_getrlimit # branch to system call
|
319 |
|
|
|
320 |
|
|
.globl sys32_mmap2_wrapper
|
321 |
|
|
sys32_mmap2_wrapper:
|
322 |
|
|
llgtr %r2,%r2 # struct mmap_arg_struct_emu31 *
|
323 |
|
|
jg sys32_mmap2 # branch to system call
|
324 |
|
|
|
325 |
|
|
.globl sys32_getrusage_wrapper
|
326 |
|
|
sys32_getrusage_wrapper:
|
327 |
|
|
lgfr %r2,%r2 # int
|
328 |
|
|
llgtr %r3,%r3 # struct rusage_emu31 *
|
329 |
|
|
jg sys32_getrusage # branch to system call
|
330 |
|
|
|
331 |
|
|
.globl sys32_gettimeofday_wrapper
|
332 |
|
|
sys32_gettimeofday_wrapper:
|
333 |
|
|
llgtr %r2,%r2 # struct timeval_emu31 *
|
334 |
|
|
llgtr %r3,%r3 # struct timezone *
|
335 |
|
|
jg sys32_gettimeofday # branch to system call
|
336 |
|
|
|
337 |
|
|
.globl sys32_settimeofday_wrapper
|
338 |
|
|
sys32_settimeofday_wrapper:
|
339 |
|
|
llgtr %r2,%r2 # struct timeval_emu31 *
|
340 |
|
|
llgtr %r3,%r3 # struct timezone *
|
341 |
|
|
jg sys32_settimeofday # branch to system call
|
342 |
|
|
|
343 |
|
|
.globl sys32_getgroups16_wrapper
|
344 |
|
|
sys32_getgroups16_wrapper:
|
345 |
|
|
lgfr %r2,%r2 # int
|
346 |
|
|
llgtr %r3,%r3 # __kernel_old_gid_emu31_t *
|
347 |
|
|
jg sys32_getgroups16 # branch to system call
|
348 |
|
|
|
349 |
|
|
.globl sys32_setgroups16_wrapper
|
350 |
|
|
sys32_setgroups16_wrapper:
|
351 |
|
|
lgfr %r2,%r2 # int
|
352 |
|
|
llgtr %r3,%r3 # __kernel_old_gid_emu31_t *
|
353 |
|
|
jg sys32_setgroups16 # branch to system call
|
354 |
|
|
|
355 |
|
|
.globl sys32_symlink_wrapper
|
356 |
|
|
sys32_symlink_wrapper:
|
357 |
|
|
llgtr %r2,%r2 # const char *
|
358 |
|
|
llgtr %r3,%r3 # const char *
|
359 |
|
|
jg sys_symlink # branch to system call
|
360 |
|
|
|
361 |
|
|
.globl sys32_readlink_wrapper
|
362 |
|
|
sys32_readlink_wrapper:
|
363 |
|
|
llgtr %r2,%r2 # const char *
|
364 |
|
|
llgtr %r3,%r3 # char *
|
365 |
|
|
lgfr %r4,%r4 # int
|
366 |
|
|
jg sys_readlink # branch to system call
|
367 |
|
|
|
368 |
|
|
.globl sys32_uselib_wrapper
|
369 |
|
|
sys32_uselib_wrapper:
|
370 |
|
|
llgtr %r2,%r2 # const char *
|
371 |
|
|
jg sys_uselib # branch to system call
|
372 |
|
|
|
373 |
|
|
.globl sys32_swapon_wrapper
|
374 |
|
|
sys32_swapon_wrapper:
|
375 |
|
|
llgtr %r2,%r2 # const char *
|
376 |
|
|
lgfr %r3,%r3 # int
|
377 |
|
|
jg sys_swapon # branch to system call
|
378 |
|
|
|
379 |
|
|
.globl sys32_reboot_wrapper
|
380 |
|
|
sys32_reboot_wrapper:
|
381 |
|
|
lgfr %r2,%r2 # int
|
382 |
|
|
lgfr %r3,%r3 # int
|
383 |
|
|
llgfr %r4,%r4 # unsigned int
|
384 |
|
|
llgtr %r5,%r5 # void *
|
385 |
|
|
jg sys_reboot # branch to system call
|
386 |
|
|
|
387 |
|
|
.globl old32_readdir_wrapper
|
388 |
|
|
old32_readdir_wrapper:
|
389 |
|
|
llgfr %r2,%r2 # unsigned int
|
390 |
|
|
llgtr %r3,%r3 # void *
|
391 |
|
|
llgfr %r4,%r4 # unsigned int
|
392 |
|
|
jg old32_readdir # branch to system call
|
393 |
|
|
|
394 |
|
|
.globl old32_mmap_wrapper
|
395 |
|
|
old32_mmap_wrapper:
|
396 |
|
|
llgtr %r2,%r2 # struct mmap_arg_struct_emu31 *
|
397 |
|
|
jg old32_mmap # branch to system call
|
398 |
|
|
|
399 |
|
|
.globl sys32_munmap_wrapper
|
400 |
|
|
sys32_munmap_wrapper:
|
401 |
|
|
llgfr %r2,%r2 # unsigned long
|
402 |
|
|
llgfr %r3,%r3 # size_t
|
403 |
|
|
jg sys_munmap # branch to system call
|
404 |
|
|
|
405 |
|
|
.globl sys32_truncate_wrapper
|
406 |
|
|
sys32_truncate_wrapper:
|
407 |
|
|
llgtr %r2,%r2 # const char *
|
408 |
|
|
llgfr %r3,%r3 # unsigned long
|
409 |
|
|
jg sys_truncate # branch to system call
|
410 |
|
|
|
411 |
|
|
.globl sys32_ftruncate_wrapper
|
412 |
|
|
sys32_ftruncate_wrapper:
|
413 |
|
|
llgfr %r2,%r2 # unsigned int
|
414 |
|
|
llgfr %r3,%r3 # unsigned long
|
415 |
|
|
jg sys_ftruncate # branch to system call
|
416 |
|
|
|
417 |
|
|
.globl sys32_fchmod_wrapper
|
418 |
|
|
sys32_fchmod_wrapper:
|
419 |
|
|
llgfr %r2,%r2 # unsigned int
|
420 |
|
|
llgfr %r3,%r3 # mode_t
|
421 |
|
|
jg sys_fchmod # branch to system call
|
422 |
|
|
|
423 |
|
|
.globl sys32_fchown16_wrapper
|
424 |
|
|
sys32_fchown16_wrapper:
|
425 |
|
|
llgfr %r2,%r2 # unsigned int
|
426 |
|
|
llgtr %r3,%r3 # __kernel_old_uid_emu31_t *
|
427 |
|
|
llgtr %r4,%r4 # __kernel_old_gid_emu31_t *
|
428 |
|
|
jg sys32_fchown16 # branch to system call
|
429 |
|
|
|
430 |
|
|
.globl sys32_getpriority_wrapper
|
431 |
|
|
sys32_getpriority_wrapper:
|
432 |
|
|
lgfr %r2,%r2 # int
|
433 |
|
|
lgfr %r3,%r3 # int
|
434 |
|
|
jg sys_getpriority # branch to system call
|
435 |
|
|
|
436 |
|
|
.globl sys32_setpriority_wrapper
|
437 |
|
|
sys32_setpriority_wrapper:
|
438 |
|
|
lgfr %r2,%r2 # int
|
439 |
|
|
lgfr %r3,%r3 # int
|
440 |
|
|
lgfr %r4,%r4 # int
|
441 |
|
|
jg sys_setpriority # branch to system call
|
442 |
|
|
|
443 |
|
|
.globl sys32_statfs_wrapper
|
444 |
|
|
sys32_statfs_wrapper:
|
445 |
|
|
llgtr %r2,%r2 # char *
|
446 |
|
|
llgtr %r3,%r3 # struct statfs_emu31 *
|
447 |
|
|
jg sys32_statfs # branch to system call
|
448 |
|
|
|
449 |
|
|
.globl sys32_fstatfs_wrapper
|
450 |
|
|
sys32_fstatfs_wrapper:
|
451 |
|
|
llgfr %r2,%r2 # unsigned int
|
452 |
|
|
llgtr %r3,%r3 # struct statfs_emu31 *
|
453 |
|
|
jg sys32_fstatfs # branch to system call
|
454 |
|
|
|
455 |
|
|
.globl sys32_socketcall_wrapper
|
456 |
|
|
sys32_socketcall_wrapper:
|
457 |
|
|
lgfr %r2,%r2 # int
|
458 |
|
|
llgtr %r3,%r3 # u32 *
|
459 |
|
|
jg sys32_socketcall # branch to system call
|
460 |
|
|
|
461 |
|
|
.globl sys32_syslog_wrapper
|
462 |
|
|
sys32_syslog_wrapper:
|
463 |
|
|
lgfr %r2,%r2 # int
|
464 |
|
|
llgtr %r3,%r3 # char *
|
465 |
|
|
lgfr %r4,%r4 # int
|
466 |
|
|
jg sys_syslog # branch to system call
|
467 |
|
|
|
468 |
|
|
.globl sys32_setitimer_wrapper
|
469 |
|
|
sys32_setitimer_wrapper:
|
470 |
|
|
lgfr %r2,%r2 # int
|
471 |
|
|
llgtr %r3,%r3 # struct itimerval_emu31 *
|
472 |
|
|
llgtr %r4,%r4 # struct itimerval_emu31 *
|
473 |
|
|
jg sys32_setitimer # branch to system call
|
474 |
|
|
|
475 |
|
|
.globl sys32_getitimer_wrapper
|
476 |
|
|
sys32_getitimer_wrapper:
|
477 |
|
|
lgfr %r2,%r2 # int
|
478 |
|
|
llgtr %r3,%r3 # struct itimerval_emu31 *
|
479 |
|
|
jg sys32_getitimer # branch to system call
|
480 |
|
|
|
481 |
|
|
.globl sys32_newstat_wrapper
|
482 |
|
|
sys32_newstat_wrapper:
|
483 |
|
|
llgtr %r2,%r2 # char *
|
484 |
|
|
llgtr %r3,%r3 # struct stat_emu31 *
|
485 |
|
|
jg sys32_newstat # branch to system call
|
486 |
|
|
|
487 |
|
|
.globl sys32_newlstat_wrapper
|
488 |
|
|
sys32_newlstat_wrapper:
|
489 |
|
|
llgtr %r2,%r2 # char *
|
490 |
|
|
llgtr %r3,%r3 # struct stat_emu31 *
|
491 |
|
|
jg sys32_newlstat # branch to system call
|
492 |
|
|
|
493 |
|
|
.globl sys32_newfstat_wrapper
|
494 |
|
|
sys32_newfstat_wrapper:
|
495 |
|
|
llgfr %r2,%r2 # unsigned int
|
496 |
|
|
llgtr %r3,%r3 # struct stat_emu31 *
|
497 |
|
|
jg sys32_newfstat # branch to system call
|
498 |
|
|
|
499 |
|
|
#sys32_vhangup_wrapper # void
|
500 |
|
|
|
501 |
|
|
.globl sys32_wait4_wrapper
|
502 |
|
|
sys32_wait4_wrapper:
|
503 |
|
|
lgfr %r2,%r2 # pid_t
|
504 |
|
|
llgtr %r3,%r3 # unsigned int *
|
505 |
|
|
lgfr %r4,%r4 # int
|
506 |
|
|
llgtr %r5,%r5 # struct rusage *
|
507 |
|
|
jg sys32_wait4 # branch to system call
|
508 |
|
|
|
509 |
|
|
.globl sys32_swapoff_wrapper
|
510 |
|
|
sys32_swapoff_wrapper:
|
511 |
|
|
llgtr %r2,%r2 # const char *
|
512 |
|
|
jg sys_swapoff # branch to system call
|
513 |
|
|
|
514 |
|
|
.globl sys32_sysinfo_wrapper
|
515 |
|
|
sys32_sysinfo_wrapper:
|
516 |
|
|
llgtr %r2,%r2 # struct sysinfo_emu31 *
|
517 |
|
|
jg sys32_sysinfo # branch to system call
|
518 |
|
|
|
519 |
|
|
.globl sys32_ipc_wrapper
|
520 |
|
|
sys32_ipc_wrapper:
|
521 |
|
|
llgfr %r2,%r2 # uint
|
522 |
|
|
lgfr %r3,%r3 # int
|
523 |
|
|
lgfr %r4,%r4 # int
|
524 |
|
|
lgfr %r5,%r5 # int
|
525 |
|
|
llgtr %r6,%r6 # void *
|
526 |
|
|
jg sys32_ipc # branch to system call
|
527 |
|
|
|
528 |
|
|
.globl sys32_fsync_wrapper
|
529 |
|
|
sys32_fsync_wrapper:
|
530 |
|
|
llgfr %r2,%r2 # unsigned int
|
531 |
|
|
jg sys_fsync # branch to system call
|
532 |
|
|
|
533 |
|
|
#sys32_sigreturn_wrapper # done in sigreturn_glue
|
534 |
|
|
|
535 |
|
|
#sys32_clone_wrapper # done in clone_glue
|
536 |
|
|
|
537 |
|
|
.globl sys32_setdomainname_wrapper
|
538 |
|
|
sys32_setdomainname_wrapper:
|
539 |
|
|
llgtr %r2,%r2 # char *
|
540 |
|
|
lgfr %r3,%r3 # int
|
541 |
|
|
jg sys_setdomainname # branch to system call
|
542 |
|
|
|
543 |
|
|
.globl sys32_newuname_wrapper
|
544 |
|
|
sys32_newuname_wrapper:
|
545 |
|
|
llgtr %r2,%r2 # struct new_utsname *
|
546 |
|
|
jg s390x_newuname # branch to system call
|
547 |
|
|
|
548 |
|
|
.globl sys32_adjtimex_wrapper
|
549 |
|
|
sys32_adjtimex_wrapper:
|
550 |
|
|
llgtr %r2,%r2 # struct timex_emu31 *
|
551 |
|
|
jg sys32_adjtimex # branch to system call
|
552 |
|
|
|
553 |
|
|
.globl sys32_mprotect_wrapper
|
554 |
|
|
sys32_mprotect_wrapper:
|
555 |
|
|
llgtr %r2,%r2 # unsigned long (actually pointer
|
556 |
|
|
llgfr %r3,%r3 # size_t
|
557 |
|
|
llgfr %r4,%r4 # unsigned long
|
558 |
|
|
jg sys_mprotect # branch to system call
|
559 |
|
|
|
560 |
|
|
.globl sys32_sigprocmask_wrapper
|
561 |
|
|
sys32_sigprocmask_wrapper:
|
562 |
|
|
lgfr %r2,%r2 # int
|
563 |
|
|
llgtr %r3,%r3 # old_sigset_emu31 *
|
564 |
|
|
llgtr %r4,%r4 # old_sigset_emu31 *
|
565 |
|
|
jg sys32_sigprocmask # branch to system call
|
566 |
|
|
|
567 |
|
|
.globl sys32_create_module_wrapper
|
568 |
|
|
sys32_create_module_wrapper:
|
569 |
|
|
llgtr %r2,%r2 # const char *
|
570 |
|
|
llgfr %r3,%r3 # size_t
|
571 |
|
|
jg sys32_create_module # branch to system call
|
572 |
|
|
|
573 |
|
|
.globl sys32_init_module_wrapper
|
574 |
|
|
sys32_init_module_wrapper:
|
575 |
|
|
llgtr %r2,%r2 # const char *
|
576 |
|
|
llgtr %r3,%r3 # struct module *
|
577 |
|
|
jg sys32_init_module # branch to system call
|
578 |
|
|
|
579 |
|
|
.globl sys32_delete_module_wrapper
|
580 |
|
|
sys32_delete_module_wrapper:
|
581 |
|
|
llgtr %r2,%r2 # const char *
|
582 |
|
|
jg sys32_delete_module # branch to system call
|
583 |
|
|
|
584 |
|
|
.globl sys32_get_kernel_syms_wrapper
|
585 |
|
|
sys32_get_kernel_syms_wrapper:
|
586 |
|
|
llgtr %r2,%r2 # struct kernel_sym_emu31 *
|
587 |
|
|
jg sys32_get_kernel_syms # branch to system call
|
588 |
|
|
|
589 |
|
|
.globl sys32_quotactl_wrapper
|
590 |
|
|
sys32_quotactl_wrapper:
|
591 |
|
|
lgfr %r2,%r2 # int
|
592 |
|
|
llgtr %r3,%r3 # const char *
|
593 |
|
|
lgfr %r4,%r4 # int
|
594 |
|
|
llgtr %r5,%r5 # caddr_t
|
595 |
|
|
jg sys32_quotactl # branch to system call
|
596 |
|
|
|
597 |
|
|
.globl sys32_getpgid_wrapper
|
598 |
|
|
sys32_getpgid_wrapper:
|
599 |
|
|
lgfr %r2,%r2 # pid_t
|
600 |
|
|
jg sys_getpgid # branch to system call
|
601 |
|
|
|
602 |
|
|
.globl sys32_fchdir_wrapper
|
603 |
|
|
sys32_fchdir_wrapper:
|
604 |
|
|
llgfr %r2,%r2 # unsigned int
|
605 |
|
|
jg sys_fchdir # branch to system call
|
606 |
|
|
|
607 |
|
|
.globl sys32_bdflush_wrapper
|
608 |
|
|
sys32_bdflush_wrapper:
|
609 |
|
|
lgfr %r2,%r2 # int
|
610 |
|
|
lgfr %r3,%r3 # long
|
611 |
|
|
jg sys_bdflush # branch to system call
|
612 |
|
|
|
613 |
|
|
.globl sys32_sysfs_wrapper
|
614 |
|
|
sys32_sysfs_wrapper:
|
615 |
|
|
lgfr %r2,%r2 # int
|
616 |
|
|
llgfr %r3,%r3 # unsigned long
|
617 |
|
|
llgfr %r4,%r4 # unsigned long
|
618 |
|
|
jg sys_sysfs # branch to system call
|
619 |
|
|
|
620 |
|
|
.globl sys32_personality_wrapper
|
621 |
|
|
sys32_personality_wrapper:
|
622 |
|
|
llgfr %r2,%r2 # unsigned long
|
623 |
|
|
jg s390x_personality # branch to system call
|
624 |
|
|
|
625 |
|
|
.globl sys32_setfsuid16_wrapper
|
626 |
|
|
sys32_setfsuid16_wrapper:
|
627 |
|
|
llgfr %r2,%r2 # __kernel_old_uid_emu31_t
|
628 |
|
|
jg sys32_setfsuid16 # branch to system call
|
629 |
|
|
|
630 |
|
|
.globl sys32_setfsgid16_wrapper
|
631 |
|
|
sys32_setfsgid16_wrapper:
|
632 |
|
|
llgfr %r2,%r2 # __kernel_old_gid_emu31_t
|
633 |
|
|
jg sys32_setfsgid16 # branch to system call
|
634 |
|
|
|
635 |
|
|
.globl sys32_llseek_wrapper
|
636 |
|
|
sys32_llseek_wrapper:
|
637 |
|
|
llgfr %r2,%r2 # unsigned int
|
638 |
|
|
llgfr %r3,%r3 # unsigned long
|
639 |
|
|
llgfr %r4,%r4 # unsigned long
|
640 |
|
|
llgtr %r5,%r5 # loff_t *
|
641 |
|
|
llgfr %r6,%r6 # unsigned int
|
642 |
|
|
jg sys_llseek # branch to system call
|
643 |
|
|
|
644 |
|
|
.globl sys32_getdents_wrapper
|
645 |
|
|
sys32_getdents_wrapper:
|
646 |
|
|
llgfr %r2,%r2 # unsigned int
|
647 |
|
|
llgtr %r3,%r3 # void *
|
648 |
|
|
llgfr %r4,%r4 # unsigned int
|
649 |
|
|
jg sys32_getdents # branch to system call
|
650 |
|
|
|
651 |
|
|
.globl sys32_select_wrapper
|
652 |
|
|
sys32_select_wrapper:
|
653 |
|
|
lgfr %r2,%r2 # int
|
654 |
|
|
llgtr %r3,%r3 # fd_set *
|
655 |
|
|
llgtr %r4,%r4 # fd_set *
|
656 |
|
|
llgtr %r5,%r5 # fd_set *
|
657 |
|
|
llgtr %r6,%r6 # struct timeval_emu31 *
|
658 |
|
|
jg sys32_select # branch to system call
|
659 |
|
|
|
660 |
|
|
.globl sys32_flock_wrapper
|
661 |
|
|
sys32_flock_wrapper:
|
662 |
|
|
llgfr %r2,%r2 # unsigned int
|
663 |
|
|
llgfr %r3,%r3 # unsigned int
|
664 |
|
|
jg sys_flock # branch to system call
|
665 |
|
|
|
666 |
|
|
.globl sys32_msync_wrapper
|
667 |
|
|
sys32_msync_wrapper:
|
668 |
|
|
llgfr %r2,%r2 # unsigned long
|
669 |
|
|
llgfr %r3,%r3 # size_t
|
670 |
|
|
lgfr %r4,%r4 # int
|
671 |
|
|
jg sys_msync # branch to system call
|
672 |
|
|
|
673 |
|
|
.globl sys32_readv_wrapper
|
674 |
|
|
sys32_readv_wrapper:
|
675 |
|
|
llgfr %r2,%r2 # unsigned long
|
676 |
|
|
llgtr %r3,%r3 # const struct iovec_emu31 *
|
677 |
|
|
llgfr %r4,%r4 # unsigned long
|
678 |
|
|
jg sys32_readv # branch to system call
|
679 |
|
|
|
680 |
|
|
.globl sys32_writev_wrapper
|
681 |
|
|
sys32_writev_wrapper:
|
682 |
|
|
llgfr %r2,%r2 # unsigned long
|
683 |
|
|
llgtr %r3,%r3 # const struct iovec_emu31 *
|
684 |
|
|
llgfr %r4,%r4 # unsigned long
|
685 |
|
|
jg sys32_writev # branch to system call
|
686 |
|
|
|
687 |
|
|
.globl sys32_getsid_wrapper
|
688 |
|
|
sys32_getsid_wrapper:
|
689 |
|
|
lgfr %r2,%r2 # pid_t
|
690 |
|
|
jg sys_getsid # branch to system call
|
691 |
|
|
|
692 |
|
|
.globl sys32_fdatasync_wrapper
|
693 |
|
|
sys32_fdatasync_wrapper:
|
694 |
|
|
llgfr %r2,%r2 # unsigned int
|
695 |
|
|
jg sys_fdatasync # branch to system call
|
696 |
|
|
|
697 |
|
|
#sys32_sysctl_wrapper # tbd
|
698 |
|
|
|
699 |
|
|
.globl sys32_mlock_wrapper
|
700 |
|
|
sys32_mlock_wrapper:
|
701 |
|
|
llgfr %r2,%r2 # unsigned long
|
702 |
|
|
llgfr %r3,%r3 # size_t
|
703 |
|
|
jg sys_mlock # branch to system call
|
704 |
|
|
|
705 |
|
|
.globl sys32_munlock_wrapper
|
706 |
|
|
sys32_munlock_wrapper:
|
707 |
|
|
llgfr %r2,%r2 # unsigned long
|
708 |
|
|
llgfr %r3,%r3 # size_t
|
709 |
|
|
jg sys_munlock # branch to system call
|
710 |
|
|
|
711 |
|
|
.globl sys32_mlockall_wrapper
|
712 |
|
|
sys32_mlockall_wrapper:
|
713 |
|
|
lgfr %r2,%r2 # int
|
714 |
|
|
jg sys_mlockall # branch to system call
|
715 |
|
|
|
716 |
|
|
#sys32_munlockall_wrapper # void
|
717 |
|
|
|
718 |
|
|
.globl sys32_sched_setparam_wrapper
|
719 |
|
|
sys32_sched_setparam_wrapper:
|
720 |
|
|
lgfr %r2,%r2 # pid_t
|
721 |
|
|
llgtr %r3,%r3 # struct sched_param *
|
722 |
|
|
jg sys_sched_setparam # branch to system call
|
723 |
|
|
|
724 |
|
|
.globl sys32_sched_getparam_wrapper
|
725 |
|
|
sys32_sched_getparam_wrapper:
|
726 |
|
|
lgfr %r2,%r2 # pid_t
|
727 |
|
|
llgtr %r3,%r3 # struct sched_param *
|
728 |
|
|
jg sys_sched_getparam # branch to system call
|
729 |
|
|
|
730 |
|
|
.globl sys32_sched_setscheduler_wrapper
|
731 |
|
|
sys32_sched_setscheduler_wrapper:
|
732 |
|
|
lgfr %r2,%r2 # pid_t
|
733 |
|
|
lgfr %r3,%r3 # int
|
734 |
|
|
llgtr %r4,%r4 # struct sched_param *
|
735 |
|
|
jg sys_sched_setscheduler # branch to system call
|
736 |
|
|
|
737 |
|
|
.globl sys32_sched_getscheduler_wrapper
|
738 |
|
|
sys32_sched_getscheduler_wrapper:
|
739 |
|
|
lgfr %r2,%r2 # pid_t
|
740 |
|
|
jg sys_sched_getscheduler # branch to system call
|
741 |
|
|
|
742 |
|
|
#sys32_sched_yield_wrapper # void
|
743 |
|
|
|
744 |
|
|
.globl sys32_sched_get_priority_max_wrapper
|
745 |
|
|
sys32_sched_get_priority_max_wrapper:
|
746 |
|
|
lgfr %r2,%r2 # int
|
747 |
|
|
jg sys_sched_get_priority_max # branch to system call
|
748 |
|
|
|
749 |
|
|
.globl sys32_sched_get_priority_min_wrapper
|
750 |
|
|
sys32_sched_get_priority_min_wrapper:
|
751 |
|
|
lgfr %r2,%r2 # int
|
752 |
|
|
jg sys_sched_get_priority_min # branch to system call
|
753 |
|
|
|
754 |
|
|
.globl sys32_sched_rr_get_interval_wrapper
|
755 |
|
|
sys32_sched_rr_get_interval_wrapper:
|
756 |
|
|
lgfr %r2,%r2 # pid_t
|
757 |
|
|
llgtr %r3,%r3 # struct timespec_emu31 *
|
758 |
|
|
jg sys32_sched_rr_get_interval # branch to system call
|
759 |
|
|
|
760 |
|
|
.globl sys32_nanosleep_wrapper
|
761 |
|
|
sys32_nanosleep_wrapper:
|
762 |
|
|
llgtr %r2,%r2 # struct timespec_emu31 *
|
763 |
|
|
llgtr %r3,%r3 # struct timespec_emu31 *
|
764 |
|
|
jg sys32_nanosleep # branch to system call
|
765 |
|
|
|
766 |
|
|
.globl sys32_mremap_wrapper
|
767 |
|
|
sys32_mremap_wrapper:
|
768 |
|
|
llgfr %r2,%r2 # unsigned long
|
769 |
|
|
llgfr %r3,%r3 # unsigned long
|
770 |
|
|
llgfr %r4,%r4 # unsigned long
|
771 |
|
|
llgfr %r5,%r5 # unsigned long
|
772 |
|
|
llgfr %r6,%r6 # unsigned long
|
773 |
|
|
jg sys_mremap # branch to system call
|
774 |
|
|
|
775 |
|
|
.globl sys32_setresuid16_wrapper
|
776 |
|
|
sys32_setresuid16_wrapper:
|
777 |
|
|
llgfr %r2,%r2 # __kernel_old_uid_emu31_t
|
778 |
|
|
llgfr %r3,%r3 # __kernel_old_uid_emu31_t
|
779 |
|
|
llgfr %r4,%r4 # __kernel_old_uid_emu31_t
|
780 |
|
|
jg sys32_setresuid16 # branch to system call
|
781 |
|
|
|
782 |
|
|
.globl sys32_getresuid16_wrapper
|
783 |
|
|
sys32_getresuid16_wrapper:
|
784 |
|
|
llgtr %r2,%r2 # __kernel_old_uid_emu31_t *
|
785 |
|
|
llgtr %r3,%r3 # __kernel_old_uid_emu31_t *
|
786 |
|
|
llgtr %r4,%r4 # __kernel_old_uid_emu31_t *
|
787 |
|
|
jg sys32_getresuid16 # branch to system call
|
788 |
|
|
|
789 |
|
|
.globl sys32_query_module_wrapper
|
790 |
|
|
sys32_query_module_wrapper:
|
791 |
|
|
llgtr %r2,%r2 # const char *
|
792 |
|
|
lgfr %r3,%r3 # int
|
793 |
|
|
llgtr %r4,%r4 # char *
|
794 |
|
|
llgfr %r5,%r5 # size_t
|
795 |
|
|
llgtr %r6,%r6 # size_t *
|
796 |
|
|
jg sys32_query_module # branch to system call
|
797 |
|
|
|
798 |
|
|
.globl sys32_poll_wrapper
|
799 |
|
|
sys32_poll_wrapper:
|
800 |
|
|
llgtr %r2,%r2 # struct pollfd *
|
801 |
|
|
llgfr %r3,%r3 # unsigned int
|
802 |
|
|
lgfr %r4,%r4 # long
|
803 |
|
|
jg sys_poll # branch to system call
|
804 |
|
|
|
805 |
|
|
.globl sys32_nfsservctl_wrapper
|
806 |
|
|
sys32_nfsservctl_wrapper:
|
807 |
|
|
lgfr %r2,%r2 # int
|
808 |
|
|
llgtr %r3,%r3 # struct nfsctl_arg_emu31 *
|
809 |
|
|
llgtr %r4,%r4 # union nfsctl_res_emu31 *
|
810 |
|
|
jg sys32_nfsservctl # branch to system call
|
811 |
|
|
|
812 |
|
|
.globl sys32_setresgid16_wrapper
|
813 |
|
|
sys32_setresgid16_wrapper:
|
814 |
|
|
llgfr %r2,%r2 # __kernel_old_gid_emu31_t
|
815 |
|
|
llgfr %r3,%r3 # __kernel_old_gid_emu31_t
|
816 |
|
|
llgfr %r4,%r4 # __kernel_old_gid_emu31_t
|
817 |
|
|
jg sys32_setresgid16 # branch to system call
|
818 |
|
|
|
819 |
|
|
.globl sys32_getresgid16_wrapper
|
820 |
|
|
sys32_getresgid16_wrapper:
|
821 |
|
|
llgtr %r2,%r2 # __kernel_old_gid_emu31_t *
|
822 |
|
|
llgtr %r3,%r3 # __kernel_old_gid_emu31_t *
|
823 |
|
|
llgtr %r4,%r4 # __kernel_old_gid_emu31_t *
|
824 |
|
|
jg sys32_getresgid16 # branch to system call
|
825 |
|
|
|
826 |
|
|
.globl sys32_prctl_wrapper
|
827 |
|
|
sys32_prctl_wrapper:
|
828 |
|
|
lgfr %r2,%r2 # int
|
829 |
|
|
llgfr %r3,%r3 # unsigned long
|
830 |
|
|
llgfr %r4,%r4 # unsigned long
|
831 |
|
|
llgfr %r5,%r5 # unsigned long
|
832 |
|
|
llgfr %r6,%r6 # unsigned long
|
833 |
|
|
jg sys_prctl # branch to system call
|
834 |
|
|
|
835 |
|
|
#sys32_rt_sigreturn_wrapper # done in rt_sigreturn_glue
|
836 |
|
|
|
837 |
|
|
.globl sys32_rt_sigaction_wrapper
|
838 |
|
|
sys32_rt_sigaction_wrapper:
|
839 |
|
|
lgfr %r2,%r2 # int
|
840 |
|
|
llgtr %r3,%r3 # const struct sigaction_emu31 *
|
841 |
|
|
llgtr %r4,%r4 # const struct sigaction_emu31 *
|
842 |
|
|
llgfr %r5,%r5 # size_t
|
843 |
|
|
jg sys32_rt_sigaction # branch to system call
|
844 |
|
|
|
845 |
|
|
.globl sys32_rt_sigprocmask_wrapper
|
846 |
|
|
sys32_rt_sigprocmask_wrapper:
|
847 |
|
|
lgfr %r2,%r2 # int
|
848 |
|
|
llgtr %r3,%r3 # old_sigset_emu31 *
|
849 |
|
|
llgtr %r4,%r4 # old_sigset_emu31 *
|
850 |
|
|
jg sys32_rt_sigprocmask # branch to system call
|
851 |
|
|
|
852 |
|
|
.globl sys32_rt_sigpending_wrapper
|
853 |
|
|
sys32_rt_sigpending_wrapper:
|
854 |
|
|
llgtr %r2,%r2 # sigset_emu31 *
|
855 |
|
|
llgfr %r3,%r3 # size_t
|
856 |
|
|
jg sys32_rt_sigpending # branch to system call
|
857 |
|
|
|
858 |
|
|
.globl sys32_rt_sigtimedwait_wrapper
|
859 |
|
|
sys32_rt_sigtimedwait_wrapper:
|
860 |
|
|
llgtr %r2,%r2 # const sigset_emu31_t *
|
861 |
|
|
llgtr %r3,%r3 # siginfo_emu31_t *
|
862 |
|
|
llgtr %r4,%r4 # const struct timespec_emu31 *
|
863 |
|
|
llgfr %r5,%r5 # size_t
|
864 |
|
|
jg sys32_rt_sigtimedwait # branch to system call
|
865 |
|
|
|
866 |
|
|
.globl sys32_rt_sigqueueinfo_wrapper
|
867 |
|
|
sys32_rt_sigqueueinfo_wrapper:
|
868 |
|
|
lgfr %r2,%r2 # int
|
869 |
|
|
lgfr %r3,%r3 # int
|
870 |
|
|
llgtr %r4,%r4 # siginfo_emu31_t *
|
871 |
|
|
jg sys32_rt_sigqueueinfo # branch to system call
|
872 |
|
|
|
873 |
|
|
#sys32_rt_sigsuspend_wrapper # done in rt_sigsuspend_glue
|
874 |
|
|
|
875 |
|
|
.globl sys32_pread_wrapper
|
876 |
|
|
sys32_pread_wrapper:
|
877 |
|
|
llgfr %r2,%r2 # unsigned int
|
878 |
|
|
llgtr %r3,%r3 # char *
|
879 |
|
|
llgfr %r4,%r4 # size_t
|
880 |
|
|
llgfr %r5,%r5 # u32
|
881 |
|
|
llgfr %r6,%r6 # u32
|
882 |
|
|
jg sys32_pread # branch to system call
|
883 |
|
|
|
884 |
|
|
.globl sys32_pwrite_wrapper
|
885 |
|
|
sys32_pwrite_wrapper:
|
886 |
|
|
llgfr %r2,%r2 # unsigned int
|
887 |
|
|
llgtr %r3,%r3 # const char *
|
888 |
|
|
llgfr %r4,%r4 # size_t
|
889 |
|
|
llgfr %r5,%r5 # u32
|
890 |
|
|
llgfr %r6,%r6 # u32
|
891 |
|
|
jg sys32_pwrite # branch to system call
|
892 |
|
|
|
893 |
|
|
.globl sys32_chown16_wrapper
|
894 |
|
|
sys32_chown16_wrapper:
|
895 |
|
|
llgtr %r2,%r2 # const char *
|
896 |
|
|
llgfr %r3,%r3 # __kernel_old_uid_emu31_t
|
897 |
|
|
llgfr %r4,%r4 # __kernel_old_gid_emu31_t
|
898 |
|
|
jg sys32_chown16 # branch to system call
|
899 |
|
|
|
900 |
|
|
.globl sys32_getcwd_wrapper
|
901 |
|
|
sys32_getcwd_wrapper:
|
902 |
|
|
llgtr %r2,%r2 # char *
|
903 |
|
|
llgfr %r3,%r3 # unsigned long
|
904 |
|
|
jg sys_getcwd # branch to system call
|
905 |
|
|
|
906 |
|
|
.globl sys32_capget_wrapper
|
907 |
|
|
sys32_capget_wrapper:
|
908 |
|
|
llgtr %r2,%r2 # cap_user_header_t
|
909 |
|
|
llgtr %r3,%r3 # cap_user_data_t
|
910 |
|
|
jg sys_capget # branch to system call
|
911 |
|
|
|
912 |
|
|
.globl sys32_capset_wrapper
|
913 |
|
|
sys32_capset_wrapper:
|
914 |
|
|
llgtr %r2,%r2 # cap_user_header_t
|
915 |
|
|
llgtr %r3,%r3 # const cap_user_data_t
|
916 |
|
|
jg sys_capset # branch to system call
|
917 |
|
|
|
918 |
|
|
.globl sys32_sigaltstack_wrapper
|
919 |
|
|
sys32_sigaltstack_wrapper:
|
920 |
|
|
llgtr %r2,%r2 # const stack_emu31_t *
|
921 |
|
|
llgtr %r3,%r3 # stack_emu31_t *
|
922 |
|
|
jg sys32_sigaltstack
|
923 |
|
|
|
924 |
|
|
.globl sys32_sendfile_wrapper
|
925 |
|
|
sys32_sendfile_wrapper:
|
926 |
|
|
lgfr %r2,%r2 # int
|
927 |
|
|
lgfr %r3,%r3 # int
|
928 |
|
|
llgtr %r4,%r4 # __kernel_off_emu31_t *
|
929 |
|
|
llgfr %r5,%r5 # size_t
|
930 |
|
|
jg sys32_sendfile # branch to system call
|
931 |
|
|
|
932 |
|
|
#sys32_vfork_wrapper # done in vfork_glue
|
933 |
|
|
|
934 |
|
|
.globl sys32_truncate64_wrapper
|
935 |
|
|
sys32_truncate64_wrapper:
|
936 |
|
|
llgtr %r2,%r2 # const char *
|
937 |
|
|
lgfr %r3,%r3 # s32
|
938 |
|
|
llgfr %r4,%r4 # u32
|
939 |
|
|
jg sys32_truncate64 # branch to system call
|
940 |
|
|
|
941 |
|
|
.globl sys32_ftruncate64_wrapper
|
942 |
|
|
sys32_ftruncate64_wrapper:
|
943 |
|
|
llgfr %r2,%r2 # unsigned int
|
944 |
|
|
lgfr %r3,%r3 # s32
|
945 |
|
|
llgfr %r4,%r4 # u32
|
946 |
|
|
jg sys32_ftruncate64 # branch to system call
|
947 |
|
|
|
948 |
|
|
.globl sys32_lchown_wrapper
|
949 |
|
|
sys32_lchown_wrapper:
|
950 |
|
|
llgtr %r2,%r2 # const char *
|
951 |
|
|
llgfr %r3,%r3 # uid_t
|
952 |
|
|
llgfr %r4,%r4 # gid_t
|
953 |
|
|
jg sys_lchown # branch to system call
|
954 |
|
|
|
955 |
|
|
#sys32_getuid_wrapper # void
|
956 |
|
|
#sys32_getgid_wrapper # void
|
957 |
|
|
#sys32_geteuid_wrapper # void
|
958 |
|
|
#sys32_getegid_wrapper # void
|
959 |
|
|
|
960 |
|
|
.globl sys32_setreuid_wrapper
|
961 |
|
|
sys32_setreuid_wrapper:
|
962 |
|
|
llgfr %r2,%r2 # uid_t
|
963 |
|
|
llgfr %r3,%r3 # uid_t
|
964 |
|
|
jg sys_setreuid # branch to system call
|
965 |
|
|
|
966 |
|
|
.globl sys32_setregid_wrapper
|
967 |
|
|
sys32_setregid_wrapper:
|
968 |
|
|
llgfr %r2,%r2 # gid_t
|
969 |
|
|
llgfr %r3,%r3 # gid_t
|
970 |
|
|
jg sys_setregid # branch to system call
|
971 |
|
|
|
972 |
|
|
.globl sys32_getgroups_wrapper
|
973 |
|
|
sys32_getgroups_wrapper:
|
974 |
|
|
lgfr %r2,%r2 # int
|
975 |
|
|
llgtr %r3,%r3 # gid_t *
|
976 |
|
|
jg sys_getgroups # branch to system call
|
977 |
|
|
|
978 |
|
|
.globl sys32_setgroups_wrapper
|
979 |
|
|
sys32_setgroups_wrapper:
|
980 |
|
|
lgfr %r2,%r2 # int
|
981 |
|
|
llgtr %r3,%r3 # gid_t *
|
982 |
|
|
jg sys_setgroups # branch to system call
|
983 |
|
|
|
984 |
|
|
.globl sys32_fchown_wrapper
|
985 |
|
|
sys32_fchown_wrapper:
|
986 |
|
|
llgfr %r2,%r2 # unsigned int
|
987 |
|
|
llgfr %r3,%r3 # uid_t
|
988 |
|
|
llgfr %r4,%r4 # gid_t
|
989 |
|
|
jg sys_fchown # branch to system call
|
990 |
|
|
|
991 |
|
|
.globl sys32_setresuid_wrapper
|
992 |
|
|
sys32_setresuid_wrapper:
|
993 |
|
|
llgfr %r2,%r2 # uid_t
|
994 |
|
|
llgfr %r3,%r3 # uid_t
|
995 |
|
|
llgfr %r4,%r4 # uid_t
|
996 |
|
|
jg sys_setresuid # branch to system call
|
997 |
|
|
|
998 |
|
|
.globl sys32_getresuid_wrapper
|
999 |
|
|
sys32_getresuid_wrapper:
|
1000 |
|
|
llgtr %r2,%r2 # uid_t *
|
1001 |
|
|
llgtr %r3,%r3 # uid_t *
|
1002 |
|
|
llgtr %r4,%r4 # uid_t *
|
1003 |
|
|
jg sys_getresuid # branch to system call
|
1004 |
|
|
|
1005 |
|
|
.globl sys32_setresgid_wrapper
|
1006 |
|
|
sys32_setresgid_wrapper:
|
1007 |
|
|
llgfr %r2,%r2 # gid_t
|
1008 |
|
|
llgfr %r3,%r3 # gid_t
|
1009 |
|
|
llgfr %r4,%r4 # gid_t
|
1010 |
|
|
jg sys_setresgid # branch to system call
|
1011 |
|
|
|
1012 |
|
|
.globl sys32_getresgid_wrapper
|
1013 |
|
|
sys32_getresgid_wrapper:
|
1014 |
|
|
llgtr %r2,%r2 # gid_t *
|
1015 |
|
|
llgtr %r3,%r3 # gid_t *
|
1016 |
|
|
llgtr %r4,%r4 # gid_t *
|
1017 |
|
|
jg sys_getresgid # branch to system call
|
1018 |
|
|
|
1019 |
|
|
.globl sys32_chown_wrapper
|
1020 |
|
|
sys32_chown_wrapper:
|
1021 |
|
|
llgtr %r2,%r2 # const char *
|
1022 |
|
|
llgfr %r3,%r3 # uid_t
|
1023 |
|
|
llgfr %r4,%r4 # gid_t
|
1024 |
|
|
jg sys_chown # branch to system call
|
1025 |
|
|
|
1026 |
|
|
.globl sys32_setuid_wrapper
|
1027 |
|
|
sys32_setuid_wrapper:
|
1028 |
|
|
llgfr %r2,%r2 # uid_t
|
1029 |
|
|
jg sys_setuid # branch to system call
|
1030 |
|
|
|
1031 |
|
|
.globl sys32_setgid_wrapper
|
1032 |
|
|
sys32_setgid_wrapper:
|
1033 |
|
|
llgfr %r2,%r2 # gid_t
|
1034 |
|
|
jg sys_setgid # branch to system call
|
1035 |
|
|
|
1036 |
|
|
.globl sys32_setfsuid_wrapper
|
1037 |
|
|
sys32_setfsuid_wrapper:
|
1038 |
|
|
llgfr %r2,%r2 # uid_t
|
1039 |
|
|
jg sys_setfsuid # branch to system call
|
1040 |
|
|
|
1041 |
|
|
.globl sys32_setfsgid_wrapper
|
1042 |
|
|
sys32_setfsgid_wrapper:
|
1043 |
|
|
llgfr %r2,%r2 # gid_t
|
1044 |
|
|
jg sys_setfsgid # branch to system call
|
1045 |
|
|
|
1046 |
|
|
.globl sys32_pivot_root_wrapper
|
1047 |
|
|
sys32_pivot_root_wrapper:
|
1048 |
|
|
llgtr %r2,%r2 # const char *
|
1049 |
|
|
llgtr %r3,%r3 # const char *
|
1050 |
|
|
jg sys_pivot_root # branch to system call
|
1051 |
|
|
|
1052 |
|
|
.globl sys32_mincore_wrapper
|
1053 |
|
|
sys32_mincore_wrapper:
|
1054 |
|
|
llgfr %r2,%r2 # unsigned long
|
1055 |
|
|
llgfr %r3,%r3 # size_t
|
1056 |
|
|
llgtr %r4,%r4 # unsigned char *
|
1057 |
|
|
jg sys_mincore # branch to system call
|
1058 |
|
|
|
1059 |
|
|
.globl sys32_madvise_wrapper
|
1060 |
|
|
sys32_madvise_wrapper:
|
1061 |
|
|
llgfr %r2,%r2 # unsigned long
|
1062 |
|
|
llgfr %r3,%r3 # size_t
|
1063 |
|
|
lgfr %r4,%r4 # int
|
1064 |
|
|
jg sys_madvise # branch to system call
|
1065 |
|
|
|
1066 |
|
|
.globl sys32_getdents64_wrapper
|
1067 |
|
|
sys32_getdents64_wrapper:
|
1068 |
|
|
llgfr %r2,%r2 # unsigned int
|
1069 |
|
|
llgtr %r3,%r3 # void *
|
1070 |
|
|
llgfr %r4,%r4 # unsigned int
|
1071 |
|
|
jg sys_getdents64 # branch to system call
|
1072 |
|
|
|
1073 |
|
|
.globl sys32_fcntl64_wrapper
|
1074 |
|
|
sys32_fcntl64_wrapper:
|
1075 |
|
|
llgfr %r2,%r2 # unsigned int
|
1076 |
|
|
llgfr %r3,%r3 # unsigned int
|
1077 |
|
|
llgfr %r4,%r4 # unsigned long
|
1078 |
|
|
jg sys32_fcntl64 # branch to system call
|
1079 |
|
|
|
1080 |
|
|
.globl sys32_stat64_wrapper
|
1081 |
|
|
sys32_stat64_wrapper:
|
1082 |
|
|
llgtr %r2,%r2 # char *
|
1083 |
|
|
llgtr %r3,%r3 # struct stat64 *
|
1084 |
|
|
llgfr %r4,%r4 # long
|
1085 |
|
|
jg sys32_stat64 # branch to system call
|
1086 |
|
|
|
1087 |
|
|
.globl sys32_lstat64_wrapper
|
1088 |
|
|
sys32_lstat64_wrapper:
|
1089 |
|
|
llgtr %r2,%r2 # char *
|
1090 |
|
|
llgtr %r3,%r3 # struct stat64 *
|
1091 |
|
|
llgfr %r4,%r4 # long
|
1092 |
|
|
jg sys32_lstat64 # branch to system call
|
1093 |
|
|
|
1094 |
|
|
.globl sys32_fstat64_wrapper
|
1095 |
|
|
sys32_fstat64_wrapper:
|
1096 |
|
|
llgfr %r2,%r2 # unsigned long
|
1097 |
|
|
llgtr %r3,%r3 # struct stat64 *
|
1098 |
|
|
llgfr %r4,%r4 # long
|
1099 |
|
|
jg sys32_fstat64 # branch to system call
|
1100 |
|
|
|
1101 |
|
|
.globl sys32_stime_wrapper
|
1102 |
|
|
sys32_stime_wrapper:
|
1103 |
|
|
llgtr %r2,%r2 # int *
|
1104 |
|
|
jg sys_stime # branch to system call
|
1105 |
|
|
|
1106 |
|
|
.globl sys32_sysctl_wrapper
|
1107 |
|
|
sys32_sysctl_wrapper:
|
1108 |
|
|
llgtr %r2,%r2 # struct __sysctl_args32 *
|
1109 |
|
|
jg sys32_sysctl
|