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

Heiko Carstens's avatar
Heiko Carstens committed
10
	.globl	sys32_exit_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
11
12
13
sys32_exit_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_exit		# branch to sys_exit
Heiko Carstens's avatar
Heiko Carstens committed
14
15

	.globl	sys32_read_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
16
17
18
19
20
21
sys32_read_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	jg	sys32_read		# branch to sys_read

Heiko Carstens's avatar
Heiko Carstens committed
22
	.globl	sys32_write_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
23
24
25
26
27
28
sys32_write_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# size_t
	jg	sys32_write		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
29
	.globl	sys32_open_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
30
31
32
33
34
35
sys32_open_wrapper:
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	jg	sys_open		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
36
	.globl	sys32_close_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
37
38
39
40
sys32_close_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_close		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
41
	.globl	sys32_creat_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
42
43
44
45
46
sys32_creat_wrapper:
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_creat		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
47
	.globl	sys32_link_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
48
49
50
51
52
sys32_link_wrapper:
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_link		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
53
	.globl	sys32_unlink_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
54
55
56
57
sys32_unlink_wrapper:
	llgtr	%r2,%r2			# const char *
	jg	sys_unlink		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
58
	.globl	sys32_chdir_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
59
60
61
62
sys32_chdir_wrapper:
	llgtr	%r2,%r2			# const char *
	jg	sys_chdir		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
63
	.globl	sys32_time_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
64
65
66
67
sys32_time_wrapper:
	llgtr	%r2,%r2			# int *
	jg	compat_sys_time		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
68
	.globl	sys32_mknod_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
69
70
sys32_mknod_wrapper:
	llgtr	%r2,%r2			# const char *
Heiko Carstens's avatar
Heiko Carstens committed
71
	lgfr	%r3,%r3			# int
Linus Torvalds's avatar
Linus Torvalds committed
72
73
74
	llgfr	%r4,%r4			# dev
	jg	sys_mknod		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
75
	.globl	sys32_chmod_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
76
77
78
79
80
sys32_chmod_wrapper:
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# mode_t
	jg	sys_chmod		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
81
	.globl	sys32_lchown16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
82
83
sys32_lchown16_wrapper:
	llgtr	%r2,%r2			# const char *
Heiko Carstens's avatar
Heiko Carstens committed
84
85
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
	llgfr	%r4,%r4			# __kernel_old_uid_emu31_t
Linus Torvalds's avatar
Linus Torvalds committed
86
87
	jg	sys32_lchown16		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
88
	.globl	sys32_lseek_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
89
90
91
92
93
94
sys32_lseek_wrapper:
	llgfr	%r2,%r2			# unsigned int
	lgfr	%r3,%r3			# off_t
	llgfr	%r4,%r4			# unsigned int
	jg	sys_lseek		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
95
#sys32_getpid_wrapper				# void
Linus Torvalds's avatar
Linus Torvalds committed
96

Heiko Carstens's avatar
Heiko Carstens committed
97
	.globl	sys32_mount_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
98
99
100
101
102
103
104
105
sys32_mount_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# char *
	llgtr	%r4,%r4			# char *
	llgfr	%r5,%r5			# unsigned long
	llgtr	%r6,%r6			# void *
	jg	compat_sys_mount	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
106
	.globl	sys32_oldumount_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
107
108
109
110
sys32_oldumount_wrapper:
	llgtr	%r2,%r2			# char *
	jg	sys_oldumount		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
111
	.globl	sys32_setuid16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
112
sys32_setuid16_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
113
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
Linus Torvalds's avatar
Linus Torvalds committed
114
115
	jg	sys32_setuid16		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
116
#sys32_getuid16_wrapper			# void
Linus Torvalds's avatar
Linus Torvalds committed
117

Heiko Carstens's avatar
Heiko Carstens committed
118
	.globl	sys32_ptrace_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
119
120
121
122
123
124
125
sys32_ptrace_wrapper:
	lgfr	%r2,%r2			# long
	lgfr	%r3,%r3			# long
	llgtr	%r4,%r4			# long
	llgfr	%r5,%r5			# long
	jg	sys_ptrace		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
126
	.globl	sys32_alarm_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
127
128
129
130
sys32_alarm_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_alarm		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
131
#sys32_pause_wrapper			# void
Linus Torvalds's avatar
Linus Torvalds committed
132

Heiko Carstens's avatar
Heiko Carstens committed
133
	.globl	compat_sys_utime_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
134
135
136
137
138
compat_sys_utime_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct compat_utimbuf *
	jg	compat_sys_utime	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
139
	.globl	sys32_access_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
140
141
142
143
144
sys32_access_wrapper:
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_access		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
145
	.globl	sys32_nice_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
146
147
148
149
sys32_nice_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_nice		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
150
#sys32_sync_wrapper			# void
Linus Torvalds's avatar
Linus Torvalds committed
151

Heiko Carstens's avatar
Heiko Carstens committed
152
	.globl	sys32_kill_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
153
154
155
156
157
sys32_kill_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_kill		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
158
	.globl	sys32_rename_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
159
160
161
162
163
sys32_rename_wrapper:
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_rename		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
164
	.globl	sys32_mkdir_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
165
166
167
168
169
sys32_mkdir_wrapper:
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_mkdir		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
170
	.globl	sys32_rmdir_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
