]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/sh/include/asm/cachectl.h
sh: fix sys_cacheflush error checking
[net-next-2.6.git] / arch / sh / include / asm / cachectl.h
index 305dd7082a6670b9e8b50ae0be97b900a75d7795..6ffb4b7a212e5b39101fac128a2d9c6bc1c70311 100644 (file)
@@ -9,4 +9,11 @@
 
 #define CACHEFLUSH_I           0x4
 
+/*
+ * Options for cacheflush system call
+ */
+#define ICACHE CACHEFLUSH_I            /* flush instruction cache */
+#define DCACHE CACHEFLUSH_D_PURGE      /* writeback and flush data cache */
+#define BCACHE (ICACHE|DCACHE)         /* flush both caches */
+
 #endif /* _SH_CACHECTL_H */