blob: ae253d4eef4cbcea45b5a1961dd1768fa2c7d93e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/*
* Copyright 2007-2009 Freescale Semiconductor, Inc. All Rights Reserved.
*/
#ifndef M68K_CF_TLBFLUSH_H
#define M68K_CF_TLBFLUSH_H
#include <asm/coldfire.h>
/* Flush all userspace mappings. */
static inline void flush_tlb_all(void)
{
preempt_disable();
*MMUOR = MMUOR_CNL;
preempt_enable();
}
/* Clear user TLB entries within the context named in mm */
static inline void flush_tlb_mm(struct mm_struct *mm)
{
preempt_disable();
*MMUOR = MMUOR_CNL;
preempt_enable();
}
/* Flush a single TLB page. */
static inline void flush_tlb_page(struct vm_area_struct *vma,
unsigned long addr)
{
preempt_disable();
*MMUOR = MMUOR_CNL;
preempt_enable();
}
/* Flush a range of pages from TLB. */
static inline void flush_tlb_range(struct mm_struct *mm,
unsigned long start, unsigned long end)
{
preempt_disable();
*MMUOR = MMUOR_CNL;
preempt_enable();
}
/* Flush kernel page from TLB. */
static inline void flush_tlb_kernel_page(void *addr)
{
preempt_disable();
*MMUOR = MMUOR_CNL;
preempt_enable();
}
static inline void flush_tlb_kernel_range(unsigned long start,
unsigned long end)
{
flush_tlb_all();
}
extern inline void flush_tlb_pgtables(struct mm_struct *mm,
unsigned long start, unsigned long end)
{
}
#endif /* M68K_CF_TLBFLUSH_H */
|