Import 2.3.1
[davej-history.git] / include / asm-m68k / init.h
blob022300376692eea82a88736b98d24c1216a7a1d3
1 #ifndef _M68K_INIT_H
2 #define _M68K_INIT_H
4 #include <linux/config.h>
6 #ifndef CONFIG_KGDB
8 #define __init __attribute__ ((__section__ (".text.init")))
9 #define __initdata __attribute__ ((__section__ (".data.init")))
10 #define __initfunc(__arginit) \
11 __arginit __init; \
12 __arginit
13 /* For assembly routines */
14 #define __INIT .section ".text.init",#alloc,#execinstr
15 #define __FINIT .previous
16 #define __INITDATA .section ".data.init",#alloc,#write
18 #define __cacheline_aligned __attribute__ \
19 ((__aligned__(16), __section__ (".data.cacheline_aligned")))
21 #else
23 /* gdb doesn't like it all if the code for one source file isn't together in
24 * the executable, so we must avoid the .init sections :-( */
26 #define __init
27 #define __initdata
28 #define __initfunc(__arginit) __arginit
29 /* For assembly routines */
30 #define __INIT
31 #define __FINIT
32 #define __INITDATA
33 #define __cacheline_aligned __attribute__ ((__aligned__(16)))
35 #endif /* CONFIG_KGDB */
37 #endif