Import 2.3.18pre1
[davej-history.git] / include / asm-ppc / init.h
blobbeeb4baf96fbfc9d044c9e3f6555aec942ee7bb0
1 #ifndef _PPC_INIT_H
2 #define _PPC_INIT_H
4 #include <linux/init.h>
6 #if __GNUC__ > 2 || __GNUC_MINOR__ >= 90 /* egcs */
7 #define __pmac __attribute__ ((__section__ (".text.pmac")))
8 #define __pmacdata __attribute__ ((__section__ (".data.pmac")))
9 #define __pmacfunc(__argpmac) \
10 __argpmac __pmac; \
11 __argpmac
13 #define __prep __attribute__ ((__section__ (".text.prep")))
14 #define __prepdata /* __attribute__ ((__section__ (".data.prep")))*/
15 #define __prepfunc(__argprep) \
16 __argprep __prep; \
17 __argprep
19 #define __apus __attribute__ ((__section__ (".text.apus")))
20 #define __apusdata __attribute__ ((__section__ (".data.apus")))
21 #define __apusfunc(__argapus) \
22 __argapus __apus; \
23 __argapus
25 /* this is actually just common chrp/pmac code, not OF code -- Cort */
26 #define __openfirmware __attribute__ ((__section__ (".text.openfirmware")))
27 #define __openfirmwaredata __attribute__ ((__section__ (".data.openfirmware")))
28 #define __openfirmwarefunc(__argopenfirmware) \
29 __argopenfirmware __openfirmware; \
30 __argopenfirmware
32 #else /* not egcs */
34 #define __pmac
35 #define __pmacdata
36 #define __pmacfunc(x) x
38 #define __prep
39 #define __prepdata
40 #define __prepfunc(x) x
42 #define __apus
43 #define __apusdata
44 #define __apusfunc(x) x
46 #define __openfirmware
47 #define __openfirmwaredata
48 #define __openfirmwarefunc(x) x
50 #endif /* egcs */
52 #endif /* _PPC_INIT_H */