[MIPS] Allow setting of the cache attribute at run time.
Slightly tacky, but there is a precedent in the sparc archirecture code. Signed-off-by: Chris Dearman <chris@mips.com> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
bec5052743
commit
351336929c
@@ -134,18 +134,6 @@
|
||||
|
||||
#define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_MODIFIED | _CACHE_MASK)
|
||||
|
||||
#ifdef CONFIG_MIPS_UNCACHED
|
||||
#define PAGE_CACHABLE_DEFAULT _CACHE_UNCACHED
|
||||
#elif defined(CONFIG_DMA_NONCOHERENT)
|
||||
#define PAGE_CACHABLE_DEFAULT _CACHE_CACHABLE_NONCOHERENT
|
||||
#elif defined(CONFIG_CPU_RM9000)
|
||||
#define PAGE_CACHABLE_DEFAULT _CACHE_CWB
|
||||
#elif defined(CONFIG_SOC_AU1X00)
|
||||
#define PAGE_CACHABLE_DEFAULT _CACHE_CACHABLE_NONCOHERENT
|
||||
#else
|
||||
#define PAGE_CACHABLE_DEFAULT _CACHE_CACHABLE_COW
|
||||
#endif
|
||||
|
||||
#define CONF_CM_DEFAULT (PAGE_CACHABLE_DEFAULT>>_CACHE_SHIFT)
|
||||
|
||||
#endif /* _ASM_PGTABLE_BITS_H */
|
||||
|
Reference in New Issue
Block a user