summaryrefslogtreecommitdiffstats
path: root/include/asm-m68k/init.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
commit27cfca1ec98e91261b1a5355d10a8996464b63af (patch)
tree8e895a53e372fa682b4c0a585b9377d67ed70d0e /include/asm-m68k/init.h
parent6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff)
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too o Upgrade to 2.1.89. Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'include/asm-m68k/init.h')
-rw-r--r--include/asm-m68k/init.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/asm-m68k/init.h b/include/asm-m68k/init.h
index 93a323fd6..9d366561a 100644
--- a/include/asm-m68k/init.h
+++ b/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