syscalltable.S 9.7 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9
/*
 *  Copyright (C) 2002, Greg Ungerer (gerg@snapgear.com)
 *
 *  Based on older entry.S files, the following copyrights apply:
 *
 *  Copyright (C) 1998  D. Jeff Dionne <jeff@lineo.ca>,
 *                      Kenneth Albanowski <kjahds@kjahds.com>,
 *  Copyright (C) 2000  Lineo Inc. (www.lineo.com) 
 *  Copyright (C) 1991, 1992  Linus Torvalds
10 11
 *
 *  Linux/m68k support by Hamish Macdonald
L
Linus Torvalds 已提交
12 13 14 15
 */

#include <linux/linkage.h>

16 17 18 19 20
#ifndef CONFIG_MMU
#define sys_mmap2		sys_mmap_pgoff
#endif

.section .rodata
L
Linus Torvalds 已提交
21 22
ALIGN
ENTRY(sys_call_table)
23
	.long sys_restart_syscall	/* 0 - old "setup()" system call, used for restarting */
L
Linus Torvalds 已提交
24
	.long sys_exit
25
	.long __sys_fork
L
Linus Torvalds 已提交
26 27
	.long sys_read
	.long sys_write
28
	.long sys_open			/* 5 */
L
Linus Torvalds 已提交
29 30 31 32
	.long sys_close
	.long sys_waitpid
	.long sys_creat
	.long sys_link
33
	.long sys_unlink		/* 10 */
L
Linus Torvalds 已提交
34 35 36 37
	.long sys_execve
	.long sys_chdir
	.long sys_time
	.long sys_mknod
38
	.long sys_chmod			/* 15 */
L
Linus Torvalds 已提交
39
	.long sys_chown16
40
	.long sys_ni_syscall		/* old break syscall holder */
L
Linus Torvalds 已提交
41 42
	.long sys_stat
	.long sys_lseek
43
	.long sys_getpid		/* 20 */
L
Linus Torvalds 已提交
44 45 46 47
	.long sys_mount
	.long sys_oldumount
	.long sys_setuid16
	.long sys_getuid16
48
	.long sys_stime			/* 25 */
L
Linus Torvalds 已提交
49 50 51 52
	.long sys_ptrace
	.long sys_alarm
	.long sys_fstat
	.long sys_pause
53 54 55
	.long sys_utime			/* 30 */
	.long sys_ni_syscall		/* old stty syscall holder */
	.long sys_ni_syscall		/* old gtty syscall holder */
L
Linus Torvalds 已提交
56 57
	.long sys_access
	.long sys_nice
58
	.long sys_ni_syscall		/* 35 - old ftime syscall holder */
L
Linus Torvalds 已提交
59 60 61 62
	.long sys_sync
	.long sys_kill
	.long sys_rename
	.long sys_mkdir
63
	.long sys_rmdir			/* 40 */
L
Linus Torvalds 已提交
64 65 66
	.long sys_dup
	.long sys_pipe
	.long sys_times
67 68
	.long sys_ni_syscall		/* old prof syscall holder */
	.long sys_brk			/* 45 */
L
Linus Torvalds 已提交
69 70 71 72
	.long sys_setgid16
	.long sys_getgid16
	.long sys_signal
	.long sys_geteuid16
73
	.long sys_getegid16		/* 50 */
L
Linus Torvalds 已提交
74
	.long sys_acct
75 76
	.long sys_umount		/* recycled never used phys() */
	.long sys_ni_syscall		/* old lock syscall holder */
L
Linus Torvalds 已提交
77
	.long sys_ioctl
78 79
	.long sys_fcntl			/* 55 */
	.long sys_ni_syscall		/* old mpx syscall holder */
L
Linus Torvalds 已提交
80
	.long sys_setpgid
81
	.long sys_ni_syscall		/* old ulimit syscall holder */
L
Linus Torvalds 已提交
82
	.long sys_ni_syscall
83
	.long sys_umask			/* 60 */
L
Linus Torvalds 已提交
84 85 86 87
	.long sys_chroot
	.long sys_ustat
	.long sys_dup2
	.long sys_getppid
88
	.long sys_getpgrp		/* 65 */
L
Linus Torvalds 已提交
89 90 91 92
	.long sys_setsid
	.long sys_sigaction
	.long sys_sgetmask
	.long sys_ssetmask
93
	.long sys_setreuid16		/* 70 */
L
Linus Torvalds 已提交
94 95 96 97
	.long sys_setregid16
	.long sys_sigsuspend
	.long sys_sigpending
	.long sys_sethostname
98
	.long sys_setrlimit		/* 75 */
