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

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  *  linux/include/asm-arm/cache.h
  3.  */
  4. #ifndef __ASMARM_CACHE_H
  5. #define __ASMARM_CACHE_H
  6. #define        L1_CACHE_BYTES  32
  7. #define        L1_CACHE_ALIGN(x)       (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
  8. #define        SMP_CACHE_BYTES L1_CACHE_BYTES
  9. #ifdef MODULE
  10. #define __cacheline_aligned __attribute__((__aligned__(L1_CACHE_BYTES)))
  11. #else
  12. #define __cacheline_aligned
  13.   __attribute__((__aligned__(L1_CACHE_BYTES),
  14.  __section__(".data.cacheline_aligned")))
  15. #endif
  16. #endif