aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/cacheflush.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/cacheflush.h')
-rw-r--r--include/asm-x86/cacheflush.h35
1 files changed, 26 insertions, 9 deletions
diff --git a/include/asm-x86/cacheflush.h b/include/asm-x86/cacheflush.h
index 9411a2d3f19c..8dd8c5e3cc7f 100644
--- a/include/asm-x86/cacheflush.h
+++ b/include/asm-x86/cacheflush.h
@@ -24,18 +24,35 @@
24#define copy_from_user_page(vma, page, vaddr, dst, src, len) \ 24#define copy_from_user_page(vma, page, vaddr, dst, src, len) \
25 memcpy(dst, src, len) 25 memcpy(dst, src, len)
26 26
27void global_flush_tlb(void); 27int __deprecated_for_modules change_page_attr(struct page *page, int numpages,
28int change_page_attr(struct page *page, int numpages, pgprot_t prot); 28 pgprot_t prot);
29int change_page_attr_addr(unsigned long addr, int numpages, pgprot_t prot); 29
30void clflush_cache_range(void *addr, int size); 30int set_pages_uc(struct page *page, int numpages);
31 31int set_pages_wb(struct page *page, int numpages);
32#ifdef CONFIG_DEBUG_PAGEALLOC 32int set_pages_x(struct page *page, int numpages);
33/* internal debugging function */ 33int set_pages_nx(struct page *page, int numpages);
34void kernel_map_pages(struct page *page, int numpages, int enable); 34int set_pages_ro(struct page *page, int numpages);
35#endif 35int set_pages_rw(struct page *page, int numpages);
36
37int set_memory_uc(unsigned long addr, int numpages);
38int set_memory_wb(unsigned long addr, int numpages);
39int set_memory_x(unsigned long addr, int numpages);
40int set_memory_nx(unsigned long addr, int numpages);
41int set_memory_ro(unsigned long addr, int numpages);
42int set_memory_rw(unsigned long addr, int numpages);
43int set_memory_np(unsigned long addr, int numpages);
44
45void clflush_cache_range(void *addr, unsigned int size);
36 46
37#ifdef CONFIG_DEBUG_RODATA 47#ifdef CONFIG_DEBUG_RODATA
38void mark_rodata_ro(void); 48void mark_rodata_ro(void);
39#endif 49#endif
50#ifdef CONFIG_DEBUG_RODATA_TEST
51void rodata_test(void);
52#else
53static inline void rodata_test(void)
54{
55}
56#endif
40 57
41#endif 58#endif