171
172
173
174
sys32_rmdir_wrapper:
	llgtr	%r2,%r2			# const char *
	jg	sys_rmdir		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
175
	.globl	sys32_dup_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
176
177
178
179
sys32_dup_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_dup			# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
180
	.globl	sys32_pipe_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
181
182
183
184
sys32_pipe_wrapper:
	llgtr	%r2,%r2			# u32 *
	jg	sys_pipe		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
185
	.globl	compat_sys_times_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
186
187
188
189
compat_sys_times_wrapper:
	llgtr	%r2,%r2			# struct compat_tms *
	jg	compat_sys_times	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
190
	.globl	sys32_brk_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
191
192
193
194
sys32_brk_wrapper:
	llgtr	%r2,%r2			# unsigned long
	jg	sys_brk			# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
195
	.globl	sys32_setgid16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
196
sys32_setgid16_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
197
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
Linus Torvalds's avatar
Linus Torvalds committed
198
199
	jg	sys32_setgid16		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
200
#sys32_getgid16_wrapper			# void
Linus Torvalds's avatar
Linus Torvalds committed
201
202
203

	.globl sys32_signal_wrapper
sys32_signal_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
204
	lgfr	%r2,%r2			# int
Linus Torvalds's avatar
Linus Torvalds committed
205
206
207
	llgtr	%r3,%r3			# __sighandler_t
	jg	sys_signal

Heiko Carstens's avatar
Heiko Carstens committed
208
#sys32_geteuid16_wrapper		# void
Linus Torvalds's avatar
Linus Torvalds committed
209

Heiko Carstens's avatar
Heiko Carstens committed
210
#sys32_getegid16_wrapper		# void
Linus Torvalds's avatar
Linus Torvalds committed
211

Heiko Carstens's avatar
Heiko Carstens committed
212
	.globl	sys32_acct_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
213
214
215
216
sys32_acct_wrapper:
	llgtr	%r2,%r2			# char *
	jg	sys_acct		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
217
	.globl	sys32_umount_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
218
219
220
221
222
sys32_umount_wrapper:
	llgtr	%r2,%r2			# char *
	lgfr	%r3,%r3			# int
	jg	sys_umount		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
223
	.globl	compat_sys_ioctl_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
224
225
226
227
228
229
compat_sys_ioctl_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	llgfr	%r4,%r4			# unsigned int
	jg	compat_sys_ioctl	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
230
	.globl	compat_sys_fcntl_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
231
232
compat_sys_fcntl_wrapper:
	llgfr	%r2,%r2			# unsigned int
Heiko Carstens's avatar
Heiko Carstens committed
233
	llgfr	%r3,%r3			# unsigned int
Linus Torvalds's avatar
Linus Torvalds committed
234
235
236
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_fcntl	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
237
	.globl	sys32_setpgid_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
238
239
240
241
242
sys32_setpgid_wrapper:
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# pid_t
	jg	sys_setpgid		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
243
	.globl	sys32_umask_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
244
245
246
247
sys32_umask_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_umask		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
248
	.globl	sys32_chroot_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
249
250
251
252
253
254
sys32_chroot_wrapper:
	llgtr	%r2,%r2			# char *
	jg	sys_chroot		# branch to system call

	.globl sys32_ustat_wrapper
sys32_ustat_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
255
	llgfr	%r2,%r2			# dev_t
Linus Torvalds's avatar
Linus Torvalds committed
256
257
258
	llgtr	%r3,%r3			# struct ustat *
	jg	sys_ustat

Heiko Carstens's avatar
Heiko Carstens committed
259
	.globl	sys32_dup2_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
260
261
262
263
264
sys32_dup2_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	jg	sys_dup2		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
265
#sys32_getppid_wrapper			# void
Linus Torvalds's avatar
Linus Torvalds committed
266

Heiko Carstens's avatar
Heiko Carstens committed
267
#sys32_getpgrp_wrapper			# void
Linus Torvalds's avatar
Linus Torvalds committed
268

Heiko Carstens's avatar
Heiko Carstens committed
269
#sys32_setsid_wrapper			# void
Linus Torvalds's avatar
Linus Torvalds committed
270

Heiko Carstens's avatar
Heiko Carstens committed
271
	.globl	sys32_sigaction_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
272
sys32_sigaction_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
273
	lgfr	%r2,%r2			# int
Linus Torvalds's avatar
Linus Torvalds committed
274
275
276
277
	llgtr	%r3,%r3			# const struct old_sigaction *
	llgtr	%r4,%r4			# struct old_sigaction32 *
	jg	sys32_sigaction		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
278
	.globl	sys32_setreuid16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
279
sys32_setreuid16_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
280
281
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
Linus Torvalds's avatar
Linus Torvalds committed
282
283
	jg	sys32_setreuid16	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
284
	.globl	sys32_setregid16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
285
sys32_setregid16_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
286
287
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
	llgfr	%r3,%r3			# __kernel_old_gid_emu31_t
Linus Torvalds's avatar
Linus Torvalds committed
288
289
	jg	sys32_setregid16	# branch to system call

290
291
292
293
294
295
	.globl sys_sigsuspend_wrapper
sys_sigsuspend_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgfr	%r4,%r4			# old_sigset_t
	jg	sys_sigsuspend
Linus Torvalds's avatar
Linus Torvalds committed
296

Heiko Carstens's avatar
Heiko Carstens committed
297
	.globl	compat_sys_sigpending_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
