patch-2.1.48 linux/include/asm-ppc/init.h

Next file: linux/include/asm-ppc/io.h
Previous file: linux/include/asm-ppc/ide.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.47/linux/include/asm-ppc/init.h linux/include/asm-ppc/init.h
@@ -1,14 +1,23 @@
 #ifndef _PPC_INIT_H
 #define _PPC_INIT_H
 
-/* Throwing the initialization code and data out is not supported yet... */
-
-#define	__init
+#define __init
 #define __initdata
-#define __initfunc(__arginit) __arginit
-/* For assembly routines */
+#define __initfunc(x) x
+/*
+#define __init __attribute__ ((__section__ (".text.init")))
+#define __initdata __attribute__ ((__section__ (".data.init")))
+#define __initfunc(__arginit) \
+	__arginit __init; \
+	__arginit
+*/
+	/* For assembly routines */
 #define __INIT
 #define __FINIT
 #define __INITDATA
-
+/*	
+#define __INIT		.section	".text.init",#alloc,#execinstr
+#define __FINIT	.previous
+#define __INITDATA	.section	".data.init",#alloc,#write
+*/
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov