blob: beeb4baf96fbfc9d044c9e3f6555aec942ee7bb0 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#ifndef _PPC_INIT_H
#define _PPC_INIT_H
#include <linux/init.h>
#if __GNUC__ > 2 || __GNUC_MINOR__ >= 90 /* egcs */
#define __pmac __attribute__ ((__section__ (".text.pmac")))
#define __pmacdata __attribute__ ((__section__ (".data.pmac")))
#define __pmacfunc(__argpmac) \
__argpmac __pmac; \
__argpmac
#define __prep __attribute__ ((__section__ (".text.prep")))
#define __prepdata /* __attribute__ ((__section__ (".data.prep")))*/
#define __prepfunc(__argprep) \
__argprep __prep; \
__argprep
#define __apus __attribute__ ((__section__ (".text.apus")))
#define __apusdata __attribute__ ((__section__ (".data.apus")))
#define __apusfunc(__argapus) \
__argapus __apus; \
__argapus
/* this is actually just common chrp/pmac code, not OF code -- Cort */
#define __openfirmware __attribute__ ((__section__ (".text.openfirmware")))
#define __openfirmwaredata __attribute__ ((__section__ (".data.openfirmware")))
#define __openfirmwarefunc(__argopenfirmware) \
__argopenfirmware __openfirmware; \
__argopenfirmware
#else /* not egcs */
#define __pmac
#define __pmacdata
#define __pmacfunc(x) x
#define __prep
#define __prepdata
#define __prepfunc(x) x
#define __apus
#define __apusdata
#define __apusfunc(x) x
#define __openfirmware
#define __openfirmwaredata
#define __openfirmwarefunc(x) x
#endif /* egcs */
#endif /* _PPC_INIT_H */
|