298
299
300
301
compat_sys_sigpending_wrapper:
	llgtr	%r2,%r2			# compat_old_sigset_t *
	jg	compat_sys_sigpending	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
302
	.globl	sys32_sethostname_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
303
304
305
306
307
sys32_sethostname_wrapper:
	llgtr	%r2,%r2			# char *
	lgfr	%r3,%r3			# int
	jg	sys_sethostname		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
308
	.globl	compat_sys_setrlimit_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
309
310
311
312
313
compat_sys_setrlimit_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct rlimit_emu31 *
	jg	compat_sys_setrlimit	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
314
	.globl	compat_sys_old_getrlimit_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
315
316
317
318
319
compat_sys_old_getrlimit_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct rlimit_emu31 *
	jg	compat_sys_old_getrlimit # branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
320
	.globl	compat_sys_getrlimit_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
321
322
323
324
325
compat_sys_getrlimit_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct rlimit_emu31 *
	jg	compat_sys_getrlimit	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
326
	.globl	sys32_mmap2_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
327
328
329
330
sys32_mmap2_wrapper:
	llgtr	%r2,%r2			# struct mmap_arg_struct_emu31 *
	jg	sys32_mmap2			# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
331
	.globl	compat_sys_getrusage_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
332
333
334
335
336
compat_sys_getrusage_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct rusage_emu31 *
	jg	compat_sys_getrusage	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
337
	.globl	sys32_gettimeofday_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
338
339
340
341
342
sys32_gettimeofday_wrapper:
	llgtr	%r2,%r2			# struct timeval_emu31 *
	llgtr	%r3,%r3			# struct timezone *
	jg	sys32_gettimeofday	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
343
	.globl	sys32_settimeofday_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
344
345
346
347
348
sys32_settimeofday_wrapper:
	llgtr	%r2,%r2			# struct timeval_emu31 *
	llgtr	%r3,%r3			# struct timezone *
	jg	sys32_settimeofday	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
349
	.globl	sys32_getgroups16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
350
351
352
353
354
sys32_getgroups16_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# __kernel_old_gid_emu31_t *
	jg	sys32_getgroups16	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
355
	.globl	sys32_setgroups16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
356
357
358
359
360
sys32_setgroups16_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# __kernel_old_gid_emu31_t *
	jg	sys32_setgroups16	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
361
	.globl	sys32_symlink_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
362
363
364
365
366
sys32_symlink_wrapper:
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_symlink		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
367
	.globl	sys32_readlink_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
368
369
370
371
372
373
sys32_readlink_wrapper:
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# char *
	lgfr	%r4,%r4			# int
	jg	sys_readlink		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
374
	.globl	sys32_uselib_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
375
376
377
378
sys32_uselib_wrapper:
	llgtr	%r2,%r2			# const char *
	jg	sys_uselib		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
379
	.globl	sys32_swapon_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
380
381
382
383
384
sys32_swapon_wrapper:
	llgtr	%r2,%r2			# const char *
	lgfr	%r3,%r3			# int
	jg	sys_swapon		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
385
	.globl	sys32_reboot_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
386
387
388
389
390
391
392
sys32_reboot_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgfr	%r4,%r4			# unsigned int
	llgtr	%r5,%r5			# void *
	jg	sys_reboot		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
393
	.globl	old32_readdir_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
394
395
396
397
398
399
old32_readdir_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# void *
	llgfr	%r4,%r4			# unsigned int
	jg	compat_sys_old_readdir	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
400
	.globl	old32_mmap_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
401
402
403
404
old32_mmap_wrapper:
	llgtr	%r2,%r2			# struct mmap_arg_struct_emu31 *
	jg	old32_mmap		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
405
	.globl	sys32_munmap_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
406
407
sys32_munmap_wrapper:
	llgfr	%r2,%r2			# unsigned long
Heiko Carstens's avatar
Heiko Carstens committed
408
	llgfr	%r3,%r3			# size_t
Linus Torvalds's avatar
Linus Torvalds committed
409
410
	jg	sys_munmap		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
411
	.globl	sys32_truncate_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
412
413
414
415
416
sys32_truncate_wrapper:
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# unsigned long
	jg	sys_truncate		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
417
	.globl	sys32_ftruncate_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
418
419
420
421
422
sys32_ftruncate_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned long
	jg	sys_ftruncate		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
423
	.globl	sys32_fchmod_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
424
425
426
427
428
sys32_fchmod_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# mode_t
	jg	sys_fchmod		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
429
	.globl	sys32_fchown16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
430
431
432
433
434
435
sys32_fchown16_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# compat_uid_t
	llgfr	%r4,%r4			# compat_uid_t
	jg	sys32_fchown16		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
436
	.globl	sys32_getpriority_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
437
438
439
440
441
sys32_getpriority_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	jg	sys_getpriority		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
442
	.globl	sys32_setpriority_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
443
444
445
446
447
448
sys32_setpriority_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	jg	sys_setpriority		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
449
	.globl	compat_sys_statfs_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
450
451
452
453
454
compat_sys_statfs_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct compat_statfs *
	jg	compat_sys_statfs	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
455
	.globl	compat_sys_fstatfs_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
456
457
458
459
460
compat_sys_fstatfs_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct compat_statfs *
	jg	compat_sys_fstatfs	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
