2 * arch/sh/kernel/syscalls.S
4 * System call table for SuperH
6 * Copyright (C) 1999, 2000, 2002 Niibe Yutaka
7 * Copyright (C) 2003 Paul Mundt
9 * This file is subject to the terms and conditions of the GNU General Public
10 * License. See the file "COPYING" in the main directory of this archive
14 #include <linux/sys.h>
15 #include <linux/linkage.h>
17 #if !defined(CONFIG_NFSD) && !defined(CONFIG_NFSD_MODULE)
18 #define sys_nfsservctl sys_ni_syscall
21 #if !defined(CONFIG_MMU)
22 #define sys_madvise sys_ni_syscall
23 #define sys_readahead sys_ni_syscall
24 #define sys_mprotect sys_ni_syscall
25 #define sys_msync sys_ni_syscall
26 #define sys_mlock sys_ni_syscall
27 #define sys_munlock sys_ni_syscall
28 #define sys_mlockall sys_ni_syscall
29 #define sys_munlockall sys_ni_syscall
30 #define sys_mremap sys_ni_syscall
31 #define sys_mincore sys_ni_syscall
32 #define sys_remap_file_pages sys_ni_syscall
37 .long sys_restart_syscall /* 0 - old "setup()" system call*/
42 .long sys_open /* 5 */
47 .long sys_unlink /* 10 */
52 .long sys_chmod /* 15 */
54 .long sys_ni_syscall /* old break syscall holder */
57 .long sys_getpid /* 20 */
62 .long sys_stime /* 25 */
67 .long sys_utime /* 30 */
68 .long sys_ni_syscall /* old stty syscall holder */
69 .long sys_ni_syscall /* old gtty syscall holder */
72 .long sys_ni_syscall /* 35 */ /* old ftime syscall holder */
77 .long sys_rmdir /* 40 */
81 .long sys_ni_syscall /* old prof syscall holder */
82 .long sys_brk /* 45 */
87 .long sys_getegid16 /* 50 */
89 .long sys_umount /* recycled never used phys() */
90 .long sys_ni_syscall /* old lock syscall holder */
92 .long sys_fcntl /* 55 */
93 .long sys_ni_syscall /* old mpx syscall holder */
95 .long sys_ni_syscall /* old ulimit syscall holder */
96 .long sys_ni_syscall /* sys_olduname */
97 .long sys_umask /* 60 */
102 .long sys_getpgrp /* 65 */
107 .long sys_setreuid16 /* 70 */
111 .long sys_sethostname
112 .long sys_setrlimit /* 75 */
113 .long sys_old_getrlimit
115 .long sys_gettimeofday
116 .long sys_settimeofday
117 .long sys_getgroups16 /* 80 */
118 .long sys_setgroups16
119 .long sys_ni_syscall /* sys_oldselect */
122 .long sys_readlink /* 85 */
127 .long old_mmap /* 90 */
132 .long sys_fchown16 /* 95 */
133 .long sys_getpriority
134 .long sys_setpriority
135 .long sys_ni_syscall /* old profil syscall holder */
137 .long sys_fstatfs /* 100 */
138 .long sys_ni_syscall /* ioperm */
142 .long sys_getitimer /* 105 */
147 .long sys_ni_syscall /* 110 */ /* iopl */
149 .long sys_ni_syscall /* idle */
150 .long sys_ni_syscall /* vm86old */
152 .long sys_swapoff /* 115 */
157 .long sys_clone /* 120 */
158 .long sys_setdomainname
160 .long sys_ni_syscall /* sys_modify_ldt */
162 .long sys_mprotect /* 125 */
163 .long sys_sigprocmask
164 .long sys_ni_syscall /* old "create_module" */
165 .long sys_init_module
166 .long sys_delete_module
167 .long sys_ni_syscall /* 130: old "get_kernel_syms" */
172 .long sys_sysfs /* 135 */
173 .long sys_personality
174 .long sys_ni_syscall /* for afs_syscall */
177 .long sys_llseek /* 140 */
182 .long sys_readv /* 145 */
187 .long sys_mlock /* 150 */
191 .long sys_sched_setparam
192 .long sys_sched_getparam /* 155 */
193 .long sys_sched_setscheduler
194 .long sys_sched_getscheduler
195 .long sys_sched_yield
196 .long sys_sched_get_priority_max
197 .long sys_sched_get_priority_min /* 160 */
198 .long sys_sched_rr_get_interval
201 .long sys_setresuid16
202 .long sys_getresuid16 /* 165 */
203 .long sys_ni_syscall /* vm86 */
204 .long sys_ni_syscall /* old "query_module" */
207 .long sys_setresgid16 /* 170 */
208 .long sys_getresgid16
210 .long sys_rt_sigreturn
211 .long sys_rt_sigaction
212 .long sys_rt_sigprocmask /* 175 */
213 .long sys_rt_sigpending
214 .long sys_rt_sigtimedwait
215 .long sys_rt_sigqueueinfo
216 .long sys_rt_sigsuspend
217 .long sys_pread_wrapper /* 180 */
218 .long sys_pwrite_wrapper
222 .long sys_capset /* 185 */
223 .long sys_sigaltstack
225 .long sys_ni_syscall /* streams1 */
226 .long sys_ni_syscall /* streams2 */
227 .long sys_vfork /* 190 */
231 .long sys_ftruncate64
232 .long sys_stat64 /* 195 */
237 .long sys_getgid /* 200 */
242 .long sys_getgroups /* 205 */
247 .long sys_setresgid /* 210 */
252 .long sys_setfsuid /* 215 */
257 .long sys_getdents64 /* 220 */
259 .long sys_ni_syscall /* reserved for TUX */
260 .long sys_ni_syscall /* Reserved for Security */
262 .long sys_readahead /* 225 */
267 .long sys_lgetxattr /* 230 */
272 .long sys_removexattr /* 235 */
273 .long sys_lremovexattr
274 .long sys_fremovexattr
277 .long sys_futex /* 240 */
278 .long sys_sched_setaffinity
279 .long sys_sched_getaffinity
282 .long sys_io_setup /* 245 */
284 .long sys_io_getevents
287 .long sys_fadvise64 /* 250 */
290 .long sys_lookup_dcookie
291 .long sys_epoll_create
292 .long sys_epoll_ctl /* 255 */
294 .long sys_remap_file_pages
295 .long sys_set_tid_address
296 .long sys_timer_create
297 .long sys_timer_settime /* 260 */
298 .long sys_timer_gettime
299 .long sys_timer_getoverrun
300 .long sys_timer_delete
301 .long sys_clock_settime
302 .long sys_clock_gettime /* 265 */
303 .long sys_clock_getres
304 .long sys_clock_nanosleep
307 .long sys_tgkill /* 270 */
309 .long sys_fadvise64_64_wrapper
310 .long sys_ni_syscall /* Reserved for vserver */
311 .long sys_ni_syscall /* Reserved for mbind */
312 .long sys_ni_syscall /* 275 - get_mempolicy */
313 .long sys_ni_syscall /* set_mempolicy */
316 .long sys_mq_timedsend
317 .long sys_mq_timedreceive /* 280 */
319 .long sys_mq_getsetattr
322 .long sys_ni_syscall /* 285 */
324 .long sys_request_key
327 .long sys_ioprio_get /* 290 */
328 .long sys_inotify_init
329 .long sys_inotify_add_watch
330 .long sys_inotify_rm_watch
331 .long sys_migrate_pages
332 .long sys_openat /* 295 */
337 .long sys_fstatat64 /* 300 */
342 .long sys_readlinkat /* 305 */
347 .long sys_unshare /* 310 */
348 .long sys_set_robust_list
349 .long sys_get_robust_list
351 .long sys_sync_file_range
352 .long sys_tee /* 315 */
356 .long sys_epoll_pwait