aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mm/mmu.c')
-rw-r--r--arch/arm/mm/mmu.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index ce328c7f5c94..7c347bcc9421 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -97,6 +97,7 @@ static struct cachepolicy cache_policies[] __initdata = {
97 } 97 }
98}; 98};
99 99
100#ifdef CONFIG_CPU_CP15
100/* 101/*
101 * These are useful for identifying cache coherency 102 * These are useful for identifying cache coherency
102 * problems by allowing the cache or the cache and 103 * problems by allowing the cache or the cache and
@@ -195,6 +196,22 @@ void adjust_cr(unsigned long mask, unsigned long set)
195} 196}
196#endif 197#endif
197 198
199#else /* ifdef CONFIG_CPU_CP15 */
200
201static int __init early_cachepolicy(char *p)
202{
203 pr_warning("cachepolicy kernel parameter not supported without cp15\n");
204}
205early_param("cachepolicy", early_cachepolicy);
206
207static int __init noalign_setup(char *__unused)
208{
209 pr_warning("noalign kernel parameter not supported without cp15\n");
210}
211__setup("noalign", noalign_setup);
212
213#endif /* ifdef CONFIG_CPU_CP15 / else */
214
198#define PROT_PTE_DEVICE L_PTE_PRESENT|L_PTE_YOUNG|L_PTE_DIRTY|L_PTE_XN 215#define PROT_PTE_DEVICE L_PTE_PRESENT|L_PTE_YOUNG|L_PTE_DIRTY|L_PTE_XN
199#define PROT_SECT_DEVICE PMD_TYPE_SECT|PMD_SECT_AP_WRITE 216#define PROT_SECT_DEVICE PMD_TYPE_SECT|PMD_SECT_AP_WRITE
200 217