2005-10-10 14:36:14 +02:00
|
|
|
/*
|
|
|
|
* This file contains the table of syscall-handling functions.
|
|
|
|
* Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
|
|
|
|
*
|
|
|
|
* Largely rewritten by Cort Dougan (cort@cs.nmt.edu)
|
|
|
|
* and Paul Mackerras.
|
|
|
|
*
|
|
|
|
* Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.com)
|
|
|
|
* PPC64 updates by Dave Engebretsen (engebret@us.ibm.com)
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version
|
|
|
|
* 2 of the License, or (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/config.h>
|
|
|
|
#include <asm/ppc_asm.h>
|
|
|
|
|
|
|
|
#ifdef CONFIG_PPC64
|
|
|
|
#define SYSCALL(func) .llong .sys_##func,.sys_##func
|
|
|
|
#define COMPAT_SYS(func) .llong .sys_##func,.compat_sys_##func
|
|
|
|
#define PPC_SYS(func) .llong .ppc_##func,.ppc_##func
|
|
|
|
#define OLDSYS(func) .llong .sys_ni_syscall,.sys_ni_syscall
|
2005-10-18 06:51:57 +02:00
|
|
|
#define SYS32ONLY(func) .llong .sys_ni_syscall,.compat_sys_##func
|
2005-10-10 14:36:14 +02:00
|
|
|
#define SYSX(f, f3264, f32) .llong .f,.f3264
|
|
|
|
#else
|
|
|
|
#define SYSCALL(func) .long sys_##func
|
|
|
|
#define COMPAT_SYS(func) .long sys_##func
|
|
|
|
#define PPC_SYS(func) .long ppc_##func
|
|
|
|
#define OLDSYS(func) .long sys_##func
|
|
|
|
#define SYS32ONLY(func) .long sys_##func
|
|
|
|
#define SYSX(f, f3264, f32) .long f32
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_PPC64
|
|
|
|
#define sys_sigpending sys_ni_syscall
|
|
|
|
#define sys_old_getrlimit sys_ni_syscall
|
|
|
|
#endif
|
|
|
|
|
|
|
|
_GLOBAL(sys_call_table)
|
|
|
|
SYSCALL(restart_syscall)
|
|
|
|
SYSCALL(exit)
|
|
|
|
PPC_SYS(fork)
|
|
|
|
SYSCALL(read)
|
|
|
|
SYSCALL(write)
|
|
|
|
COMPAT_SYS(open)
|
|
|
|
SYSCALL(close)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(waitpid)
|
|
|
|
COMPAT_SYS(creat)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(link)
|
|
|
|
SYSCALL(unlink)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(execve)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(chdir)
|
2006-01-06 14:49:49 +01:00
|
|
|
COMPAT_SYS(time)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(mknod)
|
|
|
|
SYSCALL(chmod)
|
|
|
|
SYSCALL(lchown)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
OLDSYS(stat)
|
|
|
|
SYSX(sys_lseek,ppc32_lseek,sys_lseek)
|
|
|
|
SYSCALL(getpid)
|
|
|
|
COMPAT_SYS(mount)
|
|
|
|
SYSX(sys_ni_syscall,sys_oldumount,sys_oldumount)
|
|
|
|
SYSCALL(setuid)
|
|
|
|
SYSCALL(getuid)
|
|
|
|
COMPAT_SYS(stime)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(ptrace)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(alarm)
|
|
|
|
OLDSYS(fstat)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(pause)
|
2005-10-10 14:36:14 +02:00
|
|
|
COMPAT_SYS(utime)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(access)
|
|
|
|
COMPAT_SYS(nice)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(sync)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(kill)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(rename)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(mkdir)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(rmdir)
|
|
|
|
SYSCALL(dup)
|
|
|
|
SYSCALL(pipe)
|
|
|
|
COMPAT_SYS(times)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(brk)
|
|
|
|
SYSCALL(setgid)
|
|
|
|
SYSCALL(getgid)
|
|
|
|
SYSCALL(signal)
|
|
|
|
SYSCALL(geteuid)
|
|
|
|
SYSCALL(getegid)
|
|
|
|
SYSCALL(acct)
|
|
|
|
SYSCALL(umount)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
COMPAT_SYS(ioctl)
|
|
|
|
COMPAT_SYS(fcntl)
|
|
|
|
SYSCALL(ni_syscall)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(setpgid)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(ni_syscall)
|
2005-10-17 12:10:13 +02:00
|
|
|
SYSX(sys_ni_syscall,sys_olduname, sys_olduname)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(umask)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(chroot)
|
|
|
|
SYSCALL(ustat)
|
|
|
|
SYSCALL(dup2)
|
|
|
|
SYSCALL(getppid)
|
|
|
|
SYSCALL(getpgrp)
|
|
|
|
SYSCALL(setsid)
|
|
|
|
SYS32ONLY(sigaction)
|
|
|
|
SYSCALL(sgetmask)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(ssetmask)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(setreuid)
|
|
|
|
SYSCALL(setregid)
|
[PATCH] syscall entry/exit revamp
This cleanup patch speeds up the null syscall path on ppc64 by about 3%,
and brings the ppc32 and ppc64 code slightly closer together.
The ppc64 code was checking current_thread_info()->flags twice in the
syscall exit path; once for TIF_SYSCALL_T_OR_A before disabling
interrupts, and then again for TIF_SIGPENDING|TIF_NEED_RESCHED etc after
disabling interrupts. Now we do the same as ppc32 -- check the flags
only once in the fast path, and re-enable interrupts if necessary in the
ptrace case.
The patch abolishes the 'syscall_noerror' member of struct thread_info
and replaces it with a TIF_NOERROR bit in the flags, which is handled in
the slow path. This shortens the syscall entry code, which no longer
needs to clear syscall_noerror.
The patch adds a TIF_SAVE_NVGPRS flag which causes the syscall exit slow
path to save the non-volatile GPRs into a signal frame. This removes the
need for the assembly wrappers around sys_sigsuspend(),
sys_rt_sigsuspend(), et al which existed solely to save those registers
in advance. It also means I don't have to add new wrappers for ppoll()
and pselect(), which is what I was supposed to be doing when I got
distracted into this...
Finally, it unifies the ppc64 and ppc32 methods of handling syscall exit
directly into a signal handler (as required by sigsuspend et al) by
introducing a TIF_RESTOREALL flag which causes _all_ the registers to be
reloaded from the pt_regs by taking the ret_from_exception path, instead
of the normal syscall exit path which stomps on the callee-saved GPRs.
It appears to pass an LTP test run on ppc64, and passes basic testing on
ppc32 too. Brief tests of ptrace functionality with strace and gdb also
appear OK. I wouldn't send it to Linus for 2.6.15 just yet though :)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2005-11-15 19:52:18 +01:00
|
|
|
SYS32ONLY(sigsuspend)
|
2005-10-10 14:36:14 +02:00
|
|
|
COMPAT_SYS(sigpending)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(sethostname)
|
2005-10-10 14:36:14 +02:00
|
|
|
COMPAT_SYS(setrlimit)
|
|
|
|
COMPAT_SYS(old_getrlimit)
|
|
|
|
COMPAT_SYS(getrusage)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(gettimeofday)
|
|
|
|
COMPAT_SYS(settimeofday)
|
|
|
|
COMPAT_SYS(getgroups)
|
|
|
|
COMPAT_SYS(setgroups)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSX(sys_ni_syscall,sys_ni_syscall,ppc_select)
|
|
|
|
SYSCALL(symlink)
|
|
|
|
OLDSYS(lstat)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(readlink)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(uselib)
|
|
|
|
SYSCALL(swapon)
|
|
|
|
SYSCALL(reboot)
|
|
|
|
SYSX(sys_ni_syscall,old32_readdir,old_readdir)
|
|
|
|
SYSCALL(mmap)
|
|
|
|
SYSCALL(munmap)
|
|
|
|
SYSCALL(truncate)
|
|
|
|
SYSCALL(ftruncate)
|
|
|
|
SYSCALL(fchmod)
|
|
|
|
SYSCALL(fchown)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(getpriority)
|
|
|
|
COMPAT_SYS(setpriority)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
COMPAT_SYS(statfs)
|
|
|
|
COMPAT_SYS(fstatfs)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
COMPAT_SYS(socketcall)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(syslog)
|
2005-10-10 14:36:14 +02:00
|
|
|
COMPAT_SYS(setitimer)
|
|
|
|
COMPAT_SYS(getitimer)
|
|
|
|
COMPAT_SYS(newstat)
|
|
|
|
COMPAT_SYS(newlstat)
|
|
|
|
COMPAT_SYS(newfstat)
|
2005-10-17 12:10:13 +02:00
|
|
|
SYSX(sys_ni_syscall,sys_uname,sys_uname)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(vhangup)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
COMPAT_SYS(wait4)
|
|
|
|
SYSCALL(swapoff)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(sysinfo)
|
|
|
|
COMPAT_SYS(ipc)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(fsync)
|
[PATCH] syscall entry/exit revamp
This cleanup patch speeds up the null syscall path on ppc64 by about 3%,
and brings the ppc32 and ppc64 code slightly closer together.
The ppc64 code was checking current_thread_info()->flags twice in the
syscall exit path; once for TIF_SYSCALL_T_OR_A before disabling
interrupts, and then again for TIF_SIGPENDING|TIF_NEED_RESCHED etc after
disabling interrupts. Now we do the same as ppc32 -- check the flags
only once in the fast path, and re-enable interrupts if necessary in the
ptrace case.
The patch abolishes the 'syscall_noerror' member of struct thread_info
and replaces it with a TIF_NOERROR bit in the flags, which is handled in
the slow path. This shortens the syscall entry code, which no longer
needs to clear syscall_noerror.
The patch adds a TIF_SAVE_NVGPRS flag which causes the syscall exit slow
path to save the non-volatile GPRs into a signal frame. This removes the
need for the assembly wrappers around sys_sigsuspend(),
sys_rt_sigsuspend(), et al which existed solely to save those registers
in advance. It also means I don't have to add new wrappers for ppoll()
and pselect(), which is what I was supposed to be doing when I got
distracted into this...
Finally, it unifies the ppc64 and ppc32 methods of handling syscall exit
directly into a signal handler (as required by sigsuspend et al) by
introducing a TIF_RESTOREALL flag which causes _all_ the registers to be
reloaded from the pt_regs by taking the ret_from_exception path, instead
of the normal syscall exit path which stomps on the callee-saved GPRs.
It appears to pass an LTP test run on ppc64, and passes basic testing on
ppc32 too. Brief tests of ptrace functionality with strace and gdb also
appear OK. I wouldn't send it to Linus for 2.6.15 just yet though :)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2005-11-15 19:52:18 +01:00
|
|
|
SYS32ONLY(sigreturn)
|
2005-10-10 14:36:14 +02:00
|
|
|
PPC_SYS(clone)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(setdomainname)
|
2005-10-17 12:10:13 +02:00
|
|
|
PPC_SYS(newuname)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(ni_syscall)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(adjtimex)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(mprotect)
|
|
|
|
SYSX(sys_ni_syscall,compat_sys_sigprocmask,sys_sigprocmask)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(init_module)
|
|
|
|
SYSCALL(delete_module)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(quotactl)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(getpgid)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(fchdir)
|
|
|
|
SYSCALL(bdflush)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(sysfs)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSX(ppc64_personality,ppc64_personality,sys_personality)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(setfsuid)
|
|
|
|
SYSCALL(setfsgid)
|
|
|
|
SYSCALL(llseek)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(getdents)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSX(sys_select,ppc32_select,ppc_select)
|
|
|
|
SYSCALL(flock)
|
|
|
|
SYSCALL(msync)
|
|
|
|
COMPAT_SYS(readv)
|
|
|
|
COMPAT_SYS(writev)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(getsid)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(fdatasync)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(sysctl)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(mlock)
|
|
|
|
SYSCALL(munlock)
|
|
|
|
SYSCALL(mlockall)
|
|
|
|
SYSCALL(munlockall)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(sched_setparam)
|
|
|
|
COMPAT_SYS(sched_getparam)
|
|
|
|
COMPAT_SYS(sched_setscheduler)
|
|
|
|
COMPAT_SYS(sched_getscheduler)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(sched_yield)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(sched_get_priority_max)
|
|
|
|
COMPAT_SYS(sched_get_priority_min)
|
|
|
|
COMPAT_SYS(sched_rr_get_interval)
|
2005-10-10 14:36:14 +02:00
|
|
|
COMPAT_SYS(nanosleep)
|
|
|
|
SYSCALL(mremap)
|
|
|
|
SYSCALL(setresuid)
|
|
|
|
SYSCALL(getresuid)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(poll)
|
|
|
|
COMPAT_SYS(nfsservctl)
|
|
|
|
SYSCALL(setresgid)
|
|
|
|
SYSCALL(getresgid)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(prctl)
|
[PATCH] syscall entry/exit revamp
This cleanup patch speeds up the null syscall path on ppc64 by about 3%,
and brings the ppc32 and ppc64 code slightly closer together.
The ppc64 code was checking current_thread_info()->flags twice in the
syscall exit path; once for TIF_SYSCALL_T_OR_A before disabling
interrupts, and then again for TIF_SIGPENDING|TIF_NEED_RESCHED etc after
disabling interrupts. Now we do the same as ppc32 -- check the flags
only once in the fast path, and re-enable interrupts if necessary in the
ptrace case.
The patch abolishes the 'syscall_noerror' member of struct thread_info
and replaces it with a TIF_NOERROR bit in the flags, which is handled in
the slow path. This shortens the syscall entry code, which no longer
needs to clear syscall_noerror.
The patch adds a TIF_SAVE_NVGPRS flag which causes the syscall exit slow
path to save the non-volatile GPRs into a signal frame. This removes the
need for the assembly wrappers around sys_sigsuspend(),
sys_rt_sigsuspend(), et al which existed solely to save those registers
in advance. It also means I don't have to add new wrappers for ppoll()
and pselect(), which is what I was supposed to be doing when I got
distracted into this...
Finally, it unifies the ppc64 and ppc32 methods of handling syscall exit
directly into a signal handler (as required by sigsuspend et al) by
introducing a TIF_RESTOREALL flag which causes _all_ the registers to be
reloaded from the pt_regs by taking the ret_from_exception path, instead
of the normal syscall exit path which stomps on the callee-saved GPRs.
It appears to pass an LTP test run on ppc64, and passes basic testing on
ppc32 too. Brief tests of ptrace functionality with strace and gdb also
appear OK. I wouldn't send it to Linus for 2.6.15 just yet though :)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2005-11-15 19:52:18 +01:00
|
|
|
COMPAT_SYS(rt_sigreturn)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(rt_sigaction)
|
|
|
|
COMPAT_SYS(rt_sigprocmask)
|
|
|
|
COMPAT_SYS(rt_sigpending)
|
2005-10-10 14:36:14 +02:00
|
|
|
COMPAT_SYS(rt_sigtimedwait)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(rt_sigqueueinfo)
|
[PATCH] syscall entry/exit revamp
This cleanup patch speeds up the null syscall path on ppc64 by about 3%,
and brings the ppc32 and ppc64 code slightly closer together.
The ppc64 code was checking current_thread_info()->flags twice in the
syscall exit path; once for TIF_SYSCALL_T_OR_A before disabling
interrupts, and then again for TIF_SIGPENDING|TIF_NEED_RESCHED etc after
disabling interrupts. Now we do the same as ppc32 -- check the flags
only once in the fast path, and re-enable interrupts if necessary in the
ptrace case.
The patch abolishes the 'syscall_noerror' member of struct thread_info
and replaces it with a TIF_NOERROR bit in the flags, which is handled in
the slow path. This shortens the syscall entry code, which no longer
needs to clear syscall_noerror.
The patch adds a TIF_SAVE_NVGPRS flag which causes the syscall exit slow
path to save the non-volatile GPRs into a signal frame. This removes the
need for the assembly wrappers around sys_sigsuspend(),
sys_rt_sigsuspend(), et al which existed solely to save those registers
in advance. It also means I don't have to add new wrappers for ppoll()
and pselect(), which is what I was supposed to be doing when I got
distracted into this...
Finally, it unifies the ppc64 and ppc32 methods of handling syscall exit
directly into a signal handler (as required by sigsuspend et al) by
introducing a TIF_RESTOREALL flag which causes _all_ the registers to be
reloaded from the pt_regs by taking the ret_from_exception path, instead
of the normal syscall exit path which stomps on the callee-saved GPRs.
It appears to pass an LTP test run on ppc64, and passes basic testing on
ppc32 too. Brief tests of ptrace functionality with strace and gdb also
appear OK. I wouldn't send it to Linus for 2.6.15 just yet though :)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2005-11-15 19:52:18 +01:00
|
|
|
COMPAT_SYS(rt_sigsuspend)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(pread64)
|
|
|
|
COMPAT_SYS(pwrite64)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(chown)
|
|
|
|
SYSCALL(getcwd)
|
|
|
|
SYSCALL(capget)
|
|
|
|
SYSCALL(capset)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(sigaltstack)
|
|
|
|
SYSX(sys_sendfile64,compat_sys_sendfile,sys_sendfile)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
PPC_SYS(vfork)
|
|
|
|
COMPAT_SYS(getrlimit)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(readahead)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYS32ONLY(mmap2)
|
|
|
|
SYS32ONLY(truncate64)
|
|
|
|
SYS32ONLY(ftruncate64)
|
|
|
|
SYSX(sys_ni_syscall,sys_stat64,sys_stat64)
|
|
|
|
SYSX(sys_ni_syscall,sys_lstat64,sys_lstat64)
|
|
|
|
SYSX(sys_ni_syscall,sys_fstat64,sys_fstat64)
|
2006-01-10 00:36:14 +01:00
|
|
|
SYSCALL(pciconfig_read)
|
|
|
|
SYSCALL(pciconfig_write)
|
|
|
|
SYSCALL(pciconfig_iobase)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(getdents64)
|
|
|
|
SYSCALL(pivot_root)
|
|
|
|
SYSX(sys_ni_syscall,compat_sys_fcntl64,sys_fcntl64)
|
|
|
|
SYSCALL(madvise)
|
|
|
|
SYSCALL(mincore)
|
|
|
|
SYSCALL(gettid)
|
|
|
|
SYSCALL(tkill)
|
|
|
|
SYSCALL(setxattr)
|
|
|
|
SYSCALL(lsetxattr)
|
|
|
|
SYSCALL(fsetxattr)
|
|
|
|
SYSCALL(getxattr)
|
|
|
|
SYSCALL(lgetxattr)
|
|
|
|
SYSCALL(fgetxattr)
|
|
|
|
SYSCALL(listxattr)
|
|
|
|
SYSCALL(llistxattr)
|
|
|
|
SYSCALL(flistxattr)
|
|
|
|
SYSCALL(removexattr)
|
|
|
|
SYSCALL(lremovexattr)
|
|
|
|
SYSCALL(fremovexattr)
|
|
|
|
COMPAT_SYS(futex)
|
|
|
|
COMPAT_SYS(sched_setaffinity)
|
|
|
|
COMPAT_SYS(sched_getaffinity)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYS32ONLY(sendfile64)
|
|
|
|
COMPAT_SYS(io_setup)
|
|
|
|
SYSCALL(io_destroy)
|
|
|
|
COMPAT_SYS(io_getevents)
|
|
|
|
COMPAT_SYS(io_submit)
|
|
|
|
SYSCALL(io_cancel)
|
|
|
|
SYSCALL(set_tid_address)
|
|
|
|
SYSX(sys_fadvise64,ppc32_fadvise64,sys_fadvise64)
|
|
|
|
SYSCALL(exit_group)
|
|
|
|
SYSX(sys_lookup_dcookie,ppc32_lookup_dcookie,sys_lookup_dcookie)
|
|
|
|
SYSCALL(epoll_create)
|
|
|
|
SYSCALL(epoll_ctl)
|
|
|
|
SYSCALL(epoll_wait)
|
|
|
|
SYSCALL(remap_file_pages)
|
2006-01-10 05:52:08 +01:00
|
|
|
SYSX(sys_timer_create,compat_sys_timer_create,sys_timer_create)
|
2005-10-10 14:36:14 +02:00
|
|
|
COMPAT_SYS(timer_settime)
|
|
|
|
COMPAT_SYS(timer_gettime)
|
|
|
|
SYSCALL(timer_getoverrun)
|
|
|
|
SYSCALL(timer_delete)
|
|
|
|
COMPAT_SYS(clock_settime)
|
|
|
|
COMPAT_SYS(clock_gettime)
|
|
|
|
COMPAT_SYS(clock_getres)
|
|
|
|
COMPAT_SYS(clock_nanosleep)
|
2006-03-08 03:24:22 +01:00
|
|
|
SYSX(ppc64_swapcontext,ppc32_swapcontext,ppc_swapcontext)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(tgkill)
|
|
|
|
COMPAT_SYS(utimes)
|
2005-10-10 14:36:14 +02:00
|
|
|
COMPAT_SYS(statfs64)
|
|
|
|
COMPAT_SYS(fstatfs64)
|
2005-10-18 06:19:41 +02:00
|
|
|
SYSX(sys_ni_syscall, ppc_fadvise64_64, ppc_fadvise64_64)
|
2005-10-10 14:36:14 +02:00
|
|
|
PPC_SYS(rtas)
|
|
|
|
OLDSYS(debug_setcontext)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
COMPAT_SYS(mbind)
|
|
|
|
COMPAT_SYS(get_mempolicy)
|
|
|
|
COMPAT_SYS(set_mempolicy)
|
|
|
|
COMPAT_SYS(mq_open)
|
|
|
|
SYSCALL(mq_unlink)
|
|
|
|
COMPAT_SYS(mq_timedsend)
|
|
|
|
COMPAT_SYS(mq_timedreceive)
|
|
|
|
COMPAT_SYS(mq_notify)
|
|
|
|
COMPAT_SYS(mq_getsetattr)
|
|
|
|
COMPAT_SYS(kexec_load)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(add_key)
|
|
|
|
COMPAT_SYS(request_key)
|
2005-10-10 14:36:14 +02:00
|
|
|
COMPAT_SYS(keyctl)
|
|
|
|
COMPAT_SYS(waitid)
|
2005-10-18 06:51:57 +02:00
|
|
|
COMPAT_SYS(ioprio_set)
|
|
|
|
COMPAT_SYS(ioprio_get)
|
2005-10-10 14:36:14 +02:00
|
|
|
SYSCALL(inotify_init)
|
|
|
|
SYSCALL(inotify_add_watch)
|
|
|
|
SYSCALL(inotify_rm_watch)
|
2005-11-15 21:53:48 +01:00
|
|
|
SYSCALL(spu_run)
|
|
|
|
SYSCALL(spu_create)
|
2006-01-19 02:44:01 +01:00
|
|
|
COMPAT_SYS(pselect6)
|
|
|
|
COMPAT_SYS(ppoll)
|
2006-02-07 21:59:11 +01:00
|
|
|
SYSCALL(unshare)
|
2006-04-02 19:44:36 +02:00
|
|
|
SYSCALL(splice)
|
2006-04-11 15:51:17 +02:00
|
|
|
SYSCALL(tee)
|
2006-04-18 15:24:16 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* please add new calls to arch/powerpc/platforms/cell/spu_callbacks.c
|
|
|
|
* as well when appropriate.
|
|
|
|
*/
|