1 /* SPDX-License-Identifier: GPL-2.0
3 * arch/sh/kernel/syscalls_64.S
5 * Copyright (C) 2000, 2001 Paolo Alberelli
6 * Copyright (C) 2004 - 2007 Paul Mundt
7 * Copyright (C) 2003, 2004 Richard Curnow
10 #include <linux/sys.h>
16 * System calls jump table
20 .long sys_restart_syscall /* 0 - old "setup()" system call */
25 .long sys_open /* 5 */
30 .long sys_unlink /* 10 */
35 .long sys_chmod /* 15 */
37 .long sys_ni_syscall /* old break syscall holder */
40 .long sys_getpid /* 20 */
45 .long sys_stime /* 25 */
50 .long sys_utime /* 30 */
51 .long sys_ni_syscall /* old stty syscall holder */
52 .long sys_ni_syscall /* old gtty syscall holder */
55 .long sys_ni_syscall /* 35 */ /* old ftime syscall holder */
60 .long sys_rmdir /* 40 */
64 .long sys_ni_syscall /* old prof syscall holder */
65 .long sys_brk /* 45 */
70 .long sys_getegid16 /* 50 */
72 .long sys_umount /* recycled never used phys( */
73 .long sys_ni_syscall /* old lock syscall holder */
75 .long sys_fcntl /* 55 */
76 .long sys_ni_syscall /* old mpx syscall holder */
78 .long sys_ni_syscall /* old ulimit syscall holder */
79 .long sys_ni_syscall /* sys_olduname */
80 .long sys_umask /* 60 */
85 .long sys_getpgrp /* 65 */
90 .long sys_setreuid16 /* 70 */
95 .long sys_setrlimit /* 75 */
96 .long sys_old_getrlimit
98 .long sys_gettimeofday
99 .long sys_settimeofday
100 .long sys_getgroups16 /* 80 */
101 .long sys_setgroups16
102 .long sys_ni_syscall /* sys_oldselect */
105 .long sys_readlink /* 85 */
109 .long sys_old_readdir
110 .long old_mmap /* 90 */
115 .long sys_fchown16 /* 95 */
116 .long sys_getpriority
117 .long sys_setpriority
118 .long sys_ni_syscall /* old profil syscall holder */
120 .long sys_fstatfs /* 100 */
121 .long sys_ni_syscall /* ioperm */
122 .long sys_socketcall /* Obsolete implementation of socket syscall */
125 .long sys_getitimer /* 105 */
130 .long sys_ni_syscall /* 110 */ /* iopl */
132 .long sys_ni_syscall /* idle */
133 .long sys_ni_syscall /* vm86old */
135 .long sys_swapoff /* 115 */
137 .long sys_ipc /* Obsolete ipc syscall implementation */
140 .long sys_clone /* 120 */
141 .long sys_setdomainname
143 .long sys_cacheflush /* x86: sys_modify_ldt */
145 .long sys_mprotect /* 125 */
146 .long sys_sigprocmask
147 .long sys_ni_syscall /* old "create_module" */
148 .long sys_init_module
149 .long sys_delete_module
150 .long sys_ni_syscall /* 130: old "get_kernel_syms" */
155 .long sys_sysfs /* 135 */
156 .long sys_personality
157 .long sys_ni_syscall /* for afs_syscall */
160 .long sys_llseek /* 140 */
165 .long sys_readv /* 145 */
170 .long sys_mlock /* 150 */
174 .long sys_sched_setparam
175 .long sys_sched_getparam /* 155 */
176 .long sys_sched_setscheduler
177 .long sys_sched_getscheduler
178 .long sys_sched_yield
179 .long sys_sched_get_priority_max
180 .long sys_sched_get_priority_min /* 160 */
181 .long sys_sched_rr_get_interval
184 .long sys_setresuid16
185 .long sys_getresuid16 /* 165 */
186 .long sys_ni_syscall /* vm86 */
187 .long sys_ni_syscall /* old "query_module" */
189 .long sys_ni_syscall /* was nfsservctl */
190 .long sys_setresgid16 /* 170 */
191 .long sys_getresgid16
193 .long sys_rt_sigreturn
194 .long sys_rt_sigaction
195 .long sys_rt_sigprocmask /* 175 */
196 .long sys_rt_sigpending
197 .long sys_rt_sigtimedwait
198 .long sys_rt_sigqueueinfo
199 .long sys_rt_sigsuspend
200 .long sys_pread64 /* 180 */
205 .long sys_capset /* 185 */
206 .long sys_sigaltstack
208 .long sys_ni_syscall /* getpmsg */
209 .long sys_ni_syscall /* putpmsg */
210 .long sys_vfork /* 190 */
214 .long sys_ftruncate64
215 .long sys_stat64 /* 195 */
220 .long sys_getgid /* 200 */
225 .long sys_getgroups /* 205 */
230 .long sys_setresgid /* 210 */
235 .long sys_setfsuid /* 215 */
240 /* Broken-out socket family (maintain backwards compatibility in syscall
241 numbering with 2.4) */
242 .long sys_socket /* 220 */
247 .long sys_getsockname /* 225 */
248 .long sys_getpeername
252 .long sys_recv /* 230*/
257 .long sys_sendmsg /* 235 */
259 /* Broken-out IPC family (maintain backwards compatibility in syscall
260 numbering with 2.4) */
264 .long sys_msgsnd /* 240 */
269 .long sys_shmdt /* 245 */
272 /* Rest of syscalls listed in 2.4 i386 unistd.h */
275 .long sys_ni_syscall /* 250 reserved for TUX */
276 .long sys_ni_syscall /* Reserved for Security */
280 .long sys_lsetxattr /* 255 */
285 .long sys_listxattr /* 260 */
288 .long sys_removexattr
289 .long sys_lremovexattr
290 .long sys_fremovexattr /* 265 */
294 .long sys_sched_setaffinity
295 .long sys_sched_getaffinity /* 270 */
296 .long sys_ni_syscall /* reserved for set_thread_area */
297 .long sys_ni_syscall /* reserved for get_thread_area */
300 .long sys_io_getevents /* 275 */
305 .long sys_exit_group /* 280 */
306 /* Rest of new 2.6 syscalls */
307 .long sys_lookup_dcookie
308 .long sys_epoll_create
311 .long sys_remap_file_pages /* 285 */
312 .long sys_set_tid_address
313 .long sys_timer_create
314 .long sys_timer_settime
315 .long sys_timer_gettime
316 .long sys_timer_getoverrun /* 290 */
317 .long sys_timer_delete
318 .long sys_clock_settime
319 .long sys_clock_gettime
320 .long sys_clock_getres
321 .long sys_clock_nanosleep /* 295 */
326 .long sys_fadvise64_64 /* 300 */
327 .long sys_ni_syscall /* Reserved for vserver */
328 .long sys_ni_syscall /* Reserved for mbind */
329 .long sys_ni_syscall /* get_mempolicy */
330 .long sys_ni_syscall /* set_mempolicy */
331 .long sys_mq_open /* 305 */
333 .long sys_mq_timedsend
334 .long sys_mq_timedreceive
336 .long sys_mq_getsetattr /* 310 */
337 .long sys_ni_syscall /* Reserved for kexec */
340 .long sys_request_key
341 .long sys_keyctl /* 315 */
344 .long sys_inotify_init
345 .long sys_inotify_add_watch
346 .long sys_inotify_rm_watch /* 320 */
348 .long sys_migrate_pages
351 .long sys_mknodat /* 325 */
356 .long sys_renameat /* 330 */
361 .long sys_faccessat /* 335 */
365 .long sys_set_robust_list
366 .long sys_get_robust_list /* 340 */
368 .long sys_sync_file_range
371 .long sys_move_pages /* 345 */
373 .long sys_epoll_pwait
376 .long sys_timerfd_create /* 350 */
379 .long sys_timerfd_settime
380 .long sys_timerfd_gettime
381 .long sys_signalfd4 /* 355 */
383 .long sys_epoll_create1
386 .long sys_inotify_init1 /* 360 */
389 .long sys_rt_tgsigqueueinfo
390 .long sys_perf_event_open
391 .long sys_recvmmsg /* 365 */
393 .long sys_fanotify_init
394 .long sys_fanotify_mark
396 .long sys_name_to_handle_at /* 370 */
397 .long sys_open_by_handle_at
398 .long sys_clock_adjtime
401 .long sys_setns /* 375 */
402 .long sys_process_vm_readv
403 .long sys_process_vm_writev
405 .long sys_finit_module
406 .long sys_sched_getattr /* 380 */
407 .long sys_sched_setattr
411 .long sys_memfd_create /* 385 */
414 .long sys_userfaultfd
416 .long sys_mlock2 /* 390 */
417 .long sys_copy_file_range