1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19#include <linux/linkage.h>
20#include <linux/init.h>
21#include <asm/asm-offsets.h>
22#include <asm/tlbflush.h>
23#include "proc-macros.S"
24
25
26
27
28
29
30
31
32
33
34
35 .align 4
36ENTRY(fa_flush_user_tlb_range)
37 vma_vm_mm ip, r2
38 act_mm r3 @ get current->active_mm
39 eors r3, ip, r3 @ == mm ?
40 movne pc, lr @ no, we dont do anything
41 mov r3,
42 mcr p15, 0, r3, c7, c10, 4 @ drain WB
43 bic r0, r0,
44 bic r0, r0,
451: mcr p15, 0, r0, c8, c7, 1 @ invalidate UTLB entry
46 add r0, r0,
47 cmp r0, r1
48 blo 1b
49 mcr p15, 0, r3, c7, c10, 4 @ data write barrier
50 mov pc, lr
51
52
53ENTRY(fa_flush_kern_tlb_range)
54 mov r3,
55 mcr p15, 0, r3, c7, c10, 4 @ drain WB
56 bic r0, r0,
57 bic r0, r0,
581: mcr p15, 0, r0, c8, c7, 1 @ invalidate UTLB entry
59 add r0, r0,
60 cmp r0, r1
61 blo 1b
62 mcr p15, 0, r3, c7, c10, 4 @ data write barrier
63 mcr p15, 0, r3, c7, c5, 4 @ prefetch flush (isb)
64 mov pc, lr
65
66 __INITDATA
67
68
69 define_tlb_functions fa, fa_tlb_flags
70