patch-2.1.87 linux/include/asm-m68k/init.h
Next file: linux/include/asm-m68k/io.h
Previous file: linux/include/asm-m68k/ide.h
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Thu Feb 12 16:30:13 1998
- Orig file:
v2.1.86/linux/include/asm-m68k/init.h
- Orig date:
Tue May 13 22:41:17 1997
diff -u --recursive --new-file v2.1.86/linux/include/asm-m68k/init.h linux/include/asm-m68k/init.h
@@ -1,6 +1,10 @@
#ifndef _M68K_INIT_H
#define _M68K_INIT_H
+#include <linux/config.h>
+
+#ifndef CONFIG_KGDB
+
#define __init __attribute__ ((__section__ (".text.init")))
#define __initdata __attribute__ ((__section__ (".data.init")))
#define __initfunc(__arginit) \
@@ -11,4 +15,19 @@
#define __FINIT .previous
#define __INITDATA .section ".data.init",#alloc,#write
+#else
+
+/* gdb doesn't like it all if the code for one source file isn't together in
+ * the executable, so we must avoid the .init sections :-( */
+
+#define __init
+#define __initdata
+#define __initfunc(__arginit) __arginit
+/* For assembly routines */
+#define __INIT
+#define __FINIT
+#define __INITDATA
+
+#endif /* CONFIG_KGDB */
+
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov