summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc/cache.h')
-rw-r--r--include/asm-ppc/cache.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/asm-ppc/cache.h b/include/asm-ppc/cache.h
index 0a7f79689..069ad9707 100644
--- a/include/asm-ppc/cache.h
+++ b/include/asm-ppc/cache.h
@@ -8,11 +8,16 @@
#include <asm/processor.h>
/* bytes per L1 cache line */
-#define L1_CACHE_BYTES 32
-#define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
-#define L1_CACHE_PAGES 8
+#if !defined(CONFIG_8xx) || defined(CONFIG_8260)
+#define L1_CACHE_BYTES 32
+#else
+#define L1_CACHE_BYTES 16
+#endif /* !8xx || 8260 */
+
+#define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
+#define L1_CACHE_PAGES 8
-#define SMP_CACHE_BYTES L1_CACHE_BYTES
+#define SMP_CACHE_BYTES L1_CACHE_BYTES
#ifdef MODULE
#define __cacheline_aligned __attribute__((__aligned__(L1_CACHE_BYTES)))