See README-linux for generic linux information.


Running GM on the sparc64-linux arch does require us to patch the
kernel to get ioctls to work from 32-bit user-space.


There are the two patches below (it would actually be
cleaner to have the first even for other archs), the other is to
make the kernel know about gm ioctls from sparc32bit userland.
The init_mm patch is not needed after 2.2.10.


And you need to generate a linux/include/gm_ioctl_switch.h with:
perl drivers/linux/sparc32.pl < include/gm_io.h \
                                     > /usr/src/linux/include/gm_ioctl_switch.h


--- linux/kernel/ksyms.c.std    Fri Jun  4 18:14:15 1999
+++ linux/kernel/ksyms.c    Fri Jun  4 18:14:17 1999
@@ -107,6 +107,7 @@
 EXPORT_SYMBOL(update_vm_cache);
 EXPORT_SYMBOL(vmtruncate);
 EXPORT_SYMBOL(find_vma);
+EXPORT_SYMBOL(init_mm);
 EXPORT_SYMBOL(get_unmapped_area);

 /* filesystem internal functions */

--- linux/arch/sparc64/kernel/ioctl32.c.std     Fri Mar 17 20:02:23 2000
+++ linux/arch/sparc64/kernel/ioctl32.c Fri Mar 17 20:06:42 2000
@@ -2390,6 +2390,8 @@
	case AUTOFS_IOC_CATATONIC:
	case AUTOFS_IOC_PROTOVER:
	case AUTOFS_IOC_EXPIRE:
+
+#include "gm_ioctl_switch.h"
 
	/* Raw devices */
	case _IO(0xac, 0): /* RAW_SETBIND */

