2 * linux/arch/arm/kernel/calls.S
4 * Copyright (C) 1995-2005 Russell King
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * This file is included thrice in entry-common.S
12 /* 0 */ CALL(sys_restart_syscall)
14 CALL(sys_fork_wrapper)
17 /* 5 */ CALL(sys_open)
19 CALL(sys_ni_syscall) /* was sys_waitpid */
22 /* 10 */ CALL(sys_unlink)
23 CALL(sys_execve_wrapper)
25 CALL(OBSOLETE(sys_time)) /* used by libc4 */
27 /* 15 */ CALL(sys_chmod)
29 CALL(sys_ni_syscall) /* was sys_break */
30 CALL(sys_ni_syscall) /* was sys_stat */
32 /* 20 */ CALL(sys_getpid)
34 CALL(OBSOLETE(sys_oldumount)) /* used by libc4 */
37 /* 25 */ CALL(OBSOLETE(sys_stime))
39 CALL(OBSOLETE(sys_alarm)) /* used by libc4 */
40 CALL(sys_ni_syscall) /* was sys_fstat */
42 /* 30 */ CALL(OBSOLETE(sys_utime)) /* used by libc4 */
43 CALL(sys_ni_syscall) /* was sys_stty */
44 CALL(sys_ni_syscall) /* was sys_getty */
47 /* 35 */ CALL(sys_ni_syscall) /* was sys_ftime */
52 /* 40 */ CALL(sys_rmdir)
56 CALL(sys_ni_syscall) /* was sys_prof */
57 /* 45 */ CALL(sys_brk)
60 CALL(sys_ni_syscall) /* was sys_signal */
62 /* 50 */ CALL(sys_getegid16)
65 CALL(sys_ni_syscall) /* was sys_lock */
67 /* 55 */ CALL(sys_fcntl)
68 CALL(sys_ni_syscall) /* was sys_mpx */
70 CALL(sys_ni_syscall) /* was sys_ulimit */
71 CALL(sys_ni_syscall) /* was sys_olduname */
72 /* 60 */ CALL(sys_umask)
77 /* 65 */ CALL(sys_getpgrp)
80 CALL(sys_ni_syscall) /* was sys_sgetmask */
81 CALL(sys_ni_syscall) /* was sys_ssetmask */
82 /* 70 */ CALL(sys_setreuid16)
84 CALL(sys_sigsuspend_wrapper)
87 /* 75 */ CALL(sys_setrlimit)
88 CALL(OBSOLETE(sys_old_getrlimit)) /* used by libc4 */
90 CALL(sys_gettimeofday)
91 CALL(sys_settimeofday)
92 /* 80 */ CALL(sys_getgroups16)
94 CALL(OBSOLETE(old_select)) /* used by libc4 */
96 CALL(sys_ni_syscall) /* was sys_lstat */
97 /* 85 */ CALL(sys_readlink)
101 CALL(OBSOLETE(old_readdir)) /* used by libc4 */
102 /* 90 */ CALL(OBSOLETE(old_mmap)) /* used by libc4 */
107 /* 95 */ CALL(sys_fchown16)
108 CALL(sys_getpriority)
109 CALL(sys_setpriority)
110 CALL(sys_ni_syscall) /* was sys_profil */
112 /* 100 */ CALL(sys_fstatfs)
113 CALL(sys_ni_syscall) /* sys_ioperm */
114 CALL(OBSOLETE(ABI(sys_socketcall, sys_oabi_socketcall)))
117 /* 105 */ CALL(sys_getitimer)
121 CALL(sys_ni_syscall) /* was sys_uname */
122 /* 110 */ CALL(sys_ni_syscall) /* was sys_iopl */
125 CALL(OBSOLETE(sys_syscall)) /* call a syscall */
127 /* 115 */ CALL(sys_swapoff)
129 CALL(OBSOLETE(ABI(sys_ipc, sys_oabi_ipc)))
131 CALL(sys_sigreturn_wrapper)
132 /* 120 */ CALL(sys_clone_wrapper)
133 CALL(sys_setdomainname)
135 CALL(sys_ni_syscall) /* modify_ldt */
137 /* 125 */ CALL(sys_mprotect)
138 CALL(sys_sigprocmask)
139 CALL(sys_ni_syscall) /* was sys_create_module */
140 CALL(sys_init_module)
141 CALL(sys_delete_module)
142 /* 130 */ CALL(sys_ni_syscall) /* was sys_get_kernel_syms */
147 /* 135 */ CALL(sys_sysfs)
148 CALL(sys_personality)
149 CALL(sys_ni_syscall) /* reserved for afs_syscall */
152 /* 140 */ CALL(sys_llseek)
157 /* 145 */ CALL(sys_readv)
162 /* 150 */ CALL(sys_mlock)
166 CALL(sys_sched_setparam)
167 /* 155 */ CALL(sys_sched_getparam)
168 CALL(sys_sched_setscheduler)
169 CALL(sys_sched_getscheduler)
170 CALL(sys_sched_yield)
171 CALL(sys_sched_get_priority_max)
172 /* 160 */ CALL(sys_sched_get_priority_min)
173 CALL(sys_sched_rr_get_interval)
176 CALL(sys_setresuid16)
177 /* 165 */ CALL(sys_getresuid16)
178 CALL(sys_ni_syscall) /* vm86 */
179 CALL(sys_ni_syscall) /* was sys_query_module */
182 /* 170 */ CALL(sys_setresgid16)
183 CALL(sys_getresgid16)
185 CALL(sys_rt_sigreturn_wrapper)
186 CALL(sys_rt_sigaction)
187 /* 175 */ CALL(sys_rt_sigprocmask)
188 CALL(sys_rt_sigpending)
189 CALL(sys_rt_sigtimedwait)
190 CALL(sys_rt_sigqueueinfo)
191 CALL(sys_rt_sigsuspend_wrapper)
192 /* 180 */ CALL(ABI(sys_pread64, sys_oabi_pread64))
193 CALL(ABI(sys_pwrite64, sys_oabi_pwrite64))
197 /* 185 */ CALL(sys_capset)
198 CALL(sys_sigaltstack_wrapper)
200 CALL(sys_ni_syscall) /* getpmsg */
201 CALL(sys_ni_syscall) /* putpmsg */
202 /* 190 */ CALL(sys_vfork_wrapper)
205 CALL(ABI(sys_truncate64, sys_oabi_truncate64))
206 CALL(ABI(sys_ftruncate64, sys_oabi_ftruncate64))
207 /* 195 */ CALL(ABI(sys_stat64, sys_oabi_stat64))
208 CALL(ABI(sys_lstat64, sys_oabi_lstat64))
209 CALL(ABI(sys_fstat64, sys_oabi_fstat64))
212 /* 200 */ CALL(sys_getgid)
217 /* 205 */ CALL(sys_getgroups)
222 /* 210 */ CALL(sys_setresgid)
227 /* 215 */ CALL(sys_setfsuid)
232 /* 220 */ CALL(sys_madvise)
233 CALL(ABI(sys_fcntl64, sys_oabi_fcntl64))
234 CALL(sys_ni_syscall) /* TUX */
237 /* 225 */ CALL(ABI(sys_readahead, sys_oabi_readahead))
242 /* 230 */ CALL(sys_lgetxattr)
247 /* 235 */ CALL(sys_removexattr)
248 CALL(sys_lremovexattr)
249 CALL(sys_fremovexattr)
252 /* 240 */ CALL(sys_futex)
253 CALL(sys_sched_setaffinity)
254 CALL(sys_sched_getaffinity)
257 /* 245 */ CALL(sys_io_getevents)
261 CALL(sys_lookup_dcookie)
262 /* 250 */ CALL(sys_epoll_create)
263 CALL(ABI(sys_epoll_ctl, sys_oabi_epoll_ctl))
264 CALL(ABI(sys_epoll_wait, sys_oabi_epoll_wait))
265 CALL(sys_remap_file_pages)
266 CALL(sys_ni_syscall) /* sys_set_thread_area */
267 /* 255 */ CALL(sys_ni_syscall) /* sys_get_thread_area */
268 CALL(sys_set_tid_address)
269 CALL(sys_timer_create)
270 CALL(sys_timer_settime)
271 CALL(sys_timer_gettime)
272 /* 260 */ CALL(sys_timer_getoverrun)
273 CALL(sys_timer_delete)
274 CALL(sys_clock_settime)
275 CALL(sys_clock_gettime)
276 CALL(sys_clock_getres)
277 /* 265 */ CALL(sys_clock_nanosleep)
278 CALL(sys_statfs64_wrapper)
279 CALL(sys_fstatfs64_wrapper)
282 /* 270 */ CALL(sys_arm_fadvise64_64)
283 CALL(sys_pciconfig_iobase)
284 CALL(sys_pciconfig_read)
285 CALL(sys_pciconfig_write)
287 /* 275 */ CALL(sys_mq_unlink)
288 CALL(sys_mq_timedsend)
289 CALL(sys_mq_timedreceive)
291 CALL(sys_mq_getsetattr)
292 /* 280 */ CALL(sys_waitid)
294 CALL(ABI(sys_bind, sys_oabi_bind))
295 CALL(ABI(sys_connect, sys_oabi_connect))
297 /* 285 */ CALL(sys_accept)
298 CALL(sys_getsockname)
299 CALL(sys_getpeername)
302 /* 290 */ CALL(ABI(sys_sendto, sys_oabi_sendto))
307 /* 295 */ CALL(sys_getsockopt)
308 CALL(ABI(sys_sendmsg, sys_oabi_sendmsg))
310 CALL(ABI(sys_semop, sys_oabi_semop))
312 /* 300 */ CALL(sys_semctl)
317 /* 305 */ CALL(sys_shmat)
322 /* 310 */ CALL(sys_request_key)
324 CALL(ABI(sys_semtimedop, sys_oabi_semtimedop))
325 /* vserver */ CALL(sys_ni_syscall)
327 /* 315 */ CALL(sys_ioprio_get)
328 CALL(sys_inotify_init)
329 CALL(sys_inotify_add_watch)
330 CALL(sys_inotify_rm_watch)
332 /* 320 */ CALL(sys_get_mempolicy)
333 CALL(sys_set_mempolicy)
337 /* 325 */ CALL(sys_fchownat)
339 CALL(ABI(sys_fstatat64, sys_oabi_fstatat64))
342 /* 330 */ CALL(sys_linkat)
347 /* 335 */ CALL(sys_ni_syscall) /* eventually pselect6 */
348 CALL(sys_ni_syscall) /* eventually ppoll */
350 CALL(sys_set_robust_list)
351 CALL(sys_get_robust_list)
352 /* 340 */ CALL(sys_splice)
353 CALL(sys_sync_file_range2)
357 /* 345 */ CALL(sys_getcpu)
358 CALL(sys_ni_syscall) /* eventually epoll_pwait */
362 /* 350 */ CALL(sys_timerfd_create)
365 CALL(sys_timerfd_settime)
366 CALL(sys_timerfd_gettime)
367 /* 355 */ CALL(sys_signalfd4)
369 CALL(sys_epoll_create1)
372 /* 360 */ CALL(sys_inotify_init1)
373 #ifndef syscalls_counted
374 .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
375 #define syscalls_counted
377 .rept syscalls_padding