1 /* $Id: systbls.S,v 1.56 1999/07/31 00:06:17 davem Exp $
2 * systbls.S: System call entry point tables for OS compatibility.
3 * The native Linux system call table lives here also.
5 * Copyright (C) 1995, 1996 David S. Miller (davem@caip.rutgers.edu)
6 * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
8 * Based upon preliminary work which is:
10 * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
16 /* First, the 32-bit Linux native syscall table. */
18 .globl sys_call_table32
20 /*0*/ .word sys_nis_syscall, sparc_exit, sys_fork, sys_read, sys_write
21 /*5*/ .word sys_open, sys_close, sys32_wait4, sys_creat, sys_link
22 /*10*/ .word sys_unlink, sunos_execv, sys_chdir, sys32_chown, sys32_mknod
23 /*15*/ .word sys32_chmod, sys32_lchown, sparc_brk, sys_perfctr, sys32_lseek
24 /*20*/ .word sys_getpid, sys_capget, sys_capset, sys_setuid, sys_getuid
25 /*25*/ .word sys_time, sys_ptrace, sys_alarm, sys32_sigaltstack, sys32_pause
26 /*30*/ .word sys32_utime, sys_nis_syscall, sys_nis_syscall, sys_access, sys_nice
27 .word sys_nis_syscall, sys_sync, sys_kill, sys32_newstat, sys32_sendfile
28 /*40*/ .word sys32_newlstat, sys_dup, sys_pipe, sys32_times, sys_nis_syscall
29 .word sys_umount, sys_setgid, sys_getgid, sys_signal, sys_geteuid
30 /*50*/ .word sys_getegid, sys_acct, sys_nis_syscall, sys_nis_syscall, sys32_ioctl
31 .word sys_reboot, sys_nis_syscall, sys_symlink, sys_readlink, sys32_execve
32 /*60*/ .word sys_umask, sys_chroot, sys32_newfstat, sys_nis_syscall, sys_getpagesize
33 .word sys_msync, sys_vfork, sys32_pread, sys32_pwrite, sys_nis_syscall
34 /*70*/ .word sys_nis_syscall, sys32_mmap, sys_nis_syscall, sys_munmap, sys_mprotect
35 .word sys_nis_syscall, sys_vhangup, sys_nis_syscall, sys_nis_syscall, sys32_getgroups
36 /*80*/ .word sys32_setgroups, sys_getpgrp, sys_nis_syscall, sys32_setitimer, sys_nis_syscall
37 .word sys_swapon, sys32_getitimer, sys_nis_syscall, sys_sethostname, sys_nis_syscall
38 /*90*/ .word sys_dup2, sys_nis_syscall, sys32_fcntl, sys32_select, sys_nis_syscall
39 .word sys_fsync, sys_setpriority, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall
40 /*100*/ .word sys_getpriority, sys32_rt_sigreturn, sys32_rt_sigaction, sys32_rt_sigprocmask, sys32_rt_sigpending
41 .word sys32_rt_sigtimedwait, sys32_rt_sigqueueinfo, sys32_rt_sigsuspend, sys_nis_syscall, sys_nis_syscall
42 /*110*/ .word sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall
43 .word sys_nis_syscall, sys32_gettimeofday, sys32_getrusage, sys_nis_syscall, sys_getcwd
44 /*120*/ .word sys32_readv, sys32_writev, sys32_settimeofday, sys_fchown, sys_fchmod
45 .word sys_nis_syscall, sys32_setreuid, sys32_setregid, sys_rename, sys_truncate
46 /*130*/ .word sys_ftruncate, sys_flock, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall
47 .word sys_nis_syscall, sys_mkdir, sys_rmdir, sys32_utimes, sys_nis_syscall
48 /*140*/ .word sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys32_getrlimit
49 .word sys32_setrlimit, sys_nis_syscall, sys32_prctl, sys32_pciconfig_read, sys32_pciconfig_write
50 /*150*/ .word sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys_poll, sys_nis_syscall
51 .word sys_nis_syscall, sys_nis_syscall, sys32_statfs, sys32_fstatfs, sys_oldumount
52 /*160*/ .word sys_nis_syscall, sys_nis_syscall, sys_getdomainname, sys_setdomainname, sys_nis_syscall
53 .word sys32_quotactl, sys_nis_syscall, sys32_mount, sys_ustat, sys_nis_syscall
54 /*170*/ .word sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys32_getdents
55 .word sys_setsid, sys_fchdir, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall
56 /*180*/ .word sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys32_sigpending, sys32_query_module
57 .word sys_setpgid, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys32_newuname
58 /*190*/ .word sys32_init_module, sys32_personality, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall
59 .word sys_nis_syscall, sys_nis_syscall, sys_getppid, sys32_sigaction, sys_sgetmask
60 /*200*/ .word sys_ssetmask, sys_sigsuspend, sys32_newlstat, sys_uselib, old32_readdir
61 .word sys_nis_syscall, sys32_socketcall, sys_syslog, sys_nis_syscall, sys_nis_syscall
62 /*210*/ .word sys_nis_syscall, sys_nis_syscall, sys_waitpid, sys_swapoff, sys32_sysinfo
63 .word sys32_ipc, sys32_sigreturn, sys_clone, sys_nis_syscall, sys32_adjtimex
64 /*220*/ .word sys32_sigprocmask, sys32_create_module, sys32_delete_module, sys32_get_kernel_syms, sys_getpgid
65 .word sys32_bdflush, sys32_sysfs, sys_nis_syscall, sys_setfsuid, sys_setfsgid
66 /*230*/ .word sys32_select, sys_time, sys_nis_syscall, sys_stime, sys_nis_syscall
67 .word sys_nis_syscall, sys_llseek, sys_mlock, sys_munlock, sys_mlockall
68 /*240*/ .word sys_munlockall, sys_sched_setparam, sys_sched_getparam, sys_sched_setscheduler, sys_sched_getscheduler
69 .word sys_sched_yield, sys_sched_get_priority_max, sys_sched_get_priority_min, sys32_sched_rr_get_interval, sys32_nanosleep
70 /*250*/ .word sys_mremap, sys_sysctl, sys_getsid, sys_fdatasync, sys32_nfsservctl
73 /* Now the 64-bit native Linux syscall table. */
76 .globl sys_call_table64, sys_call_table
79 /*0*/ .word sys_nis_syscall, sparc_exit, sys_fork, sys_read, sys_write
80 /*5*/ .word sys_open, sys_close, sys_wait4, sys_creat, sys_link
81 /*10*/ .word sys_unlink, sunos_execv, sys_chdir, sys_chown, sys_mknod
82 /*15*/ .word sys_chmod, sys_lchown, sparc_brk, sys_perfctr, sys_lseek
83 /*20*/ .word sys_getpid, sys_capget, sys_capset, sys_setuid, sys_getuid
84 /*25*/ .word sys_time, sys_ptrace, sys_alarm, sys_sigaltstack, sys_nis_syscall
85 /*30*/ .word sys_utime, sys_nis_syscall, sys_nis_syscall, sys_access, sys_nice
86 .word sys_nis_syscall, sys_sync, sys_kill, sys_newstat, sys_sendfile
87 /*40*/ .word sys_newlstat, sys_dup, sys_pipe, sys_times, sys_nis_syscall
88 .word sys_umount, sys_setgid, sys_getgid, sys_signal, sys_geteuid
89 /*50*/ .word sys_getegid, sys_acct, sys_memory_ordering, sys_nis_syscall, sys_ioctl
90 .word sys_reboot, sys_nis_syscall, sys_symlink, sys_readlink, sys_execve
91 /*60*/ .word sys_umask, sys_chroot, sys_newfstat, sys_nis_syscall, sys_getpagesize
92 .word sys_msync, sys_vfork, sys_pread, sys_pwrite, sys_nis_syscall
93 /*70*/ .word sys_nis_syscall, sys_mmap, sys_nis_syscall, sys_munmap, sys_mprotect
94 .word sys_nis_syscall, sys_vhangup, sys_nis_syscall, sys_nis_syscall, sys_getgroups
95 /*80*/ .word sys_setgroups, sys_getpgrp, sys_nis_syscall, sys_setitimer, sys_nis_syscall
96 .word sys_swapon, sys_getitimer, sys_nis_syscall, sys_sethostname, sys_nis_syscall
97 /*90*/ .word sys_dup2, sys_nis_syscall, sys_fcntl, sys_select, sys_nis_syscall
98 .word sys_fsync, sys_setpriority, sys_socket, sys_connect, sys_accept
99 /*100*/ .word sys_getpriority, sys_rt_sigreturn, sys_rt_sigaction, sys_rt_sigprocmask, sys_rt_sigpending
100 .word sys_rt_sigtimedwait, sys_rt_sigqueueinfo, sys_rt_sigsuspend, sys_nis_syscall, sys_nis_syscall
101 /*110*/ .word sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys_recvmsg, sys_sendmsg
102 .word sys_nis_syscall, sys_gettimeofday, sys_getrusage, sys_getsockopt, sys_getcwd
103 /*120*/ .word sys_readv, sys_writev, sys_settimeofday, sys_fchown, sys_fchmod
104 .word sys_recvfrom, sys_setreuid, sys_setregid, sys_rename, sys_truncate
105 /*130*/ .word sys_ftruncate, sys_flock, sys_nis_syscall, sys_sendto, sys_shutdown
106 .word sys_socketpair, sys_mkdir, sys_rmdir, sys_utimes, sys_nis_syscall
107 /*140*/ .word sys_nis_syscall, sys_getpeername, sys_nis_syscall, sys_nis_syscall, sys_getrlimit
108 .word sys_setrlimit, sys_nis_syscall, sys_prctl, sys_pciconfig_read, sys_pciconfig_write
109 /*150*/ .word sys_getsockname, sys_nis_syscall, sys_nis_syscall, sys_poll, sys_nis_syscall
110 .word sys_nis_syscall, sys_nis_syscall, sys_statfs, sys_fstatfs, sys_oldumount
111 /*160*/ .word sys_nis_syscall, sys_nis_syscall, sys_getdomainname, sys_setdomainname, sys_utrap_install
112 .word sys_quotactl, sys_nis_syscall, sys_mount, sys_ustat, sys_nis_syscall
113 /*170*/ .word sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys_getdents
114 .word sys_setsid, sys_fchdir, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall
115 /*180*/ .word sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys_query_module
116 .word sys_setpgid, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys_newuname
117 /*190*/ .word sys_init_module, sys_personality, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall
118 .word sys_nis_syscall, sys_nis_syscall, sys_getppid, sys_nis_syscall, sys_sgetmask
119 /*200*/ .word sys_ssetmask, sys_nis_syscall, sys_newlstat, sys_uselib, sys_nis_syscall
120 .word sys_nis_syscall, sys_socketcall, sys_syslog, sys_nis_syscall, sys_nis_syscall
121 /*210*/ .word sys_nis_syscall, sys_nis_syscall, sys_waitpid, sys_swapoff, sys_sysinfo
122 .word sys_ipc, sys_nis_syscall, sys_clone, sys_nis_syscall, sys_adjtimex
123 /*220*/ .word sys_nis_syscall, sys_create_module, sys_delete_module, sys_get_kernel_syms, sys_getpgid
124 .word sys_bdflush, sys_sysfs, sys_nis_syscall, sys_setfsuid, sys_setfsgid
125 /*230*/ .word sys_select, sys_time, sys_nis_syscall, sys_stime, sys_nis_syscall
126 .word sys_nis_syscall, sys_llseek, sys_mlock, sys_munlock, sys_mlockall
127 /*240*/ .word sys_munlockall, sys_sched_setparam, sys_sched_getparam, sys_sched_setscheduler, sys_sched_getscheduler
128 .word sys_sched_yield, sys_sched_get_priority_max, sys_sched_get_priority_min, sys_sched_rr_get_interval, sys_nanosleep
129 /*250*/ .word sys_mremap, sys_sysctl, sys_getsid, sys_fdatasync, sys_nfsservctl
132 /* Now the 32-bit SunOS syscall table. */
135 .globl sunos_sys_table
137 /*0*/ .word sunos_indir, sparc_exit, sys_fork
138 .word sunos_read, sunos_write, sunos_open
139 .word sys_close, sunos_wait4, sys_creat
140 .word sys_link, sys_unlink, sunos_execv
141 .word sys_chdir, sunos_nosys, sys32_mknod
142 .word sys32_chmod, sys32_lchown, sunos_brk
143 .word sunos_nosys, sys32_lseek, sunos_getpid
144 .word sunos_nosys, sunos_nosys, sunos_nosys
145 .word sunos_getuid, sunos_nosys, sys_ptrace
146 .word sunos_nosys, sunos_nosys, sunos_nosys
147 .word sunos_nosys, sunos_nosys, sunos_nosys
148 .word sys_access, sunos_nosys, sunos_nosys
149 .word sys_sync, sys_kill, sys32_newstat
150 .word sunos_nosys, sys32_newlstat, sys_dup
151 .word sys_pipe, sunos_nosys, sunos_nosys
152 .word sunos_nosys, sunos_nosys, sunos_getgid
153 .word sunos_nosys, sunos_nosys
154 /*50*/ .word sunos_nosys, sys_acct, sunos_nosys
155 .word sunos_mctl, sunos_ioctl, sys_reboot
156 .word sunos_nosys, sys_symlink, sys_readlink
157 .word sys32_execve, sys_umask, sys_chroot
158 .word sys32_newfstat, sunos_nosys, sys_getpagesize
159 .word sys_msync, sys_vfork, sunos_nosys
160 .word sunos_nosys, sunos_sbrk, sunos_sstk
161 .word sunos_mmap, sunos_vadvise, sys_munmap
162 .word sys_mprotect, sunos_madvise, sys_vhangup
163 .word sunos_nosys, sunos_mincore, sys32_getgroups
164 .word sys32_setgroups, sys_getpgrp, sunos_setpgrp
165 .word sys32_setitimer, sunos_nosys, sys_swapon
166 .word sys32_getitimer, sys_gethostname, sys_sethostname
167 .word sunos_getdtablesize, sys_dup2, sunos_nop
168 .word sys32_fcntl, sunos_select, sunos_nop
169 .word sys_fsync, sys_setpriority, sunos_socket
170 .word sys_connect, sunos_accept
171 /*100*/ .word sys_getpriority, sunos_send, sunos_recv
172 .word sunos_nosys, sys_bind, sunos_setsockopt
173 .word sys_listen, sunos_nosys, sunos_sigaction
174 .word sunos_sigblock, sunos_sigsetmask, sys_sigpause
175 .word sys32_sigstack, sys32_recvmsg, sys32_sendmsg
176 .word sunos_nosys, sys32_gettimeofday, sys32_getrusage
177 .word sunos_getsockopt, sunos_nosys, sunos_readv
178 .word sunos_writev, sys32_settimeofday, sys_fchown
179 .word sys_fchmod, sys32_recvfrom, sys32_setreuid
180 .word sys_setregid, sys_rename, sys_truncate
181 .word sys_ftruncate, sys_flock, sunos_nosys
182 .word sys32_sendto, sys_shutdown, sys_socketpair
183 .word sys_mkdir, sys_rmdir, sys32_utimes
184 .word sys32_sigreturn, sunos_nosys, sys_getpeername
185 .word sunos_gethostid, sunos_nosys, sys32_getrlimit
186 .word sys32_setrlimit, sunos_killpg, sunos_nosys
187 .word sunos_nosys, sunos_nosys
188 /*150*/ .word sys_getsockname, sunos_nosys, sunos_nosys
189 .word sys_poll, sunos_nosys, sunos_nosys
190 .word sunos_getdirentries, sys32_statfs, sys32_fstatfs
191 .word sys_oldumount, sunos_nosys, sunos_nosys
192 .word sys_getdomainname, sys_setdomainname
193 .word sunos_nosys, sys32_quotactl, sunos_nosys
194 .word sunos_mount, sys_ustat, sunos_semsys
195 .word sunos_nosys, sunos_shmsys, sunos_audit
196 .word sunos_nosys, sunos_getdents, sys_setsid
197 .word sys_fchdir, sunos_nosys, sunos_nosys
198 .word sunos_nosys, sunos_nosys, sunos_nosys
199 .word sunos_nosys, sys32_sigpending, sunos_nosys
200 .word sys_setpgid, sunos_pathconf, sunos_fpathconf
201 .word sunos_sysconf, sunos_uname, sunos_nosys
202 .word sunos_nosys, sunos_nosys, sunos_nosys
203 .word sunos_nosys, sunos_nosys, sunos_nosys
204 .word sunos_nosys, sunos_nosys, sunos_nosys
205 /*200*/ .word sunos_nosys, sunos_nosys, sunos_nosys
206 .word sunos_nosys, sunos_nosys, sunos_nosys
207 .word sunos_nosys, sunos_nosys, sunos_nosys
208 .word sunos_nosys, sunos_nosys, sunos_nosys
209 .word sunos_nosys, sunos_nosys, sunos_nosys
210 .word sunos_nosys, sunos_nosys, sunos_nosys
211 .word sunos_nosys, sunos_nosys, sunos_nosys
212 .word sunos_nosys, sunos_nosys, sunos_nosys
213 .word sunos_nosys, sunos_nosys, sunos_nosys
214 .word sunos_nosys, sunos_nosys, sunos_nosys
215 .word sunos_nosys, sunos_nosys, sunos_nosys
216 .word sunos_nosys, sunos_nosys, sunos_nosys
217 .word sunos_nosys, sunos_nosys, sunos_nosys
218 .word sunos_nosys, sunos_nosys, sunos_nosys
219 .word sunos_nosys, sunos_nosys, sunos_nosys
220 .word sunos_nosys, sunos_nosys, sunos_nosys
221 .word sunos_nosys, sunos_nosys
222 /*250*/ .word sunos_nosys, sunos_nosys, sunos_nosys
223 .word sunos_nosys, sunos_nosys, sys_aplib