461
	.globl	compat_sys_socketcall_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
462
463
464
465
466
compat_sys_socketcall_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# u32 *
	jg	compat_sys_socketcall	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
467
	.globl	sys32_syslog_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
468
469
470
471
472
473
sys32_syslog_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# char *
	lgfr	%r4,%r4			# int
	jg	sys_syslog		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
474
	.globl	compat_sys_setitimer_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
475
476
477
478
479
480
compat_sys_setitimer_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct itimerval_emu31 *
	llgtr	%r4,%r4			# struct itimerval_emu31 *
	jg	compat_sys_setitimer	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
481
	.globl	compat_sys_getitimer_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
482
483
484
485
486
compat_sys_getitimer_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct itimerval_emu31 *
	jg	compat_sys_getitimer	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
487
	.globl	compat_sys_newstat_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
488
489
490
491
492
compat_sys_newstat_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat_emu31 *
	jg	compat_sys_newstat	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
493
	.globl	compat_sys_newlstat_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
494
495
496
497
498
compat_sys_newlstat_wrapper:
	llgtr	%r2,%r2			# char *
	llgtr	%r3,%r3			# struct stat_emu31 *
	jg	compat_sys_newlstat	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
499
	.globl	compat_sys_newfstat_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
500
501
502
503
504
compat_sys_newfstat_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# struct stat_emu31 *
	jg	compat_sys_newfstat	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
505
#sys32_vhangup_wrapper			# void
Linus Torvalds's avatar
Linus Torvalds committed
506

Heiko Carstens's avatar
Heiko Carstens committed
507
	.globl	compat_sys_wait4_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
508
509
510
511
512
513
514
compat_sys_wait4_wrapper:
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# unsigned int *
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# struct rusage *
	jg	compat_sys_wait4	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
515
	.globl	sys32_swapoff_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
516
517
518
519
sys32_swapoff_wrapper:
	llgtr	%r2,%r2			# const char *
	jg	sys_swapoff		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
520
	.globl	sys32_sysinfo_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
521
522
523
524
sys32_sysinfo_wrapper:
	llgtr	%r2,%r2			# struct sysinfo_emu31 *
	jg	sys32_sysinfo		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
525
	.globl	sys32_ipc_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
526
527
528
529
530
531
532
533
sys32_ipc_wrapper:
	llgfr	%r2,%r2			# uint
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	lgfr	%r5,%r5			# int
	llgfr	%r6,%r6			# u32
	jg	sys32_ipc		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
534
	.globl	sys32_fsync_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
535
536
537
538
sys32_fsync_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_fsync		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
539
#sys32_sigreturn_wrapper		# done in sigreturn_glue
Linus Torvalds's avatar
Linus Torvalds committed
540

Heiko Carstens's avatar
Heiko Carstens committed
541
#sys32_clone_wrapper			# done in clone_glue
Linus Torvalds's avatar
Linus Torvalds committed
542

Heiko Carstens's avatar
Heiko Carstens committed
543
	.globl	sys32_setdomainname_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
544
545
546
547
548
sys32_setdomainname_wrapper:
	llgtr	%r2,%r2			# char *
	lgfr	%r3,%r3			# int
	jg	sys_setdomainname	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
549
	.globl	sys32_newuname_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
550
551
552
553
sys32_newuname_wrapper:
	llgtr	%r2,%r2			# struct new_utsname *
	jg	s390x_newuname		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
554
	.globl	compat_sys_adjtimex_wrapper
555
556
557
compat_sys_adjtimex_wrapper:
	llgtr	%r2,%r2			# struct compat_timex *
	jg	compat_sys_adjtimex	# branch to system call
Linus Torvalds's avatar
Linus Torvalds committed
558

Heiko Carstens's avatar
Heiko Carstens committed
559
	.globl	sys32_mprotect_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
560
561
562
563
564
565
sys32_mprotect_wrapper:
	llgtr	%r2,%r2			# unsigned long (actually pointer
	llgfr	%r3,%r3			# size_t
	llgfr	%r4,%r4			# unsigned long
	jg	sys_mprotect		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
566
	.globl	compat_sys_sigprocmask_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
567
568
569
570
571
572
compat_sys_sigprocmask_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# compat_old_sigset_t *
	llgtr	%r4,%r4			# compat_old_sigset_t *
	jg	compat_sys_sigprocmask		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
573
	.globl	sys32_init_module_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
574
575
576
577
578
579
sys32_init_module_wrapper:
	llgtr	%r2,%r2			# void *
	llgfr	%r3,%r3			# unsigned long
	llgtr	%r4,%r4			# char *
	jg	sys32_init_module	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
580
	.globl	sys32_delete_module_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
581
582
583
584
585
sys32_delete_module_wrapper:
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# unsigned int
	jg	sys32_delete_module	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
586
	.globl	sys32_quotactl_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
587
588
589
590
591
592
593
sys32_quotactl_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# qid_t
	llgtr	%r5,%r5			# caddr_t
	jg	sys_quotactl		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
594
	.globl	sys32_getpgid_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
595
596
597
598
sys32_getpgid_wrapper:
	lgfr	%r2,%r2			# pid_t
	jg	sys_getpgid		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
599
	.globl	sys32_fchdir_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
600
601
602
603
sys32_fchdir_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_fchdir		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
604
	.globl	sys32_bdflush_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
