diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-10-18 00:51:57 -0400 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-10-18 00:51:57 -0400 |
commit | b09a4913b15d2544f8918f05b9937cb4e99a2319 (patch) | |
tree | ed8e4764e6358f18e5641f6fba5815ea88ac1f5e /arch/powerpc/kernel/systbl.S | |
parent | 81e7009ea46c951860b8716ee427ff4f54dd26fc (diff) |
powerpc: change sys32_ to compat_sys_
This allows us to get rid of one type of entry in systbl.S.
In passing we remove the duplicate compat_sys_getdents and
compat_sys_utimes for which there are generic versions.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch/powerpc/kernel/systbl.S')
-rw-r--r-- | arch/powerpc/kernel/systbl.S | 116 |
1 files changed, 57 insertions, 59 deletions
diff --git a/arch/powerpc/kernel/systbl.S b/arch/powerpc/kernel/systbl.S index b364141ec01c..2103f78f6445 100644 --- a/arch/powerpc/kernel/systbl.S +++ b/arch/powerpc/kernel/systbl.S | |||
@@ -19,15 +19,13 @@ | |||
19 | 19 | ||
20 | #ifdef CONFIG_PPC64 | 20 | #ifdef CONFIG_PPC64 |
21 | #define SYSCALL(func) .llong .sys_##func,.sys_##func | 21 | #define SYSCALL(func) .llong .sys_##func,.sys_##func |
22 | #define SYSCALL32(func) .llong .sys_##func,.sys32_##func | ||
23 | #define COMPAT_SYS(func) .llong .sys_##func,.compat_sys_##func | 22 | #define COMPAT_SYS(func) .llong .sys_##func,.compat_sys_##func |
24 | #define PPC_SYS(func) .llong .ppc_##func,.ppc_##func | 23 | #define PPC_SYS(func) .llong .ppc_##func,.ppc_##func |
25 | #define OLDSYS(func) .llong .sys_ni_syscall,.sys_ni_syscall | 24 | #define OLDSYS(func) .llong .sys_ni_syscall,.sys_ni_syscall |
26 | #define SYS32ONLY(func) .llong .sys_ni_syscall,.sys32_##func | 25 | #define SYS32ONLY(func) .llong .sys_ni_syscall,.compat_sys_##func |
27 | #define SYSX(f, f3264, f32) .llong .f,.f3264 | 26 | #define SYSX(f, f3264, f32) .llong .f,.f3264 |
28 | #else | 27 | #else |
29 | #define SYSCALL(func) .long sys_##func | 28 | #define SYSCALL(func) .long sys_##func |
30 | #define SYSCALL32(func) .long sys_##func | ||
31 | #define COMPAT_SYS(func) .long sys_##func | 29 | #define COMPAT_SYS(func) .long sys_##func |
32 | #define PPC_SYS(func) .long ppc_##func | 30 | #define PPC_SYS(func) .long ppc_##func |
33 | #define OLDSYS(func) .long sys_##func | 31 | #define OLDSYS(func) .long sys_##func |
@@ -50,11 +48,11 @@ SYSCALL(read) | |||
50 | SYSCALL(write) | 48 | SYSCALL(write) |
51 | COMPAT_SYS(open) | 49 | COMPAT_SYS(open) |
52 | SYSCALL(close) | 50 | SYSCALL(close) |
53 | SYSCALL32(waitpid) | 51 | COMPAT_SYS(waitpid) |
54 | SYSCALL32(creat) | 52 | COMPAT_SYS(creat) |
55 | SYSCALL(link) | 53 | SYSCALL(link) |
56 | SYSCALL(unlink) | 54 | SYSCALL(unlink) |
57 | SYSCALL32(execve) | 55 | COMPAT_SYS(execve) |
58 | SYSCALL(chdir) | 56 | SYSCALL(chdir) |
59 | SYSX(sys64_time,compat_sys_time,sys_time) | 57 | SYSX(sys64_time,compat_sys_time,sys_time) |
60 | SYSCALL(mknod) | 58 | SYSCALL(mknod) |
@@ -69,20 +67,20 @@ SYSX(sys_ni_syscall,sys_oldumount,sys_oldumount) | |||
69 | SYSCALL(setuid) | 67 | SYSCALL(setuid) |
70 | SYSCALL(getuid) | 68 | SYSCALL(getuid) |
71 | COMPAT_SYS(stime) | 69 | COMPAT_SYS(stime) |
72 | SYSCALL32(ptrace) | 70 | COMPAT_SYS(ptrace) |
73 | SYSCALL(alarm) | 71 | SYSCALL(alarm) |
74 | OLDSYS(fstat) | 72 | OLDSYS(fstat) |
75 | SYSCALL32(pause) | 73 | COMPAT_SYS(pause) |
76 | COMPAT_SYS(utime) | 74 | COMPAT_SYS(utime) |
77 | SYSCALL(ni_syscall) | 75 | SYSCALL(ni_syscall) |
78 | SYSCALL(ni_syscall) | 76 | SYSCALL(ni_syscall) |
79 | SYSCALL32(access) | 77 | COMPAT_SYS(access) |
80 | SYSCALL32(nice) | 78 | COMPAT_SYS(nice) |
81 | SYSCALL(ni_syscall) | 79 | SYSCALL(ni_syscall) |
82 | SYSCALL(sync) | 80 | SYSCALL(sync) |
83 | SYSCALL32(kill) | 81 | COMPAT_SYS(kill) |
84 | SYSCALL(rename) | 82 | SYSCALL(rename) |
85 | SYSCALL32(mkdir) | 83 | COMPAT_SYS(mkdir) |
86 | SYSCALL(rmdir) | 84 | SYSCALL(rmdir) |
87 | SYSCALL(dup) | 85 | SYSCALL(dup) |
88 | SYSCALL(pipe) | 86 | SYSCALL(pipe) |
@@ -100,10 +98,10 @@ SYSCALL(ni_syscall) | |||
100 | COMPAT_SYS(ioctl) | 98 | COMPAT_SYS(ioctl) |
101 | COMPAT_SYS(fcntl) | 99 | COMPAT_SYS(fcntl) |
102 | SYSCALL(ni_syscall) | 100 | SYSCALL(ni_syscall) |
103 | SYSCALL32(setpgid) | 101 | COMPAT_SYS(setpgid) |
104 | SYSCALL(ni_syscall) | 102 | SYSCALL(ni_syscall) |
105 | SYSX(sys_ni_syscall,sys_olduname, sys_olduname) | 103 | SYSX(sys_ni_syscall,sys_olduname, sys_olduname) |
106 | SYSCALL32(umask) | 104 | COMPAT_SYS(umask) |
107 | SYSCALL(chroot) | 105 | SYSCALL(chroot) |
108 | SYSCALL(ustat) | 106 | SYSCALL(ustat) |
109 | SYSCALL(dup2) | 107 | SYSCALL(dup2) |
@@ -112,23 +110,23 @@ SYSCALL(getpgrp) | |||
112 | SYSCALL(setsid) | 110 | SYSCALL(setsid) |
113 | SYS32ONLY(sigaction) | 111 | SYS32ONLY(sigaction) |
114 | SYSCALL(sgetmask) | 112 | SYSCALL(sgetmask) |
115 | SYSCALL32(ssetmask) | 113 | COMPAT_SYS(ssetmask) |
116 | SYSCALL(setreuid) | 114 | SYSCALL(setreuid) |
117 | SYSCALL(setregid) | 115 | SYSCALL(setregid) |
118 | SYSX(sys_ni_syscall,ppc32_sigsuspend,ppc_sigsuspend) | 116 | SYSX(sys_ni_syscall,ppc32_sigsuspend,ppc_sigsuspend) |
119 | COMPAT_SYS(sigpending) | 117 | COMPAT_SYS(sigpending) |
120 | SYSCALL32(sethostname) | 118 | COMPAT_SYS(sethostname) |
121 | COMPAT_SYS(setrlimit) | 119 | COMPAT_SYS(setrlimit) |
122 | COMPAT_SYS(old_getrlimit) | 120 | COMPAT_SYS(old_getrlimit) |
123 | COMPAT_SYS(getrusage) | 121 | COMPAT_SYS(getrusage) |
124 | SYSCALL32(gettimeofday) | 122 | COMPAT_SYS(gettimeofday) |
125 | SYSCALL32(settimeofday) | 123 | COMPAT_SYS(settimeofday) |
126 | SYSCALL32(getgroups) | 124 | COMPAT_SYS(getgroups) |
127 | SYSCALL32(setgroups) | 125 | COMPAT_SYS(setgroups) |
128 | SYSX(sys_ni_syscall,sys_ni_syscall,ppc_select) | 126 | SYSX(sys_ni_syscall,sys_ni_syscall,ppc_select) |
129 | SYSCALL(symlink) | 127 | SYSCALL(symlink) |
130 | OLDSYS(lstat) | 128 | OLDSYS(lstat) |
131 | SYSCALL32(readlink) | 129 | COMPAT_SYS(readlink) |
132 | SYSCALL(uselib) | 130 | SYSCALL(uselib) |
133 | SYSCALL(swapon) | 131 | SYSCALL(swapon) |
134 | SYSCALL(reboot) | 132 | SYSCALL(reboot) |
@@ -139,14 +137,14 @@ SYSCALL(truncate) | |||
139 | SYSCALL(ftruncate) | 137 | SYSCALL(ftruncate) |
140 | SYSCALL(fchmod) | 138 | SYSCALL(fchmod) |
141 | SYSCALL(fchown) | 139 | SYSCALL(fchown) |
142 | SYSCALL32(getpriority) | 140 | COMPAT_SYS(getpriority) |
143 | SYSCALL32(setpriority) | 141 | COMPAT_SYS(setpriority) |
144 | SYSCALL(ni_syscall) | 142 | SYSCALL(ni_syscall) |
145 | COMPAT_SYS(statfs) | 143 | COMPAT_SYS(statfs) |
146 | COMPAT_SYS(fstatfs) | 144 | COMPAT_SYS(fstatfs) |
147 | SYSCALL(ni_syscall) | 145 | SYSCALL(ni_syscall) |
148 | COMPAT_SYS(socketcall) | 146 | COMPAT_SYS(socketcall) |
149 | SYSCALL32(syslog) | 147 | COMPAT_SYS(syslog) |
150 | COMPAT_SYS(setitimer) | 148 | COMPAT_SYS(setitimer) |
151 | COMPAT_SYS(getitimer) | 149 | COMPAT_SYS(getitimer) |
152 | COMPAT_SYS(newstat) | 150 | COMPAT_SYS(newstat) |
@@ -159,15 +157,15 @@ SYSCALL(ni_syscall) | |||
159 | SYSCALL(ni_syscall) | 157 | SYSCALL(ni_syscall) |
160 | COMPAT_SYS(wait4) | 158 | COMPAT_SYS(wait4) |
161 | SYSCALL(swapoff) | 159 | SYSCALL(swapoff) |
162 | SYSCALL32(sysinfo) | 160 | COMPAT_SYS(sysinfo) |
163 | SYSCALL32(ipc) | 161 | COMPAT_SYS(ipc) |
164 | SYSCALL(fsync) | 162 | SYSCALL(fsync) |
165 | SYSX(sys_ni_syscall,ppc32_sigreturn,sys_sigreturn) | 163 | SYSX(sys_ni_syscall,ppc32_sigreturn,sys_sigreturn) |
166 | PPC_SYS(clone) | 164 | PPC_SYS(clone) |
167 | SYSCALL32(setdomainname) | 165 | COMPAT_SYS(setdomainname) |
168 | PPC_SYS(newuname) | 166 | PPC_SYS(newuname) |
169 | SYSCALL(ni_syscall) | 167 | SYSCALL(ni_syscall) |
170 | SYSCALL32(adjtimex) | 168 | COMPAT_SYS(adjtimex) |
171 | SYSCALL(mprotect) | 169 | SYSCALL(mprotect) |
172 | SYSX(sys_ni_syscall,compat_sys_sigprocmask,sys_sigprocmask) | 170 | SYSX(sys_ni_syscall,compat_sys_sigprocmask,sys_sigprocmask) |
173 | SYSCALL(ni_syscall) | 171 | SYSCALL(ni_syscall) |
@@ -175,36 +173,36 @@ SYSCALL(init_module) | |||
175 | SYSCALL(delete_module) | 173 | SYSCALL(delete_module) |
176 | SYSCALL(ni_syscall) | 174 | SYSCALL(ni_syscall) |
177 | SYSCALL(quotactl) | 175 | SYSCALL(quotactl) |
178 | SYSCALL32(getpgid) | 176 | COMPAT_SYS(getpgid) |
179 | SYSCALL(fchdir) | 177 | SYSCALL(fchdir) |
180 | SYSCALL(bdflush) | 178 | SYSCALL(bdflush) |
181 | SYSCALL32(sysfs) | 179 | COMPAT_SYS(sysfs) |
182 | SYSX(ppc64_personality,ppc64_personality,sys_personality) | 180 | SYSX(ppc64_personality,ppc64_personality,sys_personality) |
183 | SYSCALL(ni_syscall) | 181 | SYSCALL(ni_syscall) |
184 | SYSCALL(setfsuid) | 182 | SYSCALL(setfsuid) |
185 | SYSCALL(setfsgid) | 183 | SYSCALL(setfsgid) |
186 | SYSCALL(llseek) | 184 | SYSCALL(llseek) |
187 | SYSCALL32(getdents) | 185 | COMPAT_SYS(getdents) |
188 | SYSX(sys_select,ppc32_select,ppc_select) | 186 | SYSX(sys_select,ppc32_select,ppc_select) |
189 | SYSCALL(flock) | 187 | SYSCALL(flock) |
190 | SYSCALL(msync) | 188 | SYSCALL(msync) |
191 | COMPAT_SYS(readv) | 189 | COMPAT_SYS(readv) |
192 | COMPAT_SYS(writev) | 190 | COMPAT_SYS(writev) |
193 | SYSCALL32(getsid) | 191 | COMPAT_SYS(getsid) |
194 | SYSCALL(fdatasync) | 192 | SYSCALL(fdatasync) |
195 | SYSCALL32(sysctl) | 193 | COMPAT_SYS(sysctl) |
196 | SYSCALL(mlock) | 194 | SYSCALL(mlock) |
197 | SYSCALL(munlock) | 195 | SYSCALL(munlock) |
198 | SYSCALL(mlockall) | 196 | SYSCALL(mlockall) |
199 | SYSCALL(munlockall) | 197 | SYSCALL(munlockall) |
200 | SYSCALL32(sched_setparam) | 198 | COMPAT_SYS(sched_setparam) |
201 | SYSCALL32(sched_getparam) | 199 | COMPAT_SYS(sched_getparam) |
202 | SYSCALL32(sched_setscheduler) | 200 | COMPAT_SYS(sched_setscheduler) |
203 | SYSCALL32(sched_getscheduler) | 201 | COMPAT_SYS(sched_getscheduler) |
204 | SYSCALL(sched_yield) | 202 | SYSCALL(sched_yield) |
205 | SYSCALL32(sched_get_priority_max) | 203 | COMPAT_SYS(sched_get_priority_max) |
206 | SYSCALL32(sched_get_priority_min) | 204 | COMPAT_SYS(sched_get_priority_min) |
207 | SYSCALL32(sched_rr_get_interval) | 205 | COMPAT_SYS(sched_rr_get_interval) |
208 | COMPAT_SYS(nanosleep) | 206 | COMPAT_SYS(nanosleep) |
209 | SYSCALL(mremap) | 207 | SYSCALL(mremap) |
210 | SYSCALL(setresuid) | 208 | SYSCALL(setresuid) |
@@ -214,36 +212,36 @@ SYSCALL(poll) | |||
214 | COMPAT_SYS(nfsservctl) | 212 | COMPAT_SYS(nfsservctl) |
215 | SYSCALL(setresgid) | 213 | SYSCALL(setresgid) |
216 | SYSCALL(getresgid) | 214 | SYSCALL(getresgid) |
217 | SYSCALL32(prctl) | 215 | COMPAT_SYS(prctl) |
218 | SYSX(ppc64_rt_sigreturn,ppc32_rt_sigreturn,sys_rt_sigreturn) | 216 | SYSX(ppc64_rt_sigreturn,ppc32_rt_sigreturn,sys_rt_sigreturn) |
219 | SYSCALL32(rt_sigaction) | 217 | COMPAT_SYS(rt_sigaction) |
220 | SYSCALL32(rt_sigprocmask) | 218 | COMPAT_SYS(rt_sigprocmask) |
221 | SYSCALL32(rt_sigpending) | 219 | COMPAT_SYS(rt_sigpending) |
222 | COMPAT_SYS(rt_sigtimedwait) | 220 | COMPAT_SYS(rt_sigtimedwait) |
223 | SYSCALL32(rt_sigqueueinfo) | 221 | COMPAT_SYS(rt_sigqueueinfo) |
224 | SYSX(ppc64_rt_sigsuspend,ppc32_rt_sigsuspend,ppc_rt_sigsuspend) | 222 | SYSX(ppc64_rt_sigsuspend,ppc32_rt_sigsuspend,ppc_rt_sigsuspend) |
225 | SYSCALL32(pread64) | 223 | COMPAT_SYS(pread64) |
226 | SYSCALL32(pwrite64) | 224 | COMPAT_SYS(pwrite64) |
227 | SYSCALL(chown) | 225 | SYSCALL(chown) |
228 | SYSCALL(getcwd) | 226 | SYSCALL(getcwd) |
229 | SYSCALL(capget) | 227 | SYSCALL(capget) |
230 | SYSCALL(capset) | 228 | SYSCALL(capset) |
231 | SYSCALL32(sigaltstack) | 229 | COMPAT_SYS(sigaltstack) |
232 | SYSX(sys_sendfile64,sys32_sendfile,sys_sendfile) | 230 | SYSX(sys_sendfile64,compat_sys_sendfile,sys_sendfile) |
233 | SYSCALL(ni_syscall) | 231 | SYSCALL(ni_syscall) |
234 | SYSCALL(ni_syscall) | 232 | SYSCALL(ni_syscall) |
235 | PPC_SYS(vfork) | 233 | PPC_SYS(vfork) |
236 | COMPAT_SYS(getrlimit) | 234 | COMPAT_SYS(getrlimit) |
237 | SYSCALL32(readahead) | 235 | COMPAT_SYS(readahead) |
238 | SYS32ONLY(mmap2) | 236 | SYS32ONLY(mmap2) |
239 | SYS32ONLY(truncate64) | 237 | SYS32ONLY(truncate64) |
240 | SYS32ONLY(ftruncate64) | 238 | SYS32ONLY(ftruncate64) |
241 | SYSX(sys_ni_syscall,sys_stat64,sys_stat64) | 239 | SYSX(sys_ni_syscall,sys_stat64,sys_stat64) |
242 | SYSX(sys_ni_syscall,sys_lstat64,sys_lstat64) | 240 | SYSX(sys_ni_syscall,sys_lstat64,sys_lstat64) |
243 | SYSX(sys_ni_syscall,sys_fstat64,sys_fstat64) | 241 | SYSX(sys_ni_syscall,sys_fstat64,sys_fstat64) |
244 | SYSCALL32(pciconfig_read) | 242 | COMPAT_SYS(pciconfig_read) |
245 | SYSCALL32(pciconfig_write) | 243 | COMPAT_SYS(pciconfig_write) |
246 | SYSCALL32(pciconfig_iobase) | 244 | COMPAT_SYS(pciconfig_iobase) |
247 | SYSCALL(ni_syscall) | 245 | SYSCALL(ni_syscall) |
248 | SYSCALL(getdents64) | 246 | SYSCALL(getdents64) |
249 | SYSCALL(pivot_root) | 247 | SYSCALL(pivot_root) |
@@ -293,8 +291,8 @@ COMPAT_SYS(clock_gettime) | |||
293 | COMPAT_SYS(clock_getres) | 291 | COMPAT_SYS(clock_getres) |
294 | COMPAT_SYS(clock_nanosleep) | 292 | COMPAT_SYS(clock_nanosleep) |
295 | SYSX(ppc64_swapcontext,ppc32_swapcontext,ppc_swapcontext) | 293 | SYSX(ppc64_swapcontext,ppc32_swapcontext,ppc_swapcontext) |
296 | SYSCALL32(tgkill) | 294 | COMPAT_SYS(tgkill) |
297 | SYSCALL32(utimes) | 295 | COMPAT_SYS(utimes) |
298 | COMPAT_SYS(statfs64) | 296 | COMPAT_SYS(statfs64) |
299 | COMPAT_SYS(fstatfs64) | 297 | COMPAT_SYS(fstatfs64) |
300 | SYSX(sys_ni_syscall, ppc32_fadvise64_64, sys_fadvise64_64) | 298 | SYSX(sys_ni_syscall, ppc32_fadvise64_64, sys_fadvise64_64) |
@@ -312,12 +310,12 @@ COMPAT_SYS(mq_timedreceive) | |||
312 | COMPAT_SYS(mq_notify) | 310 | COMPAT_SYS(mq_notify) |
313 | COMPAT_SYS(mq_getsetattr) | 311 | COMPAT_SYS(mq_getsetattr) |
314 | COMPAT_SYS(kexec_load) | 312 | COMPAT_SYS(kexec_load) |
315 | SYSCALL32(add_key) | 313 | COMPAT_SYS(add_key) |
316 | SYSCALL32(request_key) | 314 | COMPAT_SYS(request_key) |
317 | COMPAT_SYS(keyctl) | 315 | COMPAT_SYS(keyctl) |
318 | COMPAT_SYS(waitid) | 316 | COMPAT_SYS(waitid) |
319 | SYSCALL32(ioprio_set) | 317 | COMPAT_SYS(ioprio_set) |
320 | SYSCALL32(ioprio_get) | 318 | COMPAT_SYS(ioprio_get) |
321 | SYSCALL(inotify_init) | 319 | SYSCALL(inotify_init) |
322 | SYSCALL(inotify_add_watch) | 320 | SYSCALL(inotify_add_watch) |
323 | SYSCALL(inotify_rm_watch) | 321 | SYSCALL(inotify_rm_watch) |