Commit 8229f1a044894f84324292608c149f0b4563532b

Authored by Kees Cook
Committed by Linus Torvalds
1 parent 7848a4bf51

mips: export flush_icache_range

The lkdtm module performs tests against executable memory ranges, so it
needs to flush the icache for proper behaviors.  Other architectures
already export this, so do the same for MIPS.

[akpm@linux-foundation.org: relocate export sites]
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Sanjay Lal <sanjayl@kymasys.com>
Cc: John Crispin <blogic@openwrt.org>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

arch/mips/mm/cache.c
... ... @@ -29,15 +29,15 @@
29 29 void (*flush_cache_page)(struct vm_area_struct *vma, unsigned long page,
30 30 unsigned long pfn);
31 31 void (*flush_icache_range)(unsigned long start, unsigned long end);
  32 +EXPORT_SYMBOL_GPL(flush_icache_range);
32 33 void (*local_flush_icache_range)(unsigned long start, unsigned long end);
33 34  
34 35 void (*__flush_cache_vmap)(void);
35 36 void (*__flush_cache_vunmap)(void);
36 37  
37 38 void (*__flush_kernel_vmap_range)(unsigned long vaddr, int size);
38   -void (*__invalidate_kernel_vmap_range)(unsigned long vaddr, int size);
39   -
40 39 EXPORT_SYMBOL_GPL(__flush_kernel_vmap_range);
  40 +void (*__invalidate_kernel_vmap_range)(unsigned long vaddr, int size);
41 41  
42 42 /* MIPS specific cache operations */
43 43 void (*flush_cache_sigtramp)(unsigned long addr);