L
Linus Torvalds 已提交
99 100 101 102
	.long sys_old_getrlimit
	.long sys_getrusage
	.long sys_gettimeofday
	.long sys_settimeofday
103
	.long sys_getgroups16		/* 80 */
L
Linus Torvalds 已提交
104
	.long sys_setgroups16
C
Christoph Hellwig 已提交
105
	.long sys_old_select
L
Linus Torvalds 已提交
106 107
	.long sys_symlink
	.long sys_lstat
108
	.long sys_readlink		/* 85 */
L
Linus Torvalds 已提交
109
	.long sys_uselib
110
	.long sys_swapon
L
Linus Torvalds 已提交
111
	.long sys_reboot
112
	.long sys_old_readdir
113
	.long sys_old_mmap		/* 90 */
L
Linus Torvalds 已提交
114 115 116 117
	.long sys_munmap
	.long sys_truncate
	.long sys_ftruncate
	.long sys_fchmod
118
	.long sys_fchown16		/* 95 */
L
Linus Torvalds 已提交
119 120
	.long sys_getpriority
	.long sys_setpriority
121
	.long sys_ni_syscall		/* old profil syscall holder */
L
Linus Torvalds 已提交
122
	.long sys_statfs
123 124
	.long sys_fstatfs		/* 100 */
	.long sys_ni_syscall		/* ioperm for i386 */
L
Linus Torvalds 已提交
125 126 127
	.long sys_socketcall
	.long sys_syslog
	.long sys_setitimer
128
	.long sys_getitimer		/* 105 */
L
Linus Torvalds 已提交
129 130 131 132
	.long sys_newstat
	.long sys_newlstat
	.long sys_newfstat
	.long sys_ni_syscall
133
	.long sys_ni_syscall		/* 110 - iopl for i386 */
L
Linus Torvalds 已提交
134
	.long sys_vhangup
135 136
	.long sys_ni_syscall		/* obsolete idle() syscall */
	.long sys_ni_syscall		/* vm86old for i386 */
L
Linus Torvalds 已提交
137
	.long sys_wait4
138
	.long sys_swapoff		/* 115 */
L
Linus Torvalds 已提交
139 140 141 142
	.long sys_sysinfo
	.long sys_ipc
	.long sys_fsync
	.long sys_sigreturn
143
	.long __sys_clone		/* 120 */
L
Linus Torvalds 已提交
144 145
	.long sys_setdomainname
	.long sys_newuname
146
	.long sys_cacheflush		/* modify_ldt for i386 */
L
Linus Torvalds 已提交
147
	.long sys_adjtimex
148
	.long sys_mprotect		/* 125 */
L
Linus Torvalds 已提交
149
	.long sys_sigprocmask
150
	.long sys_ni_syscall		/* old "create_module" */
L
Linus Torvalds 已提交
151 152
	.long sys_init_module
	.long sys_delete_module
153
	.long sys_ni_syscall		/* 130 - old "get_kernel_syms" */
L
Linus Torvalds 已提交
154 155 156 157
	.long sys_quotactl
	.long sys_getpgid
	.long sys_fchdir
	.long sys_bdflush
158
	.long sys_sysfs			/* 135 */
L
Linus Torvalds 已提交
159
	.long sys_personality
160
	.long sys_ni_syscall		/* for afs_syscall */
L
Linus Torvalds 已提交
161 162
	.long sys_setfsuid16
	.long sys_setfsgid16
163
	.long sys_llseek		/* 140 */
L
Linus Torvalds 已提交
164 165 166
	.long sys_getdents
	.long sys_select
	.long sys_flock
167 168
	.long sys_msync
	.long sys_readv			/* 145 */
L
Linus Torvalds 已提交
169 170 171 172
	.long sys_writev
	.long sys_getsid
	.long sys_fdatasync
	.long sys_sysctl
173 174 175 176
	.long sys_mlock			/* 150 */
	.long sys_munlock
	.long sys_mlockall
	.long sys_munlockall
L
Linus Torvalds 已提交
177
	.long sys_sched_setparam
178
	.long sys_sched_getparam	/* 155 */
L
Linus Torvalds 已提交
179 180 181 182 183 184 185
	.long sys_sched_setscheduler
	.long sys_sched_getscheduler
	.long sys_sched_yield
	.long sys_sched_get_priority_max
	.long sys_sched_get_priority_min  /* 160 */
	.long sys_sched_rr_get_interval
	.long sys_nanosleep
186
	.long sys_mremap
L
Linus Torvalds 已提交
187
	.long sys_setresuid16
188 189 190
	.long sys_getresuid16		/* 165 */
	.long sys_getpagesize
	.long sys_ni_syscall		/* old "query_module" */
L
Linus Torvalds 已提交
191
	.long sys_poll
