This source file includes following definitions.
- update_mmu_cache
1
2
3
4
5
6
7
8 #ifndef _ASM_CACHEFLUSH_H
9 #define _ASM_CACHEFLUSH_H
10
11 #include <linux/mm_types.h>
12
13
14
15
16
17
18
19
20
21
22
23
24
25 #define LINESIZE 32
26 #define LINEBITS 5
27
28 #define flush_cache_all() do { } while (0)
29 #define flush_cache_mm(mm) do { } while (0)
30 #define flush_cache_dup_mm(mm) do { } while (0)
31 #define flush_cache_range(vma, start, end) do { } while (0)
32 #define flush_cache_page(vma, vmaddr, pfn) do { } while (0)
33 #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0
34 #define flush_dcache_page(page) do { } while (0)
35 #define flush_dcache_mmap_lock(mapping) do { } while (0)
36 #define flush_dcache_mmap_unlock(mapping) do { } while (0)
37 #define flush_icache_page(vma, pg) do { } while (0)
38 #define flush_icache_user_range(vma, pg, adr, len) do { } while (0)
39 #define flush_cache_vmap(start, end) do { } while (0)
40 #define flush_cache_vunmap(start, end) do { } while (0)
41
42
43
44
45 extern void flush_dcache_range(unsigned long start, unsigned long end);
46
47
48
49
50 extern void flush_icache_range(unsigned long start, unsigned long end);
51
52
53
54
55
56
57
58
59
60
61
62 extern void flush_cache_all_hexagon(void);
63
64
65
66
67
68
69
70
71
72
73 static inline void update_mmu_cache(struct vm_area_struct *vma,
74 unsigned long address, pte_t *ptep)
75 {
76
77 }
78
79 void copy_to_user_page(struct vm_area_struct *vma, struct page *page,
80 unsigned long vaddr, void *dst, void *src, int len);
81
82 #define copy_from_user_page(vma, page, vaddr, dst, src, len) \
83 memcpy(dst, src, len)
84
85 extern void hexagon_inv_dcache_range(unsigned long start, unsigned long end);
86 extern void hexagon_clean_dcache_range(unsigned long start, unsigned long end);
87
88 #endif