direct-io.hg

view linux-2.6-xen-sparse/arch/x86_64/ia32/ia32entry-xen.S @ 11690:38f9bd7a4ce6

[NET] Make MAX_SKBUFF_ORDER page-size independent.
Original patch from Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Oct 03 11:39:22 2006 +0100 (2006-10-03)
parents 1ca3d63e7008
children 4fad820a2233
line source
1 /*
2 * Compatibility mode system call entry point for x86-64.
3 *
4 * Copyright 2000-2002 Andi Kleen, SuSE Labs.
5 */
7 #include <asm/dwarf2.h>
8 #include <asm/calling.h>
9 #include <asm/asm-offsets.h>
10 #include <asm/current.h>
11 #include <asm/errno.h>
12 #include <asm/ia32_unistd.h>
13 #include <asm/thread_info.h>
14 #include <asm/segment.h>
15 #include <asm/vsyscall32.h>
16 #include <linux/linkage.h>
18 #define __XEN_X86_64 1
20 .macro IA32_ARG_FIXUP noebp=0
21 movl %edi,%r8d
22 .if \noebp
23 .else
24 movl %ebp,%r9d
25 .endif
26 xchg %ecx,%esi
27 movl %ebx,%edi
28 movl %edx,%edx /* zero extension */
29 .endm
31 /* clobbers %eax */
32 .macro CLEAR_RREGS
33 xorl %eax,%eax
34 movq %rax,R11(%rsp)
35 movq %rax,R10(%rsp)
36 movq %rax,R9(%rsp)
37 movq %rax,R8(%rsp)
38 .endm
40 #if defined (__XEN_X86_64)
41 #include "../kernel/xen_entry.S"
43 #define __swapgs
44 #define __cli
45 #define __sti
46 #else
47 /*
48 * Use the native instructions
49 */
50 #define __swapgs swapgs
51 #define __cli cli
52 #define __sti sti
53 #endif
55 .macro CFI_STARTPROC32 simple
56 CFI_STARTPROC \simple
57 CFI_UNDEFINED r8
58 CFI_UNDEFINED r9
59 CFI_UNDEFINED r10
60 CFI_UNDEFINED r11
61 CFI_UNDEFINED r12
62 CFI_UNDEFINED r13
63 CFI_UNDEFINED r14
64 CFI_UNDEFINED r15
65 .endm
67 /*
68 * 32bit SYSENTER instruction entry.
69 *
70 * Arguments:
71 * %eax System call number.
72 * %ebx Arg1
73 * %ecx Arg2
74 * %edx Arg3
75 * %esi Arg4
76 * %edi Arg5
77 * %ebp user stack
78 * 0(%ebp) Arg6
79 *
80 * Interrupts off.
81 *
82 * This is purely a fast path. For anything complicated we use the int 0x80
83 * path below. Set up a complete hardware stack frame to share code
84 * with the int 0x80 path.
85 */
86 ENTRY(ia32_sysenter_target)
87 CFI_STARTPROC32 simple
88 CFI_DEF_CFA rsp,0
89 CFI_REGISTER rsp,rbp
90 __swapgs
91 movq %gs:pda_kernelstack, %rsp
92 addq $(PDA_STACKOFFSET),%rsp
93 XEN_UNBLOCK_EVENTS(%r11)
94 __sti
95 movl %ebp,%ebp /* zero extension */
96 pushq $__USER32_DS
97 CFI_ADJUST_CFA_OFFSET 8
98 /*CFI_REL_OFFSET ss,0*/
99 pushq %rbp
100 CFI_ADJUST_CFA_OFFSET 8
101 CFI_REL_OFFSET rsp,0
102 pushfq
103 CFI_ADJUST_CFA_OFFSET 8
104 /*CFI_REL_OFFSET rflags,0*/
105 movl $VSYSCALL32_SYSEXIT, %r10d
106 CFI_REGISTER rip,r10
107 pushq $__USER32_CS
108 CFI_ADJUST_CFA_OFFSET 8
109 /*CFI_REL_OFFSET cs,0*/
110 movl %eax, %eax
111 pushq %r10
112 CFI_ADJUST_CFA_OFFSET 8
113 CFI_REL_OFFSET rip,0
114 pushq %rax
115 CFI_ADJUST_CFA_OFFSET 8
116 cld
117 SAVE_ARGS 0,0,1
118 /* no need to do an access_ok check here because rbp has been
119 32bit zero extended */
120 1: movl (%rbp),%r9d
121 .section __ex_table,"a"
122 .quad 1b,ia32_badarg
123 .previous
124 GET_THREAD_INFO(%r10)
125 orl $TS_COMPAT,threadinfo_status(%r10)
126 testl $(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SECCOMP),threadinfo_flags(%r10)
127 CFI_REMEMBER_STATE
128 jnz sysenter_tracesys
129 sysenter_do_call:
130 cmpl $(IA32_NR_syscalls),%eax
131 jae ia32_badsys
132 IA32_ARG_FIXUP 1
133 call *ia32_sys_call_table(,%rax,8)
134 movq %rax,RAX-ARGOFFSET(%rsp)
135 GET_THREAD_INFO(%r10)
136 XEN_BLOCK_EVENTS(%r11)
137 __cli
138 testl $_TIF_ALLWORK_MASK,threadinfo_flags(%r10)
139 jnz int_ret_from_sys_call
140 andl $~TS_COMPAT,threadinfo_status(%r10)
141 /* clear IF, that popfq doesn't enable interrupts early */
142 andl $~0x200,EFLAGS-R11(%rsp)
143 RESTORE_ARGS 1,24,1,1,1,1
144 popfq
145 CFI_ADJUST_CFA_OFFSET -8
146 /*CFI_RESTORE rflags*/
147 popq %rcx /* User %esp */
148 CFI_ADJUST_CFA_OFFSET -8
149 CFI_REGISTER rsp,rcx
150 movl $VSYSCALL32_SYSEXIT,%edx /* User %eip */
151 CFI_REGISTER rip,rdx
152 __swapgs
153 XEN_UNBLOCK_EVENTS(%r11)
154 __sti /* sti only takes effect after the next instruction */
155 /* sysexit */
156 .byte 0xf, 0x35 /* TBD */
158 sysenter_tracesys:
159 CFI_RESTORE_STATE
160 SAVE_REST
161 CLEAR_RREGS
162 movq $-ENOSYS,RAX(%rsp) /* really needed? */
163 movq %rsp,%rdi /* &pt_regs -> arg1 */
164 call syscall_trace_enter
165 LOAD_ARGS ARGOFFSET /* reload args from stack in case ptrace changed it */
166 RESTORE_REST
167 movl %ebp, %ebp
168 /* no need to do an access_ok check here because rbp has been
169 32bit zero extended */
170 1: movl (%rbp),%r9d
171 .section __ex_table,"a"
172 .quad 1b,ia32_badarg
173 .previous
174 jmp sysenter_do_call
175 CFI_ENDPROC
177 /*
178 * 32bit SYSCALL instruction entry.
179 *
180 * Arguments:
181 * %eax System call number.
182 * %ebx Arg1
183 * %ecx return EIP
184 * %edx Arg3
185 * %esi Arg4
186 * %edi Arg5
187 * %ebp Arg2 [note: not saved in the stack frame, should not be touched]
188 * %esp user stack
189 * 0(%esp) Arg6
190 *
191 * Interrupts off.
192 *
193 * This is purely a fast path. For anything complicated we use the int 0x80
194 * path below. Set up a complete hardware stack frame to share code
195 * with the int 0x80 path.
196 */
197 ENTRY(ia32_cstar_target)
198 CFI_STARTPROC32 simple
199 CFI_DEF_CFA rsp,0
200 CFI_REGISTER rip,rcx
201 /*CFI_REGISTER rflags,r11*/
202 __swapgs
203 movl %esp,%r8d
204 CFI_REGISTER rsp,r8
205 movq %gs:pda_kernelstack,%rsp
206 XEN_UNBLOCK_EVENTS(%r11)
207 __sti
208 SAVE_ARGS 8,1,1
209 movl %eax,%eax /* zero extension */
210 movq %rax,ORIG_RAX-ARGOFFSET(%rsp)
211 movq %rcx,RIP-ARGOFFSET(%rsp)
212 CFI_REL_OFFSET rip,RIP-ARGOFFSET
213 movq %rbp,RCX-ARGOFFSET(%rsp) /* this lies slightly to ptrace */
214 movl %ebp,%ecx
215 movq $__USER32_CS,CS-ARGOFFSET(%rsp)
216 movq $__USER32_DS,SS-ARGOFFSET(%rsp)
217 movq %r11,EFLAGS-ARGOFFSET(%rsp)
218 /*CFI_REL_OFFSET rflags,EFLAGS-ARGOFFSET*/
219 movq %r8,RSP-ARGOFFSET(%rsp)
220 CFI_REL_OFFSET rsp,RSP-ARGOFFSET
221 /* no need to do an access_ok check here because r8 has been
222 32bit zero extended */
223 /* hardware stack frame is complete now */
224 1: movl (%r8),%r9d
225 .section __ex_table,"a"
226 .quad 1b,ia32_badarg
227 .previous
228 GET_THREAD_INFO(%r10)
229 orl $TS_COMPAT,threadinfo_status(%r10)
230 testl $(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SECCOMP),threadinfo_flags(%r10)
231 CFI_REMEMBER_STATE
232 jnz cstar_tracesys
233 cstar_do_call:
234 cmpl $IA32_NR_syscalls,%eax
235 jae ia32_badsys
236 IA32_ARG_FIXUP 1
237 call *ia32_sys_call_table(,%rax,8)
238 movq %rax,RAX-ARGOFFSET(%rsp)
239 GET_THREAD_INFO(%r10)
240 XEN_BLOCK_EVENTS(%r11)
241 __cli
242 testl $_TIF_ALLWORK_MASK,threadinfo_flags(%r10)
243 jnz int_ret_from_sys_call
244 andl $~TS_COMPAT,threadinfo_status(%r10)
245 RESTORE_ARGS 1,-ARG_SKIP,1,1,1
246 movl RIP-ARGOFFSET(%rsp),%ecx
247 CFI_REGISTER rip,rcx
248 movl EFLAGS-ARGOFFSET(%rsp),%r11d
249 /*CFI_REGISTER rflags,r11*/
250 movl RSP-ARGOFFSET(%rsp),%esp
251 CFI_RESTORE rsp
252 __swapgs
253 sysretl /* TBD */
255 cstar_tracesys:
256 CFI_RESTORE_STATE
257 SAVE_REST
258 CLEAR_RREGS
259 movq $-ENOSYS,RAX(%rsp) /* really needed? */
260 movq %rsp,%rdi /* &pt_regs -> arg1 */
261 call syscall_trace_enter
262 LOAD_ARGS ARGOFFSET /* reload args from stack in case ptrace changed it */
263 RESTORE_REST
264 movl RSP-ARGOFFSET(%rsp), %r8d
265 /* no need to do an access_ok check here because r8 has been
266 32bit zero extended */
267 1: movl (%r8),%r9d
268 .section __ex_table,"a"
269 .quad 1b,ia32_badarg
270 .previous
271 jmp cstar_do_call
273 ia32_badarg:
274 movq $-EFAULT,%rax
275 jmp ia32_sysret
276 CFI_ENDPROC
278 /*
279 * Emulated IA32 system calls via int 0x80.
280 *
281 * Arguments:
282 * %eax System call number.
283 * %ebx Arg1
284 * %ecx Arg2
285 * %edx Arg3
286 * %esi Arg4
287 * %edi Arg5
288 * %ebp Arg6 [note: not saved in the stack frame, should not be touched]
289 *
290 * Notes:
291 * Uses the same stack frame as the x86-64 version.
292 * All registers except %eax must be saved (but ptrace may violate that)
293 * Arguments are zero extended. For system calls that want sign extension and
294 * take long arguments a wrapper is needed. Most calls can just be called
295 * directly.
296 * Assumes it is only called from user space and entered with interrupts off.
297 */
299 ENTRY(ia32_syscall)
300 CFI_STARTPROC simple
301 CFI_DEF_CFA rsp,SS+8-RIP
302 /*CFI_REL_OFFSET ss,SS-RIP*/
303 CFI_REL_OFFSET rsp,RSP-RIP
304 /*CFI_REL_OFFSET rflags,EFLAGS-RIP*/
305 /*CFI_REL_OFFSET cs,CS-RIP*/
306 CFI_REL_OFFSET rip,RIP-RIP
307 __swapgs
308 XEN_UNBLOCK_EVENTS(%r11)
309 __sti
310 movq (%rsp),%rcx
311 movq 8(%rsp),%r11
312 addq $0x10,%rsp /* skip rcx and r11 */
313 movl %eax,%eax
314 pushq %rax
315 CFI_ADJUST_CFA_OFFSET 8
316 cld
317 /* 1: jmp 1b */
318 /* note the registers are not zero extended to the sf.
319 this could be a problem. */
320 SAVE_ARGS 0,0,1
321 GET_THREAD_INFO(%r10)
322 orl $TS_COMPAT,threadinfo_status(%r10)
323 testl $(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SECCOMP),threadinfo_flags(%r10)
324 jnz ia32_tracesys
325 ia32_do_syscall:
326 cmpl $(IA32_NR_syscalls),%eax
327 jae ia32_badsys
328 IA32_ARG_FIXUP
329 call *ia32_sys_call_table(,%rax,8) # xxx: rip relative
330 ia32_sysret:
331 movq %rax,RAX-ARGOFFSET(%rsp)
332 jmp int_ret_from_sys_call
334 ia32_tracesys:
335 SAVE_REST
336 movq $-ENOSYS,RAX(%rsp) /* really needed? */
337 movq %rsp,%rdi /* &pt_regs -> arg1 */
338 call syscall_trace_enter
339 LOAD_ARGS ARGOFFSET /* reload args from stack in case ptrace changed it */
340 RESTORE_REST
341 jmp ia32_do_syscall
343 ia32_badsys:
344 movq $0,ORIG_RAX-ARGOFFSET(%rsp)
345 movq $-ENOSYS,RAX-ARGOFFSET(%rsp)
346 jmp int_ret_from_sys_call
348 ni_syscall:
349 movq %rax,%rdi
350 jmp sys32_ni_syscall
352 quiet_ni_syscall:
353 movq $-ENOSYS,%rax
354 ret
355 CFI_ENDPROC
357 .macro PTREGSCALL label, func, arg
358 .globl \label
359 \label:
360 leaq \func(%rip),%rax
361 leaq -ARGOFFSET+8(%rsp),\arg /* 8 for return address */
362 jmp ia32_ptregs_common
363 .endm
365 CFI_STARTPROC32
367 PTREGSCALL stub32_rt_sigreturn, sys32_rt_sigreturn, %rdi
368 PTREGSCALL stub32_sigreturn, sys32_sigreturn, %rdi
369 PTREGSCALL stub32_sigaltstack, sys32_sigaltstack, %rdx
370 PTREGSCALL stub32_sigsuspend, sys32_sigsuspend, %rcx
371 PTREGSCALL stub32_execve, sys32_execve, %rcx
372 PTREGSCALL stub32_fork, sys_fork, %rdi
373 PTREGSCALL stub32_clone, sys32_clone, %rdx
374 PTREGSCALL stub32_vfork, sys_vfork, %rdi
375 PTREGSCALL stub32_iopl, sys_iopl, %rsi
376 PTREGSCALL stub32_rt_sigsuspend, sys_rt_sigsuspend, %rdx
378 ENTRY(ia32_ptregs_common)
379 popq %r11
380 CFI_ENDPROC
381 CFI_STARTPROC32 simple
382 CFI_DEF_CFA rsp,SS+8-ARGOFFSET
383 CFI_REL_OFFSET rax,RAX-ARGOFFSET
384 CFI_REL_OFFSET rcx,RCX-ARGOFFSET
385 CFI_REL_OFFSET rdx,RDX-ARGOFFSET
386 CFI_REL_OFFSET rsi,RSI-ARGOFFSET
387 CFI_REL_OFFSET rdi,RDI-ARGOFFSET
388 CFI_REL_OFFSET rip,RIP-ARGOFFSET
389 /* CFI_REL_OFFSET cs,CS-ARGOFFSET*/
390 /* CFI_REL_OFFSET rflags,EFLAGS-ARGOFFSET*/
391 CFI_REL_OFFSET rsp,RSP-ARGOFFSET
392 /* CFI_REL_OFFSET ss,SS-ARGOFFSET*/
393 SAVE_REST
394 call *%rax
395 RESTORE_REST
396 jmp ia32_sysret /* misbalances the return cache */
397 CFI_ENDPROC
399 .section .rodata,"a"
400 .align 8
401 .globl ia32_sys_call_table
402 ia32_sys_call_table:
403 .quad sys_restart_syscall
404 .quad sys_exit
405 .quad stub32_fork
406 .quad sys_read
407 .quad sys_write
408 .quad compat_sys_open /* 5 */
409 .quad sys_close
410 .quad sys32_waitpid
411 .quad sys_creat
412 .quad sys_link
413 .quad sys_unlink /* 10 */
414 .quad stub32_execve
415 .quad sys_chdir
416 .quad compat_sys_time
417 .quad sys_mknod
418 .quad sys_chmod /* 15 */
419 .quad sys_lchown16
420 .quad quiet_ni_syscall /* old break syscall holder */
421 .quad sys_stat
422 .quad sys32_lseek
423 .quad sys_getpid /* 20 */
424 .quad compat_sys_mount /* mount */
425 .quad sys_oldumount /* old_umount */
426 .quad sys_setuid16
427 .quad sys_getuid16
428 .quad compat_sys_stime /* stime */ /* 25 */
429 .quad sys32_ptrace /* ptrace */
430 .quad sys_alarm
431 .quad sys_fstat /* (old)fstat */
432 .quad sys_pause
433 .quad compat_sys_utime /* 30 */
434 .quad quiet_ni_syscall /* old stty syscall holder */
435 .quad quiet_ni_syscall /* old gtty syscall holder */
436 .quad sys_access
437 .quad sys_nice
438 .quad quiet_ni_syscall /* 35 */ /* old ftime syscall holder */
439 .quad sys_sync
440 .quad sys32_kill
441 .quad sys_rename
442 .quad sys_mkdir
443 .quad sys_rmdir /* 40 */
444 .quad sys_dup
445 .quad sys32_pipe
446 .quad compat_sys_times
447 .quad quiet_ni_syscall /* old prof syscall holder */
448 .quad sys_brk /* 45 */
449 .quad sys_setgid16
450 .quad sys_getgid16
451 .quad sys_signal
452 .quad sys_geteuid16
453 .quad sys_getegid16 /* 50 */
454 .quad sys_acct
455 .quad sys_umount /* new_umount */
456 .quad quiet_ni_syscall /* old lock syscall holder */
457 .quad compat_sys_ioctl
458 .quad compat_sys_fcntl64 /* 55 */
459 .quad quiet_ni_syscall /* old mpx syscall holder */
460 .quad sys_setpgid
461 .quad quiet_ni_syscall /* old ulimit syscall holder */
462 .quad sys32_olduname
463 .quad sys_umask /* 60 */
464 .quad sys_chroot
465 .quad sys32_ustat
466 .quad sys_dup2
467 .quad sys_getppid
468 .quad sys_getpgrp /* 65 */
469 .quad sys_setsid
470 .quad sys32_sigaction
471 .quad sys_sgetmask
472 .quad sys_ssetmask
473 .quad sys_setreuid16 /* 70 */
474 .quad sys_setregid16
475 .quad stub32_sigsuspend
476 .quad compat_sys_sigpending
477 .quad sys_sethostname
478 .quad compat_sys_setrlimit /* 75 */
479 .quad compat_sys_old_getrlimit /* old_getrlimit */
480 .quad compat_sys_getrusage
481 .quad sys32_gettimeofday
482 .quad sys32_settimeofday
483 .quad sys_getgroups16 /* 80 */
484 .quad sys_setgroups16
485 .quad sys32_old_select
486 .quad sys_symlink
487 .quad sys_lstat
488 .quad sys_readlink /* 85 */
489 #ifdef CONFIG_IA32_AOUT
490 .quad sys_uselib
491 #else
492 .quad quiet_ni_syscall
493 #endif
494 .quad sys_swapon
495 .quad sys_reboot
496 .quad compat_sys_old_readdir
497 .quad sys32_mmap /* 90 */
498 .quad sys_munmap
499 .quad sys_truncate
500 .quad sys_ftruncate
501 .quad sys_fchmod
502 .quad sys_fchown16 /* 95 */
503 .quad sys_getpriority
504 .quad sys_setpriority
505 .quad quiet_ni_syscall /* old profil syscall holder */
506 .quad compat_sys_statfs
507 .quad compat_sys_fstatfs /* 100 */
508 .quad sys_ioperm
509 .quad compat_sys_socketcall
510 .quad sys_syslog
511 .quad compat_sys_setitimer
512 .quad compat_sys_getitimer /* 105 */
513 .quad compat_sys_newstat
514 .quad compat_sys_newlstat
515 .quad compat_sys_newfstat
516 .quad sys32_uname
517 .quad stub32_iopl /* 110 */
518 .quad sys_vhangup
519 .quad quiet_ni_syscall /* old "idle" system call */
520 .quad sys32_vm86_warning /* vm86old */
521 .quad compat_sys_wait4
522 .quad sys_swapoff /* 115 */
523 .quad sys32_sysinfo
524 .quad sys32_ipc
525 .quad sys_fsync
526 .quad stub32_sigreturn
527 .quad stub32_clone /* 120 */
528 .quad sys_setdomainname
529 .quad sys_uname
530 .quad sys_modify_ldt
531 .quad sys32_adjtimex
532 .quad sys32_mprotect /* 125 */
533 .quad compat_sys_sigprocmask
534 .quad quiet_ni_syscall /* create_module */
535 .quad sys_init_module
536 .quad sys_delete_module
537 .quad quiet_ni_syscall /* 130 get_kernel_syms */
538 .quad sys_quotactl
539 .quad sys_getpgid
540 .quad sys_fchdir
541 .quad quiet_ni_syscall /* bdflush */
542 .quad sys_sysfs /* 135 */
543 .quad sys_personality
544 .quad quiet_ni_syscall /* for afs_syscall */
545 .quad sys_setfsuid16
546 .quad sys_setfsgid16
547 .quad sys_llseek /* 140 */
548 .quad compat_sys_getdents
549 .quad compat_sys_select
550 .quad sys_flock
551 .quad sys_msync
552 .quad compat_sys_readv /* 145 */
553 .quad compat_sys_writev
554 .quad sys_getsid
555 .quad sys_fdatasync
556 .quad sys32_sysctl /* sysctl */
557 .quad sys_mlock /* 150 */
558 .quad sys_munlock
559 .quad sys_mlockall
560 .quad sys_munlockall
561 .quad sys_sched_setparam
562 .quad sys_sched_getparam /* 155 */
563 .quad sys_sched_setscheduler
564 .quad sys_sched_getscheduler
565 .quad sys_sched_yield
566 .quad sys_sched_get_priority_max
567 .quad sys_sched_get_priority_min /* 160 */
568 .quad sys_sched_rr_get_interval
569 .quad compat_sys_nanosleep
570 .quad sys_mremap
571 .quad sys_setresuid16
572 .quad sys_getresuid16 /* 165 */
573 .quad sys32_vm86_warning /* vm86 */
574 .quad quiet_ni_syscall /* query_module */
575 .quad sys_poll
576 .quad compat_sys_nfsservctl
577 .quad sys_setresgid16 /* 170 */
578 .quad sys_getresgid16
579 .quad sys_prctl
580 .quad stub32_rt_sigreturn
581 .quad sys32_rt_sigaction
582 .quad sys32_rt_sigprocmask /* 175 */
583 .quad sys32_rt_sigpending
584 .quad compat_sys_rt_sigtimedwait
585 .quad sys32_rt_sigqueueinfo
586 .quad stub32_rt_sigsuspend
587 .quad sys32_pread /* 180 */
588 .quad sys32_pwrite
589 .quad sys_chown16
590 .quad sys_getcwd
591 .quad sys_capget
592 .quad sys_capset
593 .quad stub32_sigaltstack
594 .quad sys32_sendfile
595 .quad quiet_ni_syscall /* streams1 */
596 .quad quiet_ni_syscall /* streams2 */
597 .quad stub32_vfork /* 190 */
598 .quad compat_sys_getrlimit
599 .quad sys32_mmap2
600 .quad sys32_truncate64
601 .quad sys32_ftruncate64
602 .quad sys32_stat64 /* 195 */
603 .quad sys32_lstat64
604 .quad sys32_fstat64
605 .quad sys_lchown
606 .quad sys_getuid
607 .quad sys_getgid /* 200 */
608 .quad sys_geteuid
609 .quad sys_getegid
610 .quad sys_setreuid
611 .quad sys_setregid
612 .quad sys_getgroups /* 205 */
613 .quad sys_setgroups
614 .quad sys_fchown
615 .quad sys_setresuid
616 .quad sys_getresuid
617 .quad sys_setresgid /* 210 */
618 .quad sys_getresgid
619 .quad sys_chown
620 .quad sys_setuid
621 .quad sys_setgid
622 .quad sys_setfsuid /* 215 */
623 .quad sys_setfsgid
624 .quad sys_pivot_root
625 .quad sys_mincore
626 .quad sys_madvise
627 .quad compat_sys_getdents64 /* 220 getdents64 */
628 .quad compat_sys_fcntl64
629 .quad quiet_ni_syscall /* tux */
630 .quad quiet_ni_syscall /* security */
631 .quad sys_gettid
632 .quad sys_readahead /* 225 */
633 .quad sys_setxattr
634 .quad sys_lsetxattr
635 .quad sys_fsetxattr
636 .quad sys_getxattr
637 .quad sys_lgetxattr /* 230 */
638 .quad sys_fgetxattr
639 .quad sys_listxattr
640 .quad sys_llistxattr
641 .quad sys_flistxattr
642 .quad sys_removexattr /* 235 */
643 .quad sys_lremovexattr
644 .quad sys_fremovexattr
645 .quad sys_tkill
646 .quad sys_sendfile64
647 .quad compat_sys_futex /* 240 */
648 .quad compat_sys_sched_setaffinity
649 .quad compat_sys_sched_getaffinity
650 .quad sys32_set_thread_area
651 .quad sys32_get_thread_area
652 .quad compat_sys_io_setup /* 245 */
653 .quad sys_io_destroy
654 .quad compat_sys_io_getevents
655 .quad compat_sys_io_submit
656 .quad sys_io_cancel
657 .quad sys_fadvise64 /* 250 */
658 .quad quiet_ni_syscall /* free_huge_pages */
659 .quad sys_exit_group
660 .quad sys32_lookup_dcookie
661 .quad sys_epoll_create
662 .quad sys_epoll_ctl /* 255 */
663 .quad sys_epoll_wait
664 .quad sys_remap_file_pages
665 .quad sys_set_tid_address
666 .quad compat_sys_timer_create
667 .quad compat_sys_timer_settime /* 260 */
668 .quad compat_sys_timer_gettime
669 .quad sys_timer_getoverrun
670 .quad sys_timer_delete
671 .quad compat_sys_clock_settime
672 .quad compat_sys_clock_gettime /* 265 */
673 .quad compat_sys_clock_getres
674 .quad compat_sys_clock_nanosleep
675 .quad compat_sys_statfs64
676 .quad compat_sys_fstatfs64
677 .quad sys_tgkill /* 270 */
678 .quad compat_sys_utimes
679 .quad sys32_fadvise64_64
680 .quad quiet_ni_syscall /* sys_vserver */
681 .quad sys_mbind
682 .quad compat_sys_get_mempolicy /* 275 */
683 .quad sys_set_mempolicy
684 .quad compat_sys_mq_open
685 .quad sys_mq_unlink
686 .quad compat_sys_mq_timedsend
687 .quad compat_sys_mq_timedreceive /* 280 */
688 .quad compat_sys_mq_notify
689 .quad compat_sys_mq_getsetattr
690 .quad compat_sys_kexec_load /* reserved for kexec */
691 .quad compat_sys_waitid
692 .quad quiet_ni_syscall /* 285: sys_altroot */
693 .quad sys_add_key
694 .quad sys_request_key
695 .quad sys_keyctl
696 .quad sys_ioprio_set
697 .quad sys_ioprio_get /* 290 */
698 .quad sys_inotify_init
699 .quad sys_inotify_add_watch
700 .quad sys_inotify_rm_watch
701 .quad sys_migrate_pages
702 .quad compat_sys_openat /* 295 */
703 .quad sys_mkdirat
704 .quad sys_mknodat
705 .quad sys_fchownat
706 .quad compat_sys_futimesat
707 .quad sys32_fstatat /* 300 */
708 .quad sys_unlinkat
709 .quad sys_renameat
710 .quad sys_linkat
711 .quad sys_symlinkat
712 .quad sys_readlinkat /* 305 */
713 .quad sys_fchmodat
714 .quad sys_faccessat
715 .quad sys_ni_syscall /* pselect6 for now */
716 .quad sys_ni_syscall /* ppoll for now */
717 .quad sys_unshare /* 310 */
718 ia32_syscall_end:
719 .rept IA32_NR_syscalls-(ia32_syscall_end-ia32_sys_call_table)/8
720 .quad ni_syscall
721 .endr