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