sections.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  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. #define __pmac __attribute__ ((__section__ (".text.pmac")))
  8. #define __pmacdata __attribute__ ((__section__ (".data.pmac")))
  9. #define __pmacfunc(__argpmac) 
  10. __argpmac __pmac; 
  11. __argpmac
  12. #define __prep __attribute__ ((__section__ (".text.prep")))
  13. #define __prepdata __attribute__ ((__section__ (".data.prep")))
  14. #define __prepfunc(__argprep) 
  15. __argprep __prep; 
  16. __argprep
  17. #define __chrp __attribute__ ((__section__ (".text.chrp")))
  18. #define __chrpdata __attribute__ ((__section__ (".data.chrp")))
  19. #define __chrpfunc(__argchrp) 
  20. __argchrp __chrp; 
  21. __argchrp
  22. /* this is actually just common chrp/pmac code, not OF code -- Cort */
  23. #define __openfirmware __attribute__ ((__section__ (".text.openfirmware")))
  24. #define __openfirmwaredata __attribute__ ((__section__ (".data.openfirmware")))
  25. #define __openfirmwarefunc(__argopenfirmware) 
  26. __argopenfirmware __openfirmware; 
  27. __argopenfirmware
  28. #endif /* _PPC_SECTIONS_H */
  29. #endif /* __KERNEL__ */