diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-09-05 01:13:01 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-09-05 01:13:01 +0000 |
commit | cd6236bd58e553626c20d99234566a4dbbf1734a (patch) | |
tree | bed55e8727f0fb9bb15d05bd30d7057f4abe49c7 /arch/mips64/kernel/syscall.c | |
parent | e0fc8c9572d7a4ddceb464dc8919591f6009da10 (diff) |
Handle a ton more block device, IDE (yuck :-), partition handling and
tape ioctls. Dump support for ancient variants of uname(2) syscall;
Nothing is using the since Linux/MIPS history started with glibc 2.0.
Diffstat (limited to 'arch/mips64/kernel/syscall.c')
-rw-r--r-- | arch/mips64/kernel/syscall.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/arch/mips64/kernel/syscall.c b/arch/mips64/kernel/syscall.c index 1588b95a7..009f75b85 100644 --- a/arch/mips64/kernel/syscall.c +++ b/arch/mips64/kernel/syscall.c @@ -117,43 +117,6 @@ out: } /* - * Compacrapability ... - */ -asmlinkage int sys_uname(struct old_utsname * name) -{ - if (name && !copy_to_user(name, &system_utsname, sizeof (*name))) - return 0; - return -EFAULT; -} - -/* - * Compacrapability ... - */ -asmlinkage int sys_olduname(struct oldold_utsname * name) -{ - int error; - - if (!name) - return -EFAULT; - if (!access_ok(VERIFY_WRITE,name,sizeof(struct oldold_utsname))) - return -EFAULT; - - error = __copy_to_user(&name->sysname,&system_utsname.sysname,__OLD_UTS_LEN); - error -= __put_user(0,name->sysname+__OLD_UTS_LEN); - error -= __copy_to_user(&name->nodename,&system_utsname.nodename,__OLD_UTS_LEN); - error -= __put_user(0,name->nodename+__OLD_UTS_LEN); - error -= __copy_to_user(&name->release,&system_utsname.release,__OLD_UTS_LEN); - error -= __put_user(0,name->release+__OLD_UTS_LEN); - error -= __copy_to_user(&name->version,&system_utsname.version,__OLD_UTS_LEN); - error -= __put_user(0,name->version+__OLD_UTS_LEN); - error -= __copy_to_user(&name->machine,&system_utsname.machine,__OLD_UTS_LEN); - error = __put_user(0,name->machine+__OLD_UTS_LEN); - error = error ? -EFAULT : 0; - - return error; -} - -/* * Do the indirect syscall syscall. * * XXX This is borken. @@ -217,7 +180,7 @@ sys_sysmips(int cmd, long arg1, int arg2, int arg3) return 0; case FLUSH_CACHE: - flush_cache_l1(); + __flush_cache_all(); return 0; case MIPS_RDNVRAM: |