[parisc-linux-cvs] 64-bit nfssrvctl() wrapper (partial)

Paul Bame bame@fc.hp.com
Tue, 17 Apr 2001 10:06:36 -0600


There's one case which obviously needs translation in nfssrvctl() and it
currently generates an error.  Sparc has a lot of transltors for this
call and it's not obvious to me why.

	-P

Index: syscall.S
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/syscall.S,v
retrieving revision 1.61
diff -u -r1.61 syscall.S
--- syscall.S	2001/04/11 18:31:51	1.61
+++ syscall.S	2001/04/17 15:57:41
@@ -524,7 +524,7 @@
 	ENTRY_DIFF(query_module)
 	ENTRY_SAME(poll)
 	/* structs contain pointers and an in_addr... */
-	ENTRY_UHOH(nfsservctl)
+	ENTRY_DIFF(nfsservctl)
 	ENTRY_SAME(setresgid)	/* 170 */
 	ENTRY_SAME(getresgid)
 	ENTRY_SAME(prctl)
Index: sys_parisc32.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/sys_parisc32.c,v
retrieving revision 1.5
diff -u -r1.5 sys_parisc32.c
--- sys_parisc32.c	2001/04/11 15:36:14	1.5
+++ sys_parisc32.c	2001/04/17 15:57:41
@@ -2744,4 +2744,14 @@
        return sys_pwrite(fd, buf, count, (loff_t)high << 32 | low);
 }
 
+asmlinkage int sys32_nfsservctl(int cmd, void *argp, void *resp)
+{
+	extern int sys_nfsservctl(int cmd, void *argp, void *resp);
 
+	if (cmd == NFSCTL_UGIDUPDATE) {
+		printk("nfsservctl(NFSCTL_UGIDUPDATE) wrapper not yet supported\n");
+		return -ENOSYS;
+	}
+
+	return sys_nfsservctl(cmd, argp, resp);
+}