diff options
Diffstat (limited to 'arch/arm/mm/flush.c')
-rw-r--r-- | arch/arm/mm/flush.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mm/flush.c b/arch/arm/mm/flush.c index d438ce41cdd5..454205b789d5 100644 --- a/arch/arm/mm/flush.c +++ b/arch/arm/mm/flush.c | |||
@@ -15,12 +15,12 @@ | |||
15 | #include <asm/system.h> | 15 | #include <asm/system.h> |
16 | #include <asm/tlbflush.h> | 16 | #include <asm/tlbflush.h> |
17 | 17 | ||
18 | #include "mm.h" | ||
19 | |||
18 | #ifdef CONFIG_CPU_CACHE_VIPT | 20 | #ifdef CONFIG_CPU_CACHE_VIPT |
19 | 21 | ||
20 | #define ALIAS_FLUSH_START 0xffff4000 | 22 | #define ALIAS_FLUSH_START 0xffff4000 |
21 | 23 | ||
22 | #define TOP_PTE(x) pte_offset_kernel(top_pmd, x) | ||
23 | |||
24 | static void flush_pfn_alias(unsigned long pfn, unsigned long vaddr) | 24 | static void flush_pfn_alias(unsigned long pfn, unsigned long vaddr) |
25 | { | 25 | { |
26 | unsigned long to = ALIAS_FLUSH_START + (CACHE_COLOUR(vaddr) << PAGE_SHIFT); | 26 | unsigned long to = ALIAS_FLUSH_START + (CACHE_COLOUR(vaddr) << PAGE_SHIFT); |
@@ -107,7 +107,7 @@ void flush_ptrace_access(struct vm_area_struct *vma, struct page *page, | |||
107 | 107 | ||
108 | /* VIPT non-aliasing cache */ | 108 | /* VIPT non-aliasing cache */ |
109 | if (cpu_isset(smp_processor_id(), vma->vm_mm->cpu_vm_mask) && | 109 | if (cpu_isset(smp_processor_id(), vma->vm_mm->cpu_vm_mask) && |
110 | vma->vm_flags | VM_EXEC) { | 110 | vma->vm_flags & VM_EXEC) { |
111 | unsigned long addr = (unsigned long)kaddr; | 111 | unsigned long addr = (unsigned long)kaddr; |
112 | /* only flushing the kernel mapping on non-aliasing VIPT */ | 112 | /* only flushing the kernel mapping on non-aliasing VIPT */ |
113 | __cpuc_coherent_kern_range(addr, addr + len); | 113 | __cpuc_coherent_kern_range(addr, addr + len); |