patch-2.4.11-dontuse linux/include/asm-ia64/module.h

Next file: linux/include/asm-ia64/processor.h
Previous file: linux/include/asm-i386/unistd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.10/linux/include/asm-ia64/module.h linux/include/asm-ia64/module.h
@@ -14,7 +14,13 @@
 #define module_map(x)		vmalloc(x)
 #define module_unmap(x)		ia64_module_unmap(x)
 #define module_arch_init(x)	ia64_module_init(x)
-#define arch_init_modules(x)	do { } while (0)
+#define arch_init_modules(x)	{ 	static struct archdata archdata; \
+					register char *kernel_gp asm ("gp");\
+					archdata.gp = kernel_gp; \
+					kernel_module.archdata_start = (const char *) &archdata; \
+					kernel_module.archdata_end   = (const char *) (&archdata + 1); \
+				}
+		
 
 /*
  * This must match in size and layout the data created by

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)