1 #ifdef __KERNEL__ 2 #ifndef _PPC_SECTIONS_H 3 #define _PPC_SECTIONS_H 4 5 #define __pmac __attribute__ ((__section__ (".text.pmac"))) 6 #define __pmacdata __attribute__ ((__section__ (".data.pmac"))) 7 #define __pmacfunc(__argpmac) \ 8 __argpmac __pmac; \ 9 __argpmac 10 11 #define __prep __attribute__ ((__section__ (".text.prep"))) 12 #define __prepdata __attribute__ ((__section__ (".data.prep"))) 13 #define __prepfunc(__argprep) \ 14 __argprep __prep; \ 15 __argprep 16 17 #define __chrp __attribute__ ((__section__ (".text.chrp"))) 18 #define __chrpdata __attribute__ ((__section__ (".data.chrp"))) 19 #define __chrpfunc(__argchrp) \ 20 __argchrp __chrp; \ 21 __argchrp 22 23 /* this is actually just common chrp/pmac code, not OF code -- Cort */ 24 #define __openfirmware __attribute__ ((__section__ (".text.openfirmware"))) 25 #define __openfirmwaredata __attribute__ ((__section__ (".data.openfirmware"))) 26 #define __openfirmwarefunc(__argopenfirmware) \ 27 __argopenfirmware __openfirmware; \ 28 __argopenfirmware 29 30 #endif /* _PPC_SECTIONS_H */ 31 #endif /* __KERNEL__ */ 32