| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* $Id: systbls.S,v 1.103 2002/02/08 03:57:14 davem Exp $ | 
|  | 2 | * systbls.S: System call entry point tables for OS compatibility. | 
|  | 3 | *            The native Linux system call table lives here also. | 
|  | 4 | * | 
|  | 5 | * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) | 
|  | 6 | * | 
|  | 7 | * Based upon preliminary work which is: | 
|  | 8 | * | 
|  | 9 | * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu) | 
|  | 10 | */ | 
|  | 11 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 |  | 
|  | 13 | .data | 
|  | 14 | .align 4 | 
|  | 15 |  | 
|  | 16 | /* First, the Linux native syscall table. */ | 
|  | 17 |  | 
|  | 18 | .globl sys_call_table | 
|  | 19 | sys_call_table: | 
|  | 20 | /*0*/	.long sys_restart_syscall, sys_exit, sys_fork, sys_read, sys_write | 
|  | 21 | /*5*/	.long sys_open, sys_close, sys_wait4, sys_creat, sys_link | 
|  | 22 | /*10*/  .long sys_unlink, sunos_execv, sys_chdir, sys_chown16, sys_mknod | 
|  | 23 | /*15*/	.long sys_chmod, sys_lchown16, sparc_brk, sys_nis_syscall, sys_lseek | 
|  | 24 | /*20*/	.long sys_getpid, sys_capget, sys_capset, sys_setuid16, sys_getuid16 | 
| David S. Miller | 8c45112 | 2006-05-03 13:55:46 -0700 | [diff] [blame] | 25 | /*25*/	.long sys_vmsplice, sys_ptrace, sys_alarm, sys_sigaltstack, sys_pause | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | /*30*/	.long sys_utime, sys_lchown, sys_fchown, sys_access, sys_nice | 
|  | 27 | /*35*/	.long sys_chown, sys_sync, sys_kill, sys_newstat, sys_sendfile | 
|  | 28 | /*40*/	.long sys_newlstat, sys_dup, sys_pipe, sys_times, sys_getuid | 
|  | 29 | /*45*/	.long sys_umount, sys_setgid16, sys_getgid16, sys_signal, sys_geteuid16 | 
|  | 30 | /*50*/	.long sys_getegid16, sys_acct, sys_nis_syscall, sys_getgid, sys_ioctl | 
|  | 31 | /*55*/	.long sys_reboot, sys_mmap2, sys_symlink, sys_readlink, sys_execve | 
|  | 32 | /*60*/	.long sys_umask, sys_chroot, sys_newfstat, sys_fstat64, sys_getpagesize | 
|  | 33 | /*65*/	.long sys_msync, sys_vfork, sys_pread64, sys_pwrite64, sys_geteuid | 
|  | 34 | /*70*/	.long sys_getegid, sys_mmap, sys_setreuid, sys_munmap, sys_mprotect | 
|  | 35 | /*75*/	.long sys_madvise, sys_vhangup, sys_truncate64, sys_mincore, sys_getgroups16 | 
|  | 36 | /*80*/	.long sys_setgroups16, sys_getpgrp, sys_setgroups, sys_setitimer, sys_ftruncate64 | 
|  | 37 | /*85*/	.long sys_swapon, sys_getitimer, sys_setuid, sys_sethostname, sys_setgid | 
|  | 38 | /*90*/	.long sys_dup2, sys_setfsuid, sys_fcntl, sys_select, sys_setfsgid | 
|  | 39 | /*95*/	.long sys_fsync, sys_setpriority, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall | 
|  | 40 | /*100*/	.long sys_getpriority, sys_rt_sigreturn, sys_rt_sigaction, sys_rt_sigprocmask, sys_rt_sigpending | 
|  | 41 | /*105*/	.long sys_rt_sigtimedwait, sys_rt_sigqueueinfo, sys_rt_sigsuspend, sys_setresuid, sys_getresuid | 
|  | 42 | /*110*/	.long sys_setresgid, sys_getresgid, sys_setregid, sys_nis_syscall, sys_nis_syscall | 
|  | 43 | /*115*/	.long sys_getgroups, sys_gettimeofday, sys_getrusage, sys_nis_syscall, sys_getcwd | 
|  | 44 | /*120*/	.long sys_readv, sys_writev, sys_settimeofday, sys_fchown16, sys_fchmod | 
|  | 45 | /*125*/	.long sys_nis_syscall, sys_setreuid16, sys_setregid16, sys_rename, sys_truncate | 
|  | 46 | /*130*/	.long sys_ftruncate, sys_flock, sys_lstat64, sys_nis_syscall, sys_nis_syscall | 
|  | 47 | /*135*/	.long sys_nis_syscall, sys_mkdir, sys_rmdir, sys_utimes, sys_stat64 | 
|  | 48 | /*140*/	.long sys_sendfile64, sys_nis_syscall, sys_futex, sys_gettid, sys_getrlimit | 
|  | 49 | /*145*/	.long sys_setrlimit, sys_pivot_root, sys_prctl, sys_pciconfig_read, sys_pciconfig_write | 
| David S. Miller | 40a085c | 2005-07-27 14:14:39 -0700 | [diff] [blame] | 50 | /*150*/	.long sys_nis_syscall, sys_inotify_init, sys_inotify_add_watch, sys_poll, sys_getdents64 | 
|  | 51 | /*155*/	.long sys_fcntl64, sys_inotify_rm_watch, sys_statfs, sys_fstatfs, sys_oldumount | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | /*160*/	.long sys_sched_setaffinity, sys_sched_getaffinity, sys_getdomainname, sys_setdomainname, sys_nis_syscall | 
|  | 53 | /*165*/	.long sys_quotactl, sys_set_tid_address, sys_mount, sys_ustat, sys_setxattr | 
|  | 54 | /*170*/	.long sys_lsetxattr, sys_fsetxattr, sys_getxattr, sys_lgetxattr, sys_getdents | 
|  | 55 | /*175*/	.long sys_setsid, sys_fchdir, sys_fgetxattr, sys_listxattr, sys_llistxattr | 
|  | 56 | /*180*/	.long sys_flistxattr, sys_removexattr, sys_lremovexattr, sys_sigpending, sys_ni_syscall | 
|  | 57 | /*185*/	.long sys_setpgid, sys_fremovexattr, sys_tkill, sys_exit_group, sys_newuname | 
|  | 58 | /*190*/	.long sys_init_module, sys_personality, sparc_remap_file_pages, sys_epoll_create, sys_epoll_ctl | 
| David S. Miller | 9126dfd | 2005-07-10 15:11:45 -0700 | [diff] [blame] | 59 | /*195*/	.long sys_epoll_wait, sys_ioprio_set, sys_getppid, sparc_sigaction, sys_sgetmask | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 60 | /*200*/	.long sys_ssetmask, sys_sigsuspend, sys_newlstat, sys_uselib, old_readdir | 
|  | 61 | /*205*/	.long sys_readahead, sys_socketcall, sys_syslog, sys_lookup_dcookie, sys_fadvise64 | 
|  | 62 | /*210*/	.long sys_fadvise64_64, sys_tgkill, sys_waitpid, sys_swapoff, sys_sysinfo | 
| David S. Miller | 9126dfd | 2005-07-10 15:11:45 -0700 | [diff] [blame] | 63 | /*215*/	.long sys_ipc, sys_sigreturn, sys_clone, sys_ioprio_get, sys_adjtimex | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 64 | /*220*/	.long sys_sigprocmask, sys_ni_syscall, sys_delete_module, sys_ni_syscall, sys_getpgid | 
|  | 65 | /*225*/	.long sys_bdflush, sys_sysfs, sys_nis_syscall, sys_setfsuid16, sys_setfsgid16 | 
| David S. Miller | 1339713 | 2006-03-31 02:04:15 -0800 | [diff] [blame] | 66 | /*230*/	.long sys_select, sys_time, sys_splice, sys_stime, sys_statfs64 | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | /* "We are the Knights of the Forest of Ni!!" */ | 
|  | 68 | /*235*/	.long sys_fstatfs64, sys_llseek, sys_mlock, sys_munlock, sys_mlockall | 
|  | 69 | /*240*/	.long sys_munlockall, sys_sched_setparam, sys_sched_getparam, sys_sched_setscheduler, sys_sched_getscheduler | 
|  | 70 | /*245*/	.long sys_sched_yield, sys_sched_get_priority_max, sys_sched_get_priority_min, sys_sched_rr_get_interval, sys_nanosleep | 
|  | 71 | /*250*/	.long sparc_mremap, sys_sysctl, sys_getsid, sys_fdatasync, sys_nfsservctl | 
| David S. Miller | 289eee6 | 2006-03-31 23:49:34 -0800 | [diff] [blame] | 72 | /*255*/	.long sys_sync_file_range, sys_clock_settime, sys_clock_gettime, sys_clock_getres, sys_clock_nanosleep | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 73 | /*260*/	.long sys_sched_getaffinity, sys_sched_setaffinity, sys_timer_settime, sys_timer_gettime, sys_timer_getoverrun | 
|  | 74 | /*265*/	.long sys_timer_delete, sys_timer_create, sys_nis_syscall, sys_io_setup, sys_io_destroy | 
|  | 75 | /*270*/	.long sys_io_submit, sys_io_cancel, sys_io_getevents, sys_mq_open, sys_mq_unlink | 
|  | 76 | /*275*/	.long sys_mq_timedsend, sys_mq_timedreceive, sys_mq_notify, sys_mq_getsetattr, sys_waitid | 
| David S. Miller | 5fdef39 | 2006-04-14 15:29:32 -0700 | [diff] [blame] | 77 | /*280*/	.long sys_tee, sys_add_key, sys_request_key, sys_keyctl, sys_openat | 
| David S. Miller | 40ad7a6 | 2006-02-12 23:30:11 -0800 | [diff] [blame] | 78 | /*285*/	.long sys_mkdirat, sys_mknodat, sys_fchownat, sys_futimesat, sys_fstatat64 | 
| David S. Miller | 2d7d5f0 | 2006-01-19 02:42:49 -0800 | [diff] [blame] | 79 | /*290*/	.long sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat | 
| David S. Miller | 1b9a428 | 2006-02-07 18:11:24 -0800 | [diff] [blame] | 80 | /*295*/	.long sys_fchmodat, sys_faccessat, sys_pselect6, sys_ppoll, sys_unshare | 
| David S. Miller | 59359ff | 2006-11-05 16:51:03 -0800 | [diff] [blame] | 81 | /*300*/	.long sys_set_robust_list, sys_get_robust_list, sys_migrate_pages | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 82 |  | 
|  | 83 | #ifdef CONFIG_SUNOS_EMUL | 
|  | 84 | /* Now the SunOS syscall table. */ | 
|  | 85 |  | 
|  | 86 | .align 4 | 
|  | 87 | .globl sunos_sys_table | 
|  | 88 | sunos_sys_table: | 
|  | 89 | /*0*/	.long sunos_indir, sys_exit, sys_fork | 
|  | 90 | .long sunos_read, sunos_write, sys_open | 
|  | 91 | .long sys_close, sunos_wait4, sys_creat | 
|  | 92 | .long sys_link, sys_unlink, sunos_execv | 
|  | 93 | .long sys_chdir, sunos_nosys, sys_mknod | 
|  | 94 | .long sys_chmod, sys_lchown16, sunos_brk | 
|  | 95 | .long sunos_nosys, sys_lseek, sunos_getpid | 
|  | 96 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 97 | .long sunos_getuid, sunos_nosys, sys_ptrace | 
|  | 98 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 99 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 100 | .long sys_access, sunos_nosys, sunos_nosys | 
|  | 101 | .long sys_sync, sys_kill, sys_newstat | 
|  | 102 | .long sunos_nosys, sys_newlstat, sys_dup | 
|  | 103 | .long sys_pipe, sunos_nosys, sunos_nosys | 
|  | 104 | .long sunos_nosys, sunos_nosys, sunos_getgid | 
|  | 105 | .long sunos_nosys, sunos_nosys | 
|  | 106 | /*50*/	.long sunos_nosys, sys_acct, sunos_nosys | 
|  | 107 | .long sunos_mctl, sunos_ioctl, sys_reboot | 
|  | 108 | .long sunos_nosys, sys_symlink, sys_readlink | 
|  | 109 | .long sys_execve, sys_umask, sys_chroot | 
|  | 110 | .long sys_newfstat, sunos_nosys, sys_getpagesize | 
|  | 111 | .long sys_msync, sys_vfork, sunos_nosys | 
|  | 112 | .long sunos_nosys, sunos_sbrk, sunos_sstk | 
|  | 113 | .long sunos_mmap, sunos_vadvise, sys_munmap | 
|  | 114 | .long sys_mprotect, sys_madvise, sys_vhangup | 
|  | 115 | .long sunos_nosys, sys_mincore, sys_getgroups16 | 
|  | 116 | .long sys_setgroups16, sys_getpgrp, sunos_setpgrp | 
|  | 117 | .long sys_setitimer, sunos_nosys, sys_swapon | 
|  | 118 | .long sys_getitimer, sys_gethostname, sys_sethostname | 
|  | 119 | .long sunos_getdtablesize, sys_dup2, sunos_nop | 
|  | 120 | .long sys_fcntl, sunos_select, sunos_nop | 
|  | 121 | .long sys_fsync, sys_setpriority, sys_socket | 
|  | 122 | .long sys_connect, sunos_accept | 
|  | 123 | /*100*/	.long sys_getpriority, sunos_send, sunos_recv | 
|  | 124 | .long sunos_nosys, sys_bind, sunos_setsockopt | 
|  | 125 | .long sys_listen, sunos_nosys, sunos_sigaction | 
|  | 126 | .long sunos_sigblock, sunos_sigsetmask, sys_sigpause | 
|  | 127 | .long sys_sigstack, sys_recvmsg, sys_sendmsg | 
|  | 128 | .long sunos_nosys, sys_gettimeofday, sys_getrusage | 
|  | 129 | .long sunos_getsockopt, sunos_nosys, sunos_readv | 
|  | 130 | .long sunos_writev, sys_settimeofday, sys_fchown16 | 
|  | 131 | .long sys_fchmod, sys_recvfrom, sys_setreuid16 | 
|  | 132 | .long sys_setregid16, sys_rename, sys_truncate | 
|  | 133 | .long sys_ftruncate, sys_flock, sunos_nosys | 
|  | 134 | .long sys_sendto, sys_shutdown, sys_socketpair | 
|  | 135 | .long sys_mkdir, sys_rmdir, sys_utimes | 
|  | 136 | .long sys_sigreturn, sunos_nosys, sys_getpeername | 
|  | 137 | .long sunos_gethostid, sunos_nosys, sys_getrlimit | 
|  | 138 | .long sys_setrlimit, sunos_killpg, sunos_nosys | 
|  | 139 | .long sunos_nosys, sunos_nosys | 
|  | 140 | /*150*/	.long sys_getsockname, sunos_nosys, sunos_nosys | 
|  | 141 | .long sys_poll, sunos_nosys, sunos_nosys | 
|  | 142 | .long sunos_getdirentries, sys_statfs, sys_fstatfs | 
|  | 143 | .long sys_oldumount, sunos_nosys, sunos_nosys | 
|  | 144 | .long sys_getdomainname, sys_setdomainname | 
|  | 145 | .long sunos_nosys, sys_quotactl, sunos_nosys | 
|  | 146 | .long sunos_mount, sys_ustat, sunos_semsys | 
|  | 147 | .long sunos_msgsys, sunos_shmsys, sunos_audit | 
|  | 148 | .long sunos_nosys, sunos_getdents, sys_setsid | 
|  | 149 | .long sys_fchdir, sunos_nosys, sunos_nosys | 
|  | 150 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 151 | .long sunos_nosys, sys_sigpending, sunos_nosys | 
|  | 152 | .long sys_setpgid, sunos_pathconf, sunos_fpathconf | 
|  | 153 | .long sunos_sysconf, sunos_uname, sunos_nosys | 
|  | 154 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 155 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 156 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 157 | /*200*/	.long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 158 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 159 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 160 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 161 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 162 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 163 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 164 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 165 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 166 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 167 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 168 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 169 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 170 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 171 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 172 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 173 | .long sunos_nosys, sunos_nosys | 
|  | 174 | /*250*/	.long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 175 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 176 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 177 | .long sunos_nosys | 
|  | 178 | /*260*/	.long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 179 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 180 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 181 | .long sunos_nosys | 
|  | 182 | /*270*/	.long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 183 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 184 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 185 | .long sunos_nosys | 
|  | 186 | /*280*/	.long sunos_nosys, sunos_nosys, sunos_nosys | 
| David S. Miller | 2d7d5f0 | 2006-01-19 02:42:49 -0800 | [diff] [blame] | 187 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 188 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 189 | .long sunos_nosys | 
| David S. Miller | 2d7d5f0 | 2006-01-19 02:42:49 -0800 | [diff] [blame] | 190 | /*290*/	.long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 191 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
|  | 192 | .long sunos_nosys, sunos_nosys, sunos_nosys | 
| David S. Miller | 59359ff | 2006-11-05 16:51:03 -0800 | [diff] [blame] | 193 | .long sunos_nosys | 
|  | 194 | /*300*/	.long sunos_nosys, sunos_nosys, sunos_nosys | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 195 |  | 
|  | 196 | #endif |