1#ifndef _PPC64_INIT_H
2#define _PPC64_INIT_H
3
4#include <linux/init.h>
5
6#if __GNUC__ > 2 || __GNUC_MINOR__ >= 90     /* egcs */
7/* DRENG add back in when we get section attribute support */
8#define __chrp __attribute__ ((__section__ (".text.chrp")))
9#define __chrpdata __attribute__ ((__section__ (".data.chrp")))
10#define __chrpfunc(__argchrp) \
11	__argchrp __chrp; \
12	__argchrp
13
14/* this is actually just common chrp/pmac code, not OF code -- Cort */
15#define __openfirmware __attribute__ ((__section__ (".text.openfirmware")))
16#define __openfirmwaredata __attribute__ ((__section__ (".data.openfirmware")))
17#define __openfirmwarefunc(__argopenfirmware) \
18	__argopenfirmware __openfirmware; \
19	__argopenfirmware
20
21#else /* not egcs */
22
23#define __openfirmware
24#define __openfirmwaredata
25#define __openfirmwarefunc(x) x
26
27#endif /* egcs */
28
29#endif /* _PPC64_INIT_H */
30