sections.h 1.0 KB

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