This source file includes following definitions.
- enter_lazy_tlb
- init_new_context
- destroy_context
- deactivate_mm
1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef _ASM_NIOS2_MMU_CONTEXT_H
14 #define _ASM_NIOS2_MMU_CONTEXT_H
15
16 #include <linux/mm_types.h>
17
18 #include <asm-generic/mm_hooks.h>
19
20 extern void mmu_context_init(void);
21 extern unsigned long get_pid_from_context(mm_context_t *ctx);
22
23
24
25
26
27 extern pgd_t *pgd_current;
28
29 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
30 {
31 }
32
33
34
35
36
37
38
39 static inline int init_new_context(struct task_struct *tsk,
40 struct mm_struct *mm)
41 {
42 mm->context = 0;
43 return 0;
44 }
45
46
47
48
49
50 static inline void destroy_context(struct mm_struct *mm)
51 {
52 }
53
54 void switch_mm(struct mm_struct *prev, struct mm_struct *next,
55 struct task_struct *tsk);
56
57 static inline void deactivate_mm(struct task_struct *tsk,
58 struct mm_struct *mm)
59 {
60 }
61
62
63
64
65
66 void activate_mm(struct mm_struct *prev, struct mm_struct *next);
67
68 #endif