提交 8d5fb297 编写于 作者: P Paul Mundt

sh: Split out cache status bits per-CPU family.

Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 5a668651
...@@ -12,11 +12,6 @@ ...@@ -12,11 +12,6 @@
#include <linux/init.h> #include <linux/init.h>
#include <asm/cpu/cache.h> #include <asm/cpu/cache.h>
#define SH_CACHE_VALID 1
#define SH_CACHE_UPDATED 2
#define SH_CACHE_COMBINED 4
#define SH_CACHE_ASSOC 8
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#define __read_mostly __attribute__((__section__(".data.read_mostly"))) #define __read_mostly __attribute__((__section__(".data.read_mostly")))
......
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
#define L1_CACHE_SHIFT 4 #define L1_CACHE_SHIFT 4
#define SH_CACHE_VALID 1
#define SH_CACHE_UPDATED 2
#define SH_CACHE_COMBINED 4
#define SH_CACHE_ASSOC 8
#if defined(CONFIG_CPU_SUBTYPE_SH7619) #if defined(CONFIG_CPU_SUBTYPE_SH7619)
#define CCR1 0xffffffec #define CCR1 0xffffffec
#define CCR CCR1 #define CCR CCR1
......
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
#define L1_CACHE_SHIFT 4 #define L1_CACHE_SHIFT 4
#define SH_CACHE_VALID 1
#define SH_CACHE_UPDATED 2
#define SH_CACHE_COMBINED 4
#define SH_CACHE_ASSOC 8
#define CCR1 0xfffc1000 #define CCR1 0xfffc1000
#define CCR2 0xfffc1004 #define CCR2 0xfffc1004
......
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
#define L1_CACHE_SHIFT 4 #define L1_CACHE_SHIFT 4
#define SH_CACHE_VALID 1
#define SH_CACHE_UPDATED 2
#define SH_CACHE_COMBINED 4
#define SH_CACHE_ASSOC 8
#define CCR 0xffffffec /* Address of Cache Control Register */ #define CCR 0xffffffec /* Address of Cache Control Register */
#define CCR_CACHE_CE 0x01 /* Cache Enable */ #define CCR_CACHE_CE 0x01 /* Cache Enable */
......
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
#define L1_CACHE_SHIFT 5 #define L1_CACHE_SHIFT 5
#define SH_CACHE_VALID 1
#define SH_CACHE_UPDATED 2
#define SH_CACHE_COMBINED 4
#define SH_CACHE_ASSOC 8
#define CCR 0xff00001c /* Address of Cache Control Register */ #define CCR 0xff00001c /* Address of Cache Control Register */
#define CCR_CACHE_OCE 0x0001 /* Operand Cache Enable */ #define CCR_CACHE_OCE 0x0001 /* Operand Cache Enable */
#define CCR_CACHE_WT 0x0002 /* Write-Through (for P0,U0,P3) (else writeback)*/ #define CCR_CACHE_WT 0x0002 /* Write-Through (for P0,U0,P3) (else writeback)*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册