192
	.long sys_ni_syscall		/* old nfsservctl */
193
	.long sys_setresgid16		/* 170 */
L
Linus Torvalds 已提交
194 195 196 197
	.long sys_getresgid16
	.long sys_prctl
	.long sys_rt_sigreturn
	.long sys_rt_sigaction
198
	.long sys_rt_sigprocmask	/* 175 */
L
Linus Torvalds 已提交
199 200 201 202
	.long sys_rt_sigpending
	.long sys_rt_sigtimedwait
	.long sys_rt_sigqueueinfo
	.long sys_rt_sigsuspend
203
	.long sys_pread64		/* 180 */
L
Linus Torvalds 已提交
204 205 206 207
	.long sys_pwrite64
	.long sys_lchown16
	.long sys_getcwd
	.long sys_capget
208
	.long sys_capset		/* 185 */
L
Linus Torvalds 已提交
209 210
	.long sys_sigaltstack
	.long sys_sendfile
211 212
	.long sys_ni_syscall		/* streams1 */
	.long sys_ni_syscall		/* streams2 */
213
	.long __sys_vfork		/* 190 */
L
Linus Torvalds 已提交
214
	.long sys_getrlimit
215
	.long sys_mmap2
L
Linus Torvalds 已提交
216 217
	.long sys_truncate64
	.long sys_ftruncate64
218
	.long sys_stat64		/* 195 */
L
Linus Torvalds 已提交
219 220 221 222
	.long sys_lstat64
	.long sys_fstat64
	.long sys_chown
	.long sys_getuid
223
	.long sys_getgid		/* 200 */
L
Linus Torvalds 已提交
224 225 226 227
	.long sys_geteuid
	.long sys_getegid
	.long sys_setreuid
	.long sys_setregid
228
	.long sys_getgroups		/* 205 */
L
Linus Torvalds 已提交
229 230 231 232
	.long sys_setgroups
	.long sys_fchown
	.long sys_setresuid
	.long sys_getresuid
233
	.long sys_setresgid		/* 210 */
L
Linus Torvalds 已提交
234 235 236 237
	.long sys_getresgid
	.long sys_lchown
	.long sys_setuid
	.long sys_setgid
238
	.long sys_setfsuid		/* 215 */
L
Linus Torvalds 已提交
239 240 241 242
	.long sys_setfsgid
	.long sys_pivot_root
	.long sys_ni_syscall
	.long sys_ni_syscall
243
	.long sys_getdents64		/* 220 */
L
Linus Torvalds 已提交
244 245 246 247
	.long sys_gettid
	.long sys_tkill
	.long sys_setxattr
	.long sys_lsetxattr
248
	.long sys_fsetxattr		/* 225 */
L
Linus Torvalds 已提交
249 250 251 252
	.long sys_getxattr
	.long sys_lgetxattr
	.long sys_fgetxattr
	.long sys_listxattr
253
	.long sys_llistxattr		/* 230 */
L
Linus Torvalds 已提交
254 255 256 257
	.long sys_flistxattr
	.long sys_removexattr
	.long sys_lremovexattr
	.long sys_fremovexattr
258
	.long sys_futex			/* 235 */
L
Linus Torvalds 已提交
259
	.long sys_sendfile64
260 261
	.long sys_mincore
	.long sys_madvise
L
Linus Torvalds 已提交
262
	.long sys_fcntl64
263
	.long sys_readahead		/* 240 */
L
Linus Torvalds 已提交
264 265 266 267
	.long sys_io_setup
	.long sys_io_destroy
	.long sys_io_getevents
	.long sys_io_submit
268
	.long sys_io_cancel		/* 245 */
L
Linus Torvalds 已提交
269 270 271 272
	.long sys_fadvise64
	.long sys_exit_group
	.long sys_lookup_dcookie
	.long sys_epoll_create
273
	.long sys_epoll_ctl		/* 250 */
L
Linus Torvalds 已提交
274
	.long sys_epoll_wait
275
	.long sys_remap_file_pages
L
Linus Torvalds 已提交
276 277
	.long sys_set_tid_address
	.long sys_timer_create
278
	.long sys_timer_settime		/* 255 */
L
Linus Torvalds 已提交
279 280 281 282
	.long sys_timer_gettime
	.long sys_timer_getoverrun
	.long sys_timer_delete
	.long sys_clock_settime
283
	.long sys_clock_gettime		/* 260 */
L
Linus Torvalds 已提交
284 285 286 287
	.long sys_clock_getres
	.long sys_clock_nanosleep
	.long sys_statfs64
	.long sys_fstatfs64
288
	.long sys_tgkill		/* 265 */
L
Linus Torvalds 已提交
289 290
	.long sys_utimes
	.long sys_fadvise64_64