605
606
607
608
609
sys32_bdflush_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# long
	jg	sys_bdflush		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
610
	.globl	sys32_sysfs_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
611
612
613
614
615
616
sys32_sysfs_wrapper:
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	jg	sys_sysfs		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
617
	.globl	sys32_personality_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
618
619
620
621
sys32_personality_wrapper:
	llgfr	%r2,%r2			# unsigned long
	jg	s390x_personality	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
622
	.globl	sys32_setfsuid16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
623
sys32_setfsuid16_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
624
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
Linus Torvalds's avatar
Linus Torvalds committed
625
626
	jg	sys32_setfsuid16	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
627
	.globl	sys32_setfsgid16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
628
sys32_setfsgid16_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
629
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
Linus Torvalds's avatar
Linus Torvalds committed
630
631
	jg	sys32_setfsgid16	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
632
	.globl	sys32_llseek_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
633
634
635
636
637
638
639
640
sys32_llseek_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	llgtr	%r5,%r5			# loff_t *
	llgfr	%r6,%r6			# unsigned int
	jg	sys_llseek		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
641
	.globl	sys32_getdents_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
642
643
644
645
646
647
sys32_getdents_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# void *
	llgfr	%r4,%r4			# unsigned int
	jg	compat_sys_getdents	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
648
	.globl	compat_sys_select_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
649
650
651
652
653
654
655
656
compat_sys_select_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# compat_fd_set *
	llgtr	%r4,%r4			# compat_fd_set *
	llgtr	%r5,%r5			# compat_fd_set *
	llgtr	%r6,%r6			# struct compat_timeval *
	jg	compat_sys_select	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
657
	.globl	sys32_flock_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
658
659
660
661
662
sys32_flock_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned int
	jg	sys_flock		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
663
	.globl	sys32_msync_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
664
665
666
667
668
669
sys32_msync_wrapper:
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	lgfr	%r4,%r4			# int
	jg	sys_msync		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
670
	.globl	compat_sys_readv_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
671
672
673
674
675
676
compat_sys_readv_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const struct compat_iovec *
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_readv	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
677
	.globl	compat_sys_writev_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
678
679
680
681
682
683
compat_sys_writev_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const struct compat_iovec *
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_writev	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
684
	.globl	sys32_getsid_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
685
686
687
688
sys32_getsid_wrapper:
	lgfr	%r2,%r2			# pid_t
	jg	sys_getsid		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
689
	.globl	sys32_fdatasync_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
690
691
692
693
sys32_fdatasync_wrapper:
	llgfr	%r2,%r2			# unsigned int
	jg	sys_fdatasync		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
694
#sys32_sysctl_wrapper			# tbd
Linus Torvalds's avatar
Linus Torvalds committed
695

Heiko Carstens's avatar
Heiko Carstens committed
696
	.globl	sys32_mlock_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
697
698
699
700
701
sys32_mlock_wrapper:
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	jg	sys_mlock		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
702
	.globl	sys32_munlock_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
703
704
705
706
707
sys32_munlock_wrapper:
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	jg	sys_munlock		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
708
	.globl	sys32_mlockall_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
709
710
711
712
sys32_mlockall_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_mlockall		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
713
#sys32_munlockall_wrapper		# void
Linus Torvalds's avatar
Linus Torvalds committed
714

Heiko Carstens's avatar
Heiko Carstens committed
715
	.globl	sys32_sched_setparam_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
716
717
718
719
720
sys32_sched_setparam_wrapper:
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# struct sched_param *
	jg	sys_sched_setparam	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
721
	.globl	sys32_sched_getparam_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
722
723
724
725
726
sys32_sched_getparam_wrapper:
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# struct sched_param *
	jg	sys_sched_getparam	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
727
	.globl	sys32_sched_setscheduler_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
728
729
730
731
732
733
sys32_sched_setscheduler_wrapper:
	lgfr	%r2,%r2			# pid_t
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# struct sched_param *
	jg	sys_sched_setscheduler	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
734
	.globl	sys32_sched_getscheduler_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
735
736
737
738
sys32_sched_getscheduler_wrapper:
	lgfr	%r2,%r2			# pid_t
	jg	sys_sched_getscheduler	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
739
#sys32_sched_yield_wrapper		# void
Linus Torvalds's avatar
Linus Torvalds committed
740

Heiko Carstens's avatar
Heiko Carstens committed
741
	.globl	sys32_sched_get_priority_max_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
742
743
744
745
sys32_sched_get_priority_max_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_sched_get_priority_max	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
746
	.globl	sys32_sched_get_priority_min_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
747
748
749
750
sys32_sched_get_priority_min_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_sched_get_priority_min	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
751
	.globl	sys32_sched_rr_get_interval_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
752
753
754
755
756
sys32_sched_rr_get_interval_wrapper:
	lgfr	%r2,%r2			# pid_t
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	sys32_sched_rr_get_interval	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
757
	.globl	compat_sys_nanosleep_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
758
759
760
761
762
compat_sys_nanosleep_wrapper:
	llgtr	%r2,%r2			# struct compat_timespec *
	llgtr	%r3,%r3			# struct compat_timespec *
	jg	compat_sys_nanosleep		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
763
	.globl	sys32_mremap_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
764
765
766
767
768
769
770
771
sys32_mremap_wrapper:
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	llgfr	%r5,%r5			# unsigned long
	llgfr	%r6,%r6			# unsigned long
	jg	sys_mremap		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
