Ok. I didn't make 2.4.0 in 2000. Tough. I tried, but we had some
[davej-history.git] / include / asm-ppc / init.h
blobd4976d863dbdb0a1117f66f9f9d34311304bdf02
1 #ifdef __KERNEL__
2 #ifndef _PPC_INIT_H
3 #define _PPC_INIT_H
5 #include <linux/init.h>
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 __chrp __attribute__ ((__section__ (".text.chrp")))
20 #define __chrpdata __attribute__ ((__section__ (".data.chrp")))
21 #define __chrpfunc(__argchrp) \
22 __argchrp __chrp; \
23 __argchrp
25 #define __apus __attribute__ ((__section__ (".text.apus")))
26 #define __apusdata __attribute__ ((__section__ (".data.apus")))
27 #define __apusfunc(__argapus) \
28 __argapus __apus; \
29 __argapus
31 /* this is actually just common chrp/pmac code, not OF code -- Cort */
32 #define __openfirmware __attribute__ ((__section__ (".text.openfirmware")))
33 #define __openfirmwaredata __attribute__ ((__section__ (".data.openfirmware")))
34 #define __openfirmwarefunc(__argopenfirmware) \
35 __argopenfirmware __openfirmware; \
36 __argopenfirmware
38 #endif /* _PPC_INIT_H */
39 #endif /* __KERNEL__ */