diff options
author | Kees Cook <[email protected]> | 2014-04-18 15:07:19 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-04-18 16:40:09 -0700 |
commit | 8229f1a044894f84324292608c149f0b4563532b (patch) | |
tree | 98d8f768a54c00abad55e03f07415df25fd61ee3 | |
parent | 7848a4bf51b34f41fcc9bd77e837126d99ae84e3 (diff) |
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.
[[email protected]: relocate export sites]
Signed-off-by: Kees Cook <[email protected]>
Cc: Paul Gortmaker <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Sanjay Lal <[email protected]>
Cc: John Crispin <[email protected]>
Cc: Sergei Shtylyov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | arch/mips/mm/cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c index e422b38d3113..9e67cdea3c74 100644 --- a/arch/mips/mm/cache.c +++ b/arch/mips/mm/cache.c @@ -29,15 +29,15 @@ void (*flush_cache_range)(struct vm_area_struct *vma, unsigned long start, void (*flush_cache_page)(struct vm_area_struct *vma, unsigned long page, unsigned long pfn); void (*flush_icache_range)(unsigned long start, unsigned long end); +EXPORT_SYMBOL_GPL(flush_icache_range); void (*local_flush_icache_range)(unsigned long start, unsigned long end); void (*__flush_cache_vmap)(void); void (*__flush_cache_vunmap)(void); void (*__flush_kernel_vmap_range)(unsigned long vaddr, int size); -void (*__invalidate_kernel_vmap_range)(unsigned long vaddr, int size); - EXPORT_SYMBOL_GPL(__flush_kernel_vmap_range); +void (*__invalidate_kernel_vmap_range)(unsigned long vaddr, int size); /* MIPS specific cache operations */ void (*flush_cache_sigtramp)(unsigned long addr); |