772
	.globl	sys32_setresuid16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
773
sys32_setresuid16_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
774
775
776
	llgfr	%r2,%r2			# __kernel_old_uid_emu31_t
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
	llgfr	%r4,%r4			# __kernel_old_uid_emu31_t
Linus Torvalds's avatar
Linus Torvalds committed
777
778
	jg	sys32_setresuid16	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
779
	.globl	sys32_getresuid16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
780
781
782
783
784
785
sys32_getresuid16_wrapper:
	llgtr	%r2,%r2			# __kernel_old_uid_emu31_t *
	llgtr	%r3,%r3			# __kernel_old_uid_emu31_t *
	llgtr	%r4,%r4			# __kernel_old_uid_emu31_t *
	jg	sys32_getresuid16	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
786
	.globl	sys32_poll_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
787
sys32_poll_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
788
789
790
	llgtr	%r2,%r2			# struct pollfd *
	llgfr	%r3,%r3			# unsigned int
	lgfr	%r4,%r4			# long
Linus Torvalds's avatar
Linus Torvalds committed
791
792
	jg	sys_poll		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
793
	.globl	compat_sys_nfsservctl_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
794
compat_sys_nfsservctl_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
795
	lgfr	%r2,%r2			# int
Linus Torvalds's avatar
Linus Torvalds committed
796
797
798
799
	llgtr	%r3,%r3			# struct compat_nfsctl_arg*
	llgtr	%r4,%r4			# union compat_nfsctl_res*
	jg	compat_sys_nfsservctl	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
800
	.globl	sys32_setresgid16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
801
sys32_setresgid16_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
802
803
804
	llgfr	%r2,%r2			# __kernel_old_gid_emu31_t
	llgfr	%r3,%r3			# __kernel_old_gid_emu31_t
	llgfr	%r4,%r4			# __kernel_old_gid_emu31_t
Linus Torvalds's avatar
Linus Torvalds committed
805
806
	jg	sys32_setresgid16	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
807
	.globl	sys32_getresgid16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
808
809
810
811
812
813
sys32_getresgid16_wrapper:
	llgtr	%r2,%r2			# __kernel_old_gid_emu31_t *
	llgtr	%r3,%r3			# __kernel_old_gid_emu31_t *
	llgtr	%r4,%r4			# __kernel_old_gid_emu31_t *
	jg	sys32_getresgid16	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
814
	.globl	sys32_prctl_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
815
816
817
818
819
820
821
822
sys32_prctl_wrapper:
	lgfr	%r2,%r2			# int
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	llgfr	%r5,%r5			# unsigned long
	llgfr	%r6,%r6			# unsigned long
	jg	sys_prctl		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
823
#sys32_rt_sigreturn_wrapper		# done in rt_sigreturn_glue
Linus Torvalds's avatar
Linus Torvalds committed
824

Heiko Carstens's avatar
Heiko Carstens committed
825
	.globl	sys32_rt_sigaction_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
826
827
828
829
830
831
832
sys32_rt_sigaction_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# const struct sigaction_emu31 *
	llgtr	%r4,%r4			# const struct sigaction_emu31 *
	llgfr	%r5,%r5			# size_t
	jg	sys32_rt_sigaction	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
833
	.globl	sys32_rt_sigprocmask_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
834
835
836
837
838
839
840
sys32_rt_sigprocmask_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# old_sigset_emu31 *
	llgtr	%r4,%r4			# old_sigset_emu31 *
	llgfr	%r5,%r5			# size_t
	jg	sys32_rt_sigprocmask	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
841
	.globl	sys32_rt_sigpending_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
842
843
844
845
846
sys32_rt_sigpending_wrapper:
	llgtr	%r2,%r2			# sigset_emu31 *
	llgfr	%r3,%r3			# size_t
	jg	sys32_rt_sigpending	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
847
	.globl	compat_sys_rt_sigtimedwait_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
848
849
850
851
852
853
854
compat_sys_rt_sigtimedwait_wrapper:
	llgtr	%r2,%r2			# const sigset_emu31_t *
	llgtr	%r3,%r3			# siginfo_emu31_t *
	llgtr	%r4,%r4			# const struct compat_timespec *
	llgfr	%r5,%r5			# size_t
	jg	compat_sys_rt_sigtimedwait	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
855
	.globl	sys32_rt_sigqueueinfo_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
856
857
858
859
860
861
sys32_rt_sigqueueinfo_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# siginfo_emu31_t *
	jg	sys32_rt_sigqueueinfo	# branch to system call

862
863
864
865
866
	.globl compat_sys_rt_sigsuspend_wrapper
compat_sys_rt_sigsuspend_wrapper:
	llgtr	%r2,%r2			# compat_sigset_t *
	llgfr	%r3,%r3			# compat_size_t
	jg	compat_sys_rt_sigsuspend
Linus Torvalds's avatar
Linus Torvalds committed
867

Heiko Carstens's avatar
Heiko Carstens committed
868
	.globl	sys32_pread64_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
869
870
871
872
873
874
875
876
sys32_pread64_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# char *
	llgfr	%r4,%r4			# size_t
	llgfr	%r5,%r5			# u32
	llgfr	%r6,%r6			# u32
	jg	sys32_pread64		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
877
	.globl	sys32_pwrite64_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
