patch-2.1.101 linux/include/asm-mips/init.h

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

diff -u --recursive --new-file v2.1.100/linux/include/asm-mips/init.h linux/include/asm-mips/init.h
@@ -1,14 +1,30 @@
-#ifndef __ASM_MIPS_INIT_H
-#define __ASM_MIPS_INIT_H
+/*
+ * include/asm-mips/init.h
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * $Id: init.h,v 1.3 1998/05/01 01:35:53 ralf Exp $
+ */
+#ifndef __MIPS_INIT_H
+#define __MIPS_INIT_H
 
-/* Throwing the initialization code and data out is not supported yet... */
+#define __init __attribute__ ((__section__ (".text.init")))
+#define __initdata __attribute__ ((__section__ (".data.init")))
+#define __initfunc(__arginit) \
+	__arginit __init; \
+	__arginit
+
+#if __GNUC__ >= 2 && __GNUC_MINOR__ >= 8
+#define __initlocaldata  __initdata
+#else
+#define __initlocaldata
+#endif
 
-#define	__init
-#define __initdata
-#define __initfunc(__arginit) __arginit
 /* For assembly routines */
-#define __INIT
-#define __FINIT
-#define __INITDATA
+#define __INIT		.section	.text.init,"ax"
+#define __FINIT		.previous
+#define __INITDATA	.section	.data.init,"a"
 
-#endif /* __ASM_MIPS_INIT_H */
+#endif /* __MIPS_INIT_H */

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