patch-2.1.110 linux/include/asm-arm/init.h
Next file: linux/include/asm-arm/io.h
Previous file: linux/include/asm-arm/fiq.h
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Sun Jul 19 20:45:45 1998
- Orig file:
v2.1.109/linux/include/asm-arm/init.h
- Orig date:
Tue Jan 20 16:39:42 1998
diff -u --recursive --new-file v2.1.109/linux/include/asm-arm/init.h linux/include/asm-arm/init.h
@@ -1,24 +1,29 @@
#ifndef _ASMARM_INIT_H
#define _ASMARM_INIT_H
-#if 0
+#include <linux/config.h>
+
+/* C routines */
+
+#ifdef CONFIG_BINUTILS_NEW
+
#define __init __attribute__ ((__section__ (".text.init")))
-#define __initdata __attribute__ ((__section__ (".data.init")))
#define __initfunc(__arginit) \
__arginit __init; \
__arginit
-/* For assembly routines */
-#define __INIT .section ".text.init",@alloc,@execinstr
-#define __FINIT .previous
-#define __INITDATA .section ".data.init",@alloc,@write
+
#else
+
#define __init
-#define __initdata
#define __initfunc(__arginit) __arginit
-/* For assembly routines */
-#define __INIT
-#define __FINIT
-#define __INITDATA
+
#endif
+
+#define __initdata __attribute__ ((__section__ (".data.init")))
+
+/* Assembly routines */
+#define __INIT .section ".text.init",@alloc,@execinstr
+#define __INITDATA .section ".data.init",@alloc,@write
+#define __FINIT .previous
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov