patch-2.3.23 linux/include/asm-sh/cache.h

Next file: linux/include/asm-sh/checksum.h
Previous file: linux/include/asm-sh/byteorder.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.22/linux/include/asm-sh/cache.h linux/include/asm-sh/cache.h
@@ -6,7 +6,11 @@
 #define __ASM_SH_CACHE_H
 
 /* bytes per L1 cache line */
+#if defined(__sh3__)
 #define        L1_CACHE_BYTES  16
+#elif defined(__SH4__)
+#define        L1_CACHE_BYTES  32
+#endif
 
 #define        L1_CACHE_ALIGN(x)       (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
 
@@ -19,5 +23,9 @@
   __attribute__((__aligned__(L1_CACHE_BYTES),			\
 		 __section__(".data.cacheline_aligned")))
 #endif
+
+extern void cache_flush_area(unsigned long start, unsigned long end);
+extern void cache_purge_area(unsigned long start, unsigned long end);
+extern void cache_wback_area(unsigned long start, unsigned long end);
 
 #endif /* __ASM_SH_CACHE_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)