2 * arch/xtensa/kernel/syscalls.h
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
8 * Copyright (C) 1995, 1996, 1997, 1998 by Ralf Baechle
9 * Copyright (C) 2001 - 2005 Tensilica Inc.
11 * Changes by Joe Taylor <joe@tensilica.com>
15 * This file is being included twice - once to build a list of all
16 * syscalls and once to build a table of how many arguments each syscall
17 * accepts. Syscalls that receive a pointer to the saved registers are
18 * marked as having zero arguments.
20 * The binary compatibility calls are in a separate list.
22 * Entry '0' used to be system_call. It's removed to disable indirect
23 * system calls for now so user tasks can't recurse. See mips'
24 * sys_syscall for a comparable example.
27 SYSCALL(0, 0) /* 00 */
29 SYSCALL(sys_ni_syscall
, 0)
32 SYSCALL(sys_open
, 3) /* 05 */
34 SYSCALL(sys_ni_syscall
, 3)
37 SYSCALL(sys_unlink
, 1) /* 10 */
38 SYSCALL(sys_execve
, 0)
40 SYSCALL(sys_ni_syscall
, 1)
42 SYSCALL(sys_chmod
, 2) /* 15 */
43 SYSCALL(sys_lchown
, 3)
44 SYSCALL(sys_ni_syscall
, 0)
45 SYSCALL(sys_newstat
, 2)
47 SYSCALL(sys_getpid
, 0) /* 20 */
49 SYSCALL(sys_ni_syscall
, 1)
50 SYSCALL(sys_setuid
, 1)
51 SYSCALL(sys_getuid
, 0)
52 SYSCALL(sys_ni_syscall
, 1) /* 25 */
53 SYSCALL(sys_ptrace
, 4)
54 SYSCALL(sys_ni_syscall
, 1)
55 SYSCALL(sys_newfstat
, 2)
56 SYSCALL(sys_ni_syscall
, 0)
57 SYSCALL(sys_utime
, 2) /* 30 */
58 SYSCALL(sys_ni_syscall
, 0)
59 SYSCALL(sys_ni_syscall
, 0)
60 SYSCALL(sys_access
, 2)
61 SYSCALL(sys_ni_syscall
, 1)
62 SYSCALL(sys_ni_syscall
, 0) /* 35 */
65 SYSCALL(sys_rename
, 2)
67 SYSCALL(sys_rmdir
, 1) /* 40 */
71 SYSCALL(sys_ni_syscall
, 0)
72 SYSCALL(sys_brk
, 1) /* 45 */
73 SYSCALL(sys_setgid
, 1)
74 SYSCALL(sys_getgid
, 0)
75 SYSCALL(sys_ni_syscall
, 0)
76 SYSCALL(sys_geteuid
, 0)
77 SYSCALL(sys_getegid
, 0) /* 50 */
79 SYSCALL(sys_umount
, 2)
80 SYSCALL(sys_ni_syscall
, 0)
82 SYSCALL(sys_fcntl
, 3) /* 55 */
83 SYSCALL(sys_ni_syscall
, 2)
84 SYSCALL(sys_setpgid
, 2)
85 SYSCALL(sys_ni_syscall
, 0)
86 SYSCALL(sys_ni_syscall
, 0)
87 SYSCALL(sys_umask
, 1) /* 60 */
88 SYSCALL(sys_chroot
, 1)
91 SYSCALL(sys_getppid
, 0)
92 SYSCALL(sys_ni_syscall
, 0) /* 65 */
93 SYSCALL(sys_setsid
, 0)
94 SYSCALL(sys_sigaction
, 3)
95 SYSCALL(sys_ni_syscall
, 0)
96 SYSCALL(sys_ni_syscall
, 1)
97 SYSCALL(sys_setreuid
, 2) /* 70 */
98 SYSCALL(sys_setregid
, 2)
99 SYSCALL(sys_sigsuspend
, 0)
100 SYSCALL(sys_ni_syscall
, 1)
101 SYSCALL(sys_sethostname
, 2)
102 SYSCALL(sys_setrlimit
, 2) /* 75 */
103 SYSCALL(sys_getrlimit
, 2)
104 SYSCALL(sys_getrusage
, 2)
105 SYSCALL(sys_gettimeofday
, 2)
106 SYSCALL(sys_settimeofday
, 2)
107 SYSCALL(sys_getgroups
, 2) /* 80 */
108 SYSCALL(sys_setgroups
, 2)
109 SYSCALL(sys_ni_syscall
, 0)
110 SYSCALL(sys_symlink
, 2)
111 SYSCALL(sys_newlstat
, 2)
112 SYSCALL(sys_readlink
, 3) /* 85 */
113 SYSCALL(sys_uselib
, 1)
114 SYSCALL(sys_swapon
, 2)
115 SYSCALL(sys_reboot
, 3)
116 SYSCALL(sys_ni_syscall
, 3)
117 SYSCALL(sys_ni_syscall
, 6) /* 90 */
118 SYSCALL(sys_munmap
, 2)
119 SYSCALL(sys_truncate
, 2)
120 SYSCALL(sys_ftruncate
, 2)
121 SYSCALL(sys_fchmod
, 2)
122 SYSCALL(sys_fchown
, 3) /* 95 */
123 SYSCALL(sys_getpriority
, 2)
124 SYSCALL(sys_setpriority
, 3)
125 SYSCALL(sys_ni_syscall
, 0)
126 SYSCALL(sys_statfs
, 2)
127 SYSCALL(sys_fstatfs
, 2) /* 100 */
128 SYSCALL(sys_ni_syscall
, 3)
129 SYSCALL(sys_ni_syscall
, 2)
130 SYSCALL(sys_syslog
, 3)
131 SYSCALL(sys_setitimer
, 3)
132 SYSCALL(sys_getitimer
, 2) /* 105 */
133 SYSCALL(sys_newstat
, 2)
134 SYSCALL(sys_newlstat
, 2)
135 SYSCALL(sys_newfstat
, 2)
136 SYSCALL(sys_uname
, 1)
137 SYSCALL(sys_ni_syscall
, 0) /* 110 */
138 SYSCALL(sys_vhangup
, 0)
139 SYSCALL(sys_ni_syscall
, 0)
140 SYSCALL(sys_ni_syscall
, 0)
141 SYSCALL(sys_wait4
, 4)
142 SYSCALL(sys_swapoff
, 1) /* 115 */
143 SYSCALL(sys_sysinfo
, 1)
144 SYSCALL(sys_ni_syscall
, 0)
145 SYSCALL(sys_fsync
, 1)
146 SYSCALL(sys_sigreturn
, 0)
147 SYSCALL(sys_clone
, 0) /* 120 */
148 SYSCALL(sys_setdomainname
, 2)
149 SYSCALL(sys_newuname
, 1)
150 SYSCALL(sys_ni_syscall
, 0)
151 SYSCALL(sys_adjtimex
, 1)
152 SYSCALL(sys_mprotect
, 3) /* 125 */
153 SYSCALL(sys_ni_syscall
, 3)
154 SYSCALL(sys_ni_syscall
, 2)
155 SYSCALL(sys_init_module
, 2)
156 SYSCALL(sys_delete_module
, 1)
157 SYSCALL(sys_ni_syscall
, 1) /* 130 */
158 SYSCALL(sys_quotactl
, 0)
159 SYSCALL(sys_getpgid
, 1)
160 SYSCALL(sys_fchdir
, 1)
161 SYSCALL(sys_bdflush
, 2)
162 SYSCALL(sys_sysfs
, 3) /* 135 */
163 SYSCALL(sys_personality
, 1)
164 SYSCALL(sys_ni_syscall
, 0)
165 SYSCALL(sys_setfsuid
, 1)
166 SYSCALL(sys_setfsgid
, 1)
167 SYSCALL(sys_llseek
, 5) /* 140 */
168 SYSCALL(sys_getdents
, 3)
169 SYSCALL(sys_select
, 5)
170 SYSCALL(sys_flock
, 2)
171 SYSCALL(sys_msync
, 3)
172 SYSCALL(sys_readv
, 3) /* 145 */
173 SYSCALL(sys_writev
, 3)
174 SYSCALL(sys_ni_syscall
, 3)
175 SYSCALL(sys_ni_syscall
, 3)
176 SYSCALL(sys_ni_syscall
, 4) /* handled in fast syscall handler. */
177 SYSCALL(sys_ni_syscall
, 0) /* 150 */
178 SYSCALL(sys_getsid
, 1)
179 SYSCALL(sys_fdatasync
, 1)
180 SYSCALL(sys_sysctl
, 1)
181 SYSCALL(sys_mlock
, 2)
182 SYSCALL(sys_munlock
, 2) /* 155 */
183 SYSCALL(sys_mlockall
, 1)
184 SYSCALL(sys_munlockall
, 0)
185 SYSCALL(sys_sched_setparam
,2)
186 SYSCALL(sys_sched_getparam
,2)
187 SYSCALL(sys_sched_setscheduler
,3) /* 160 */
188 SYSCALL(sys_sched_getscheduler
,1)
189 SYSCALL(sys_sched_yield
,0)
190 SYSCALL(sys_sched_get_priority_max
,1)
191 SYSCALL(sys_sched_get_priority_min
,1)
192 SYSCALL(sys_sched_rr_get_interval
,2) /* 165 */
193 SYSCALL(sys_nanosleep
,2)
194 SYSCALL(sys_mremap
,4)
195 SYSCALL(sys_accept
, 3)
197 SYSCALL(sys_connect
, 3) /* 170 */
198 SYSCALL(sys_getpeername
, 3)
199 SYSCALL(sys_getsockname
, 3)
200 SYSCALL(sys_getsockopt
, 5)
201 SYSCALL(sys_listen
, 2)
202 SYSCALL(sys_recv
, 4) /* 175 */
203 SYSCALL(sys_recvfrom
, 6)
204 SYSCALL(sys_recvmsg
, 3)
206 SYSCALL(sys_sendmsg
, 3)
207 SYSCALL(sys_sendto
, 6) /* 180 */
208 SYSCALL(sys_setsockopt
, 5)
209 SYSCALL(sys_shutdown
, 2)
210 SYSCALL(sys_socket
, 3)
211 SYSCALL(sys_socketpair
, 4)
212 SYSCALL(sys_setresuid
, 3) /* 185 */
213 SYSCALL(sys_getresuid
, 3)
214 SYSCALL(sys_ni_syscall
, 5)
216 SYSCALL(sys_nfsservctl
, 3)
217 SYSCALL(sys_setresgid
, 3) /* 190 */
218 SYSCALL(sys_getresgid
, 3)
219 SYSCALL(sys_prctl
, 5)
220 SYSCALL(sys_rt_sigreturn
, 0)
221 SYSCALL(sys_rt_sigaction
, 4)
222 SYSCALL(sys_rt_sigprocmask
, 4) /* 195 */
223 SYSCALL(sys_rt_sigpending
, 2)
224 SYSCALL(sys_rt_sigtimedwait
, 4)
225 SYSCALL(sys_rt_sigqueueinfo
, 3)
226 SYSCALL(sys_rt_sigsuspend
, 0)
227 SYSCALL(sys_pread64
, 5) /* 200 */
228 SYSCALL(sys_pwrite64
, 5)
229 SYSCALL(sys_chown
, 3)
230 SYSCALL(sys_getcwd
, 2)
231 SYSCALL(sys_capget
, 2)
232 SYSCALL(sys_capset
, 2) /* 205 */
233 SYSCALL(sys_sigaltstack
, 0)
234 SYSCALL(sys_sendfile
, 4)
235 SYSCALL(sys_ni_syscall
, 0)
236 SYSCALL(sys_ni_syscall
, 0)
237 SYSCALL(sys_mmap
, 6) /* 210 */
238 SYSCALL(sys_truncate64
, 2)
239 SYSCALL(sys_ftruncate64
, 2)
240 SYSCALL(sys_stat64
, 2)
241 SYSCALL(sys_lstat64
, 2)
242 SYSCALL(sys_fstat64
, 2) /* 215 */
243 SYSCALL(sys_pivot_root
, 2)
244 SYSCALL(sys_mincore
, 3)
245 SYSCALL(sys_madvise
, 3)
246 SYSCALL(sys_getdents64
, 3)
247 SYSCALL(sys_ni_syscall
, 0) /* 220 */