blob: 9d366561ab00d5c33af9e2fc34433c379ab3b182 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#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) \
__arginit __init; \
__arginit
/* For assembly routines */
#define __INIT .section ".text.init",#alloc,#execinstr
#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
|