Commit d203ae95 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: remove some unimplemented syscalls

parent 20bbb79d
......@@ -605,7 +605,7 @@ _GLOBAL(sys_call_table32)
.llong .sys_ni_syscall /* old profil syscall holder */
.llong .sys32_statfs
.llong .sys32_fstatfs /* 100 */
.llong .sys32_ioperm
.llong .sys_ni_syscall /* old ioperm syscall holder */
.llong .sys32_socketcall
.llong .sys32_syslog
.llong .sys32_setitimer
......@@ -614,10 +614,10 @@ _GLOBAL(sys_call_table32)
.llong .sys32_newlstat
.llong .sys32_newfstat
.llong .sys_uname
.llong .sys32_iopl /* 110 */
.llong .sys_ni_syscall /* 110 old iopl syscall holder */
.llong .sys_vhangup
.llong .sys_ni_syscall /* old 'idle' syscall */
.llong .sys32_vm86
.llong .sys_ni_syscall /* old vm86 syscall holder */
.llong .sys32_wait4
.llong .sys_swapoff /* 115 */
.llong .sys32_sysinfo
......@@ -627,7 +627,7 @@ _GLOBAL(sys_call_table32)
.llong .sys32_clone /* 120 */
.llong .sys32_setdomainname
.llong .ppc64_newuname
.llong .sys32_modify_ldt
.llong .sys_ni_syscall /* old modify_ldt syscall holder */
.llong .sys32_adjtimex
.llong .sys_mprotect /* 125 */
.llong .sys32_sigprocmask
......@@ -839,7 +839,7 @@ _GLOBAL(sys_call_table)
.llong .sys_ni_syscall /* old profil syscall holder */
.llong .sys_statfs
.llong .sys_fstatfs /* 100 */
.llong .sys_ioperm
.llong .sys_ni_syscall /* old ioperm syscall holder */
.llong .sys_socketcall
.llong .sys_syslog
.llong .sys_setitimer
......@@ -848,10 +848,10 @@ _GLOBAL(sys_call_table)
.llong .sys_newlstat
.llong .sys_newfstat
.llong .sys_uname
.llong .sys_iopl /* 110 */
.llong .sys_ni_syscall /* 110 old iopl syscall holder */
.llong .sys_vhangup
.llong .sys_ni_syscall /* old 'idle' syscall */
.llong .sys_vm86
.llong .sys_ni_syscall /* old vm86 syscall holder */
.llong .sys_wait4
.llong .sys_swapoff /* 115 */
.llong .sys_sysinfo
......@@ -861,7 +861,7 @@ _GLOBAL(sys_call_table)
.llong .sys_clone /* 120 */
.llong .sys_setdomainname
.llong .ppc64_newuname
.llong .sys_modify_ldt
.llong .sys_ni_syscall /* old modify_ldt syscall */
.llong .sys_adjtimex
.llong .sys_mprotect /* 125 */
.llong .sys_sigprocmask
......
......@@ -3923,30 +3923,6 @@ asmlinkage long sys32_getsid(u32 pid)
}
extern asmlinkage long sys_ioperm(unsigned long from, unsigned long num, int on);
/* Note: it is necessary to treat on as an unsigned int,
* with the corresponding cast to a signed int to insure that the
* proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
* and the register representation of a signed int (msr in 64-bit mode) is performed.
*/
asmlinkage long sys32_ioperm(unsigned long from, unsigned long num, u32 on)
{
return sys_ioperm(from, num, (int)on);
}
extern asmlinkage int sys_iopl(int a1, int a2, int a3, int a4);
/* Note: it is necessary to treat a1, a2, a3, and a4 as unsigned ints,
* with the corresponding cast to a signed int to insure that the
* proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
* and the register representation of a signed int (msr in 64-bit mode) is performed.
*/
asmlinkage int sys32_iopl(u32 a1, u32 a2, u32 a3, u32 a4)
{
return sys_iopl((int)a1, (int)a2, (int)a3, (int)a4);
}
extern asmlinkage long sys_kill(int pid, int sig);
......@@ -3988,19 +3964,6 @@ asmlinkage long sys32_mlockall(u32 flags)
}
extern asmlinkage int sys_modify_ldt(int a1, int a2, int a3, int a4);
/* Note: it is necessary to treat a1, a2, a3, and a4 as unsigned ints,
* with the corresponding cast to a signed int to insure that the
* proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
* and the register representation of a signed int (msr in 64-bit mode) is performed.
*/
asmlinkage int sys32_modify_ldt(u32 a1, u32 a2, u32 a3, u32 a4)
{
return sys_modify_ldt((int)a1, (int)a2, (int)a3, (int)a4);
}
extern asmlinkage long sys_msync(unsigned long start, size_t len, int flags);
/* Note: it is necessary to treat flags as an unsigned int,
......@@ -4287,18 +4250,6 @@ asmlinkage int sys32_vfork(u32 p1, u32 p2, u32 p3, u32 p4, u32 p5, u32 p6, struc
}
extern asmlinkage int sys_vm86(int a1, int a2, int a3, int a4);
/* Note: it is necessary to treat a1, a2, a3, and a4 as unsigned ints,
* with the corresponding cast to a signed int to insure that the
* proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
* and the register representation of a signed int (msr in 64-bit mode) is performed.
*/
asmlinkage int sys32_vm86(u32 a1, u32 a2, u32 a3, u32 a4)
{
return sys_vm86((int)a1, (int)a2, (int)a3, (int)a4);
}
extern ssize_t sys_pread64(unsigned int fd, char *buf, size_t count,
loff_t pos);
......
......@@ -52,30 +52,11 @@ check_bugs(void)
{
}
asmlinkage int sys_ioperm(unsigned long from, unsigned long num, int on)
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..
*
......@@ -193,7 +174,7 @@ asmlinkage int sys_pipe(int *fildes)
return error;
}
asmlinkage unsigned long sys_mmap(unsigned long addr, size_t len,
unsigned long sys_mmap(unsigned long addr, size_t len,
unsigned long prot, unsigned long flags,
unsigned long fd, off_t offset)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment