patch-2.3.16 linux/include/asm-arm/cache.h
Next file: linux/include/asm-arm/cpu-multi26.h
Previous file: linux/include/asm-arm/bugs.h
Back to the patch index
Back to the overall index
-  Lines: 13
-  Date:
Mon Aug 30 18:15:21 1999
-  Orig file: 
v2.3.15/linux/include/asm-arm/cache.h
-  Orig date: 
Mon Mar 15 16:11:55 1999
diff -u --recursive --new-file v2.3.15/linux/include/asm-arm/cache.h linux/include/asm-arm/cache.h
@@ -8,4 +8,12 @@
 #define        L1_CACHE_ALIGN(x)       (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
 #define        SMP_CACHE_BYTES L1_CACHE_BYTES
 
+#ifdef MODULE
+#define __cacheline_aligned __attribute__((__aligned__(L1_CACHE_BYTES)))
+#else
+#define __cacheline_aligned					\
+  __attribute__((__aligned__(L1_CACHE_BYTES),			\
+		 __section__(".data.cacheline_aligned")))
+#endif
+
 #endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)