291
	.long sys_mbind
L
Linus Torvalds 已提交
292
	.long sys_get_mempolicy
293
	.long sys_set_mempolicy		/* 270 */
L
Linus Torvalds 已提交
294 295 296 297
	.long sys_mq_open
	.long sys_mq_unlink
	.long sys_mq_timedsend
	.long sys_mq_timedreceive
298
	.long sys_mq_notify		/* 275 */
L
Linus Torvalds 已提交
299 300
	.long sys_mq_getsetattr
	.long sys_waitid
301
	.long sys_ni_syscall		/* for sys_vserver */
302
	.long sys_add_key
303
	.long sys_request_key		/* 280 */
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
	.long sys_keyctl
	.long sys_ioprio_set
	.long sys_ioprio_get
	.long sys_inotify_init
	.long sys_inotify_add_watch	/* 285 */
	.long sys_inotify_rm_watch
	.long sys_migrate_pages
	.long sys_openat
	.long sys_mkdirat
	.long sys_mknodat		/* 290 */
	.long sys_fchownat
	.long sys_futimesat
	.long sys_fstatat64
	.long sys_unlinkat
	.long sys_renameat		/* 295 */
	.long sys_linkat
	.long sys_symlinkat
	.long sys_readlinkat
	.long sys_fchmodat
	.long sys_faccessat		/* 300 */
324 325
	.long sys_pselect6
	.long sys_ppoll
326 327 328 329 330 331 332 333
	.long sys_unshare
	.long sys_set_robust_list
	.long sys_get_robust_list	/* 305 */
	.long sys_splice
	.long sys_sync_file_range
	.long sys_tee
	.long sys_vmsplice
	.long sys_move_pages		/* 310 */
334 335 336 337 338 339 340
	.long sys_sched_setaffinity
	.long sys_sched_getaffinity
	.long sys_kexec_load
	.long sys_getcpu
	.long sys_epoll_pwait		/* 315 */
	.long sys_utimensat
	.long sys_signalfd
341
	.long sys_timerfd_create
342 343
	.long sys_eventfd
	.long sys_fallocate		/* 320 */
344 345
	.long sys_timerfd_settime
	.long sys_timerfd_gettime
346 347 348 349 350 351
	.long sys_signalfd4
	.long sys_eventfd2
	.long sys_epoll_create1		/* 325 */
	.long sys_dup3
	.long sys_pipe2
	.long sys_inotify_init1
352 353
	.long sys_preadv
	.long sys_pwritev		/* 330 */
354
	.long sys_rt_tgsigqueueinfo
355
	.long sys_perf_event_open
356 357 358 359
	.long sys_get_thread_area
	.long sys_set_thread_area
	.long sys_atomic_cmpxchg_32	/* 335 */
	.long sys_atomic_barrier
360 361 362
	.long sys_fanotify_init
	.long sys_fanotify_mark
	.long sys_prlimit64
363 364 365 366
	.long sys_name_to_handle_at	/* 340 */
	.long sys_open_by_handle_at
	.long sys_clock_adjtime
	.long sys_syncfs
367
	.long sys_setns
368 369
	.long sys_process_vm_readv	/* 345 */
	.long sys_process_vm_writev
G
Geert Uytterhoeven 已提交
370
	.long sys_kcmp
G
Geert Uytterhoeven 已提交
371
	.long sys_finit_module
372 373
	.long sys_sched_setattr
	.long sys_sched_getattr		/* 350 */
M
Miklos Szeredi 已提交
374
	.long sys_renameat2
G
Geert Uytterhoeven 已提交
375
	.long sys_getrandom
G
Geert Uytterhoeven 已提交
376
	.long sys_memfd_create
G
Geert Uytterhoeven 已提交
377
	.long sys_bpf
G
Geert Uytterhoeven 已提交
378
	.long sys_execveat		/* 355 */
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395
	.long sys_socket
	.long sys_socketpair
	.long sys_bind
	.long sys_connect
	.long sys_listen		/* 360 */
	.long sys_accept4
	.long sys_getsockopt
	.long sys_setsockopt
	.long sys_getsockname
	.long sys_getpeername		/* 365 */
	.long sys_sendto
	.long sys_sendmsg
	.long sys_recvfrom
	.long sys_recvmsg
	.long sys_shutdown		/* 370 */
	.long sys_recvmmsg
	.long sys_sendmmsg
G
Geert Uytterhoeven 已提交
396
	.long sys_userfaultfd
G
Geert Uytterhoeven 已提交
397
	.long sys_membarrier
G
Geert Uytterhoeven 已提交
398
	.long sys_mlock2		/* 375 */
399
	.long sys_copy_file_range