patch-2.4.0-test3 linux/arch/ppc/kernel/syscalls.c
Next file: linux/arch/s390/config.in
Previous file: linux/arch/ppc/kernel/smp.c
Back to the patch index
Back to the overall index
- Lines: 68
- Date:
Sat Jul 8 19:26:12 2000
- Orig file:
v2.4.0-test2/linux/arch/ppc/kernel/syscalls.c
- Orig date:
Sun Feb 13 19:29:03 2000
diff -u --recursive --new-file v2.4.0-test2/linux/arch/ppc/kernel/syscalls.c linux/arch/ppc/kernel/syscalls.c
@@ -52,25 +52,19 @@
int sys_iopl(int a1, int a2, int a3, int a4)
{
- lock_kernel();
printk(KERN_ERR "sys_iopl(%x, %x, %x, %x)!\n", a1, a2, a3, a4);
- unlock_kernel();
return (-ENOSYS);
}
int sys_vm86(int a1, int a2, int a3, int a4)
{
- lock_kernel();
printk(KERN_ERR "sys_vm86(%x, %x, %x, %x)!\n", a1, a2, a3, a4);
- unlock_kernel();
return (-ENOSYS);
}
int sys_modify_ldt(int a1, int a2, int a3, int a4)
{
- lock_kernel();
printk(KERN_ERR "sys_modify_ldt(%x, %x, %x, %x)!\n", a1, a2, a3, a4);
- unlock_kernel();
return (-ENOSYS);
}
@@ -84,7 +78,6 @@
{
int version, ret;
- lock_kernel();
version = call >> 16; /* hack for backward compatibility */
call &= 0xffff;
@@ -171,7 +164,6 @@
break;
}
- unlock_kernel();
return ret;
}
@@ -184,9 +176,7 @@
int fd[2];
int error;
- lock_kernel();
error = do_pipe(fd);
- unlock_kernel();
if (!error) {
if (copy_to_user(fildes, fd, 2*sizeof(int)))
error = -EFAULT;
@@ -201,7 +191,6 @@
struct file * file = NULL;
int ret = -EBADF;
- lock_kernel();
if (!(flags & MAP_ANONYMOUS)) {
if (!(file = fget(fd)))
goto out;
@@ -214,7 +203,6 @@
if (file)
fput(file);
out:
- unlock_kernel();
return ret;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)