878
879
880
881
882
883
884
885
sys32_pwrite64_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# const char *
	llgfr	%r4,%r4			# size_t
	llgfr	%r5,%r5			# u32
	llgfr	%r6,%r6			# u32
	jg	sys32_pwrite64		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
886
	.globl	sys32_chown16_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
887
888
sys32_chown16_wrapper:
	llgtr	%r2,%r2			# const char *
Heiko Carstens's avatar
Heiko Carstens committed
889
890
	llgfr	%r3,%r3			# __kernel_old_uid_emu31_t
	llgfr	%r4,%r4			# __kernel_old_gid_emu31_t
Linus Torvalds's avatar
Linus Torvalds committed
891
892
	jg	sys32_chown16		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
893
	.globl	sys32_getcwd_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
894
895
896
897
898
sys32_getcwd_wrapper:
	llgtr	%r2,%r2			# char *
	llgfr	%r3,%r3			# unsigned long
	jg	sys_getcwd		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
899
	.globl	sys32_capget_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
900
901
902
903
904
sys32_capget_wrapper:
	llgtr	%r2,%r2			# cap_user_header_t
	llgtr	%r3,%r3			# cap_user_data_t
	jg	sys_capget		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
905
	.globl	sys32_capset_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
906
907
908
909
910
911
912
sys32_capset_wrapper:
	llgtr	%r2,%r2			# cap_user_header_t
	llgtr	%r3,%r3			# const cap_user_data_t
	jg	sys_capset		# branch to system call

	.globl sys32_sigaltstack_wrapper
sys32_sigaltstack_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
913
914
	llgtr	%r2,%r2			# const stack_emu31_t *
	llgtr	%r3,%r3			# stack_emu31_t *
Linus Torvalds's avatar
Linus Torvalds committed
915
916
	jg	sys32_sigaltstack

Heiko Carstens's avatar
Heiko Carstens committed
917
	.globl	sys32_sendfile_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
918
919
920
921
922
923
924
sys32_sendfile_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# __kernel_off_emu31_t *
	llgfr	%r5,%r5			# size_t
	jg	sys32_sendfile		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
925
#sys32_vfork_wrapper			# done in vfork_glue
Linus Torvalds's avatar
Linus Torvalds committed
926

Heiko Carstens's avatar
Heiko Carstens committed
927
	.globl	sys32_truncate64_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
928
929
930
931
932
933
sys32_truncate64_wrapper:
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	jg	sys32_truncate64	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
934
	.globl	sys32_ftruncate64_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
935
936
937
938
939
940
sys32_ftruncate64_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# unsigned long
	llgfr	%r4,%r4			# unsigned long
	jg	sys32_ftruncate64	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
941
	.globl sys32_lchown_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
942
943
944
945
946
947
sys32_lchown_wrapper:
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_lchown		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
948
949
950
951
#sys32_getuid_wrapper			# void
#sys32_getgid_wrapper			# void
#sys32_geteuid_wrapper			# void
#sys32_getegid_wrapper			# void
Linus Torvalds's avatar
Linus Torvalds committed
952
953
954
955
956
957
958
959
960
961
962
963
964

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

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

Heiko Carstens's avatar
Heiko Carstens committed
965
	.globl	sys32_getgroups_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
966
967
968
969
970
sys32_getgroups_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# gid_t *
	jg	sys_getgroups		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
971
	.globl	sys32_setgroups_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
972
973
974
975
976
sys32_setgroups_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# gid_t *
	jg	sys_setgroups		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
977
	.globl sys32_fchown_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
978
979
980
981
982
983
sys32_fchown_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_fchown		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
984
	.globl sys32_setresuid_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
985
986
987
988
989
990
sys32_setresuid_wrapper:
	llgfr	%r2,%r2			# uid_t
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# uid_t
	jg	sys_setresuid		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
991
	.globl sys32_getresuid_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
992
993
994
995
996
997
sys32_getresuid_wrapper:
	llgtr	%r2,%r2			# uid_t *
	llgtr	%r3,%r3			# uid_t *
	llgtr	%r4,%r4			# uid_t *
	jg	sys_getresuid		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
998
	.globl sys32_setresgid_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
999
1000
1001
1002
1003
1004
sys32_setresgid_wrapper:
	llgfr	%r2,%r2			# gid_t
	llgfr	%r3,%r3			# gid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_setresgid		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1005
	.globl sys32_getresgid_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1006
1007
1008
1009
1010
1011
sys32_getresgid_wrapper:
	llgtr	%r2,%r2			# gid_t *
	llgtr	%r3,%r3			# gid_t *
	llgtr	%r4,%r4			# gid_t *
	jg	sys_getresgid		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1012
	.globl sys32_chown_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1013
1014
1015
1016
1017
1018
sys32_chown_wrapper:
	llgtr	%r2,%r2			# const char *
	llgfr	%r3,%r3			# uid_t
	llgfr	%r4,%r4			# gid_t
	jg	sys_chown		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1019
	.globl sys32_setuid_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1020
1021
1022
1023
sys32_setuid_wrapper:
	llgfr	%r2,%r2			# uid_t
	jg	sys_setuid		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1024
	.globl sys32_setgid_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1025
1026
1027
1028
sys32_setgid_wrapper:
	llgfr	%r2,%r2			# gid_t
	jg	sys_setgid		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1029
	.globl sys32_setfsuid_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1030
