diff options
| author | Christoph Hellwig <hch@lst.de> | 2003-05-26 18:07:28 +1000 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2003-05-26 18:07:28 +1000 |
| commit | 95c39f479c9ff6e36348ffd99c71dde12e6bcf32 (patch) | |
| tree | e3464f34fb274e352810f99218acea037e6d80ab | |
| parent | b9fdbdca514c68074647a47222e144d66783bb7e (diff) | |
PPC32: Syscall cleanups.
| -rw-r--r-- | arch/ppc/kernel/misc.S | 8 | ||||
| -rw-r--r-- | arch/ppc/kernel/syscalls.c | 37 |
2 files changed, 8 insertions, 37 deletions
diff --git a/arch/ppc/kernel/misc.S b/arch/ppc/kernel/misc.S index 5bd8ad88059b..b115533d0ede 100644 --- a/arch/ppc/kernel/misc.S +++ b/arch/ppc/kernel/misc.S @@ -1227,7 +1227,7 @@ _GLOBAL(sys_call_table) .long sys_ni_syscall /* old profil syscall holder */ .long sys_statfs .long sys_fstatfs /* 100 */ - .long sys_ioperm + .long sys_ni_syscall .long sys_socketcall .long sys_syslog .long sys_setitimer @@ -1236,10 +1236,10 @@ _GLOBAL(sys_call_table) .long sys_newlstat .long sys_newfstat .long sys_uname - .long sys_iopl /* 110 */ + .long sys_ni_syscall /* 110 */ .long sys_vhangup .long sys_ni_syscall /* old 'idle' syscall */ - .long sys_vm86 + .long sys_ni_syscall .long sys_wait4 .long sys_swapoff /* 115 */ .long sys_sysinfo @@ -1249,7 +1249,7 @@ _GLOBAL(sys_call_table) .long ppc_clone /* 120 */ .long sys_setdomainname .long sys_newuname - .long sys_modify_ldt + .long sys_ni_syscall .long sys_adjtimex .long sys_mprotect /* 125 */ .long sys_sigprocmask diff --git a/arch/ppc/kernel/syscalls.c b/arch/ppc/kernel/syscalls.c index cbc3b1c6c17b..76053816e2be 100644 --- a/arch/ppc/kernel/syscalls.c +++ b/arch/ppc/kernel/syscalls.c @@ -35,6 +35,7 @@ #include <linux/ipc.h> #include <linux/utsname.h> #include <linux/file.h> +#include <linux/unistd.h> #include <asm/uaccess.h> #include <asm/ipc.h> @@ -45,30 +46,6 @@ check_bugs(void) { } -int sys_ioperm(unsigned long from, unsigned long num, int on) -{ - printk(KERN_ERR "sys_ioperm()\n"); - return -EIO; -} - -int sys_iopl(int a1, int a2, int a3, int a4) -{ - printk(KERN_ERR "sys_iopl(%x, %x, %x, %x)!\n", a1, a2, a3, a4); - return (-ENOSYS); -} - -int sys_vm86(int a1, int a2, int a3, int a4) -{ - printk(KERN_ERR "sys_vm86(%x, %x, %x, %x)!\n", a1, a2, a3, a4); - return (-ENOSYS); -} - -int sys_modify_ldt(int a1, int a2, int a3, int a4) -{ - printk(KERN_ERR "sys_modify_ldt(%x, %x, %x, %x)!\n", a1, a2, a3, a4); - return (-ENOSYS); -} - /* * sys_ipc() is the de-multiplexer for the SysV IPC calls.. * @@ -291,12 +268,6 @@ int sys_olduname(struct oldold_utsname * name) return error; } -#ifndef CONFIG_PCI -/* - * Those are normally defined in arch/ppc/kernel/pci.c. But when CONFIG_PCI is - * not defined, this file is not linked at all, so here are the "empty" versions - */ -int sys_pciconfig_read(void) { return -ENOSYS; } -int sys_pciconfig_write(void) { return -ENOSYS; } -long sys_pciconfig_iobase(void) { return -ENOSYS; } -#endif +cond_syscall(sys_pciconfig_read); +cond_syscall(sys_pciconfig_write); +cond_syscall(sys_pciconfig_iobase); |
