summaryrefslogtreecommitdiffstats
path: root/include/asm-m68k/init.h
blob: dc73aed8a7c6a5b70929dbb5890291f5eb260a91 (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
#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")))
/* 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
/* For assembly routines */
#define __INIT
#define __FINIT
#define __INITDATA

#endif /* CONFIG_KGDB */

#endif