1031
1032
1033
sys32_setfsuid_wrapper:
	llgfr	%r2,%r2			# uid_t
	jg	sys_setfsuid		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1034
	.globl sys32_setfsgid_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1035
1036
1037
1038
sys32_setfsgid_wrapper:
	llgfr	%r2,%r2			# gid_t
	jg	sys_setfsgid		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1039
	.globl	sys32_pivot_root_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1040
1041
1042
1043
1044
sys32_pivot_root_wrapper:
	llgtr	%r2,%r2			# const char *
	llgtr	%r3,%r3			# const char *
	jg	sys_pivot_root		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1045
	.globl	sys32_mincore_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1046
1047
1048
1049
1050
1051
sys32_mincore_wrapper:
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	llgtr	%r4,%r4			# unsigned char *
	jg	sys_mincore		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1052
	.globl	sys32_madvise_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1053
1054
1055
1056
1057
1058
sys32_madvise_wrapper:
	llgfr	%r2,%r2			# unsigned long
	llgfr	%r3,%r3			# size_t
	lgfr	%r4,%r4			# int
	jg	sys_madvise		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1059
	.globl	sys32_getdents64_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1060
1061
1062
1063
1064
1065
sys32_getdents64_wrapper:
	llgfr	%r2,%r2			# unsigned int
	llgtr	%r3,%r3			# void *
	llgfr	%r4,%r4			# unsigned int
	jg	sys_getdents64		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1066
	.globl	compat_sys_fcntl64_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1067
1068
compat_sys_fcntl64_wrapper:
	llgfr	%r2,%r2			# unsigned int
Heiko Carstens's avatar
Heiko Carstens committed
1069
	llgfr	%r3,%r3			# unsigned int
Linus Torvalds's avatar
Linus Torvalds committed
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
	llgfr	%r4,%r4			# unsigned long
	jg	compat_sys_fcntl64	# branch to system call

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

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

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

Heiko Carstens's avatar
Heiko Carstens committed
1090
	.globl	sys32_sysctl_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1091
sys32_sysctl_wrapper:
Heiko Carstens's avatar
Heiko Carstens committed
1092
1093
	llgtr	%r2,%r2 		# struct __sysctl_args32 *
	jg	sys32_sysctl
Linus Torvalds's avatar
Linus Torvalds committed
1094
1095
1096
1097
1098
1099
1100

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Heiko Carstens's avatar
Heiko Carstens committed
1216
	.globl	sys32_exit_group_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1217
1218
1219
1220
sys32_exit_group_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_exit_group		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1221
	.globl	sys32_set_tid_address_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1222
1223
1224
1225
sys32_set_tid_address_wrapper:
	llgtr	%r2,%r2			# int *
	jg	sys_set_tid_address	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1226
	.globl	sys_epoll_create_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1227
1228
1229
1230
sys_epoll_create_wrapper:
	lgfr	%r2,%r2			# int
	jg	sys_epoll_create	# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1231
	.globl	sys_epoll_ctl_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1232
1233
1234
1235
1236
1237
1238
sys_epoll_ctl_wrapper:
	lgfr	%r2,%r2			# int
	lgfr	%r3,%r3			# int
	lgfr	%r4,%r4			# int
	llgtr	%r5,%r5			# struct epoll_event *
	jg	sys_epoll_ctl		# branch to system call

Heiko Carstens's avatar
Heiko Carstens committed
1239
	.globl	sys_epoll_wait_wrapper
Linus Torvalds's avatar
Linus Torvalds committed
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
sys_epoll_wait_wrapper:
	lgfr	%r2,%r2			# int
	llgtr	%r3,%r3			# struct epoll_event *
	lgfr	%r4,%r4			# int
	lgfr	%r5,%r5			# int
	jg	sys_epoll_wait		# branch to system call

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

	.globl	sys32_fadvise64_wrapper
sys32_fadvise64_wrapper:
	lgfr	%r2,%r2			# int
	sllg	%r3,%r3,32		# get high word of 64bit loff_t
	or	%r3,%r4			# get low word of 64bit loff_t
	llgfr	%r4,%r5			# size_t (unsigned long)
	lgfr	%r5,%r6			# int
1262
	jg	sys32_fadvise64
Linus Torvalds's avatar
Linus Torvalds committed
1263
1264
1265
1266

	.globl	sys32_fadvise64_64_wrapper
sys32_fadvise64_64_wrapper:
	llgtr	%r2,%r2			# struct fadvise64_64_args *
1267
	jg	sys32_fadvise64_64
Linus Torvalds's avatar
Linus Torvalds committed
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299

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

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

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

	.globl	sys32_clock_nanosleep_wrapper
sys32_clock_nanosleep_wrapper:
	lgfr	%r2,%r2			# clockid_t (int)
	lgfr	%r3,%r3			# int
	llgtr	%r4,%r4			# struct compat_timespec *
	llgtr	%r5,%r5			# struct compat_timespec *
	jg	compat_sys_clock_nanosleep

	.globl	sys32_timer_create_wrapper
sys32_timer_create_wrapper:
	lgfr	%r2,%r2			# timer_t (int)
	llgtr	%r3,%r3			# struct compat_sigevent *
	llgtr	%r4,%r4			# timer_t *
1300
	jg	compat_sys_timer_create
Linus Torvalds's avatar
Linus Torvalds committed