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