This source file includes following definitions.
- enter_lazy_tlb
- init_new_context
- destroy_context
- activate_mm
- deactivate_mm
1
2
3
4
5
6
7 #ifndef _ASM_RISCV_MMU_CONTEXT_H
8 #define _ASM_RISCV_MMU_CONTEXT_H
9
10 #include <linux/mm_types.h>
11 #include <asm-generic/mm_hooks.h>
12
13 #include <linux/mm.h>
14 #include <linux/sched.h>
15
16 static inline void enter_lazy_tlb(struct mm_struct *mm,
17 struct task_struct *task)
18 {
19 }
20
21
22 static inline int init_new_context(struct task_struct *task,
23 struct mm_struct *mm)
24 {
25 return 0;
26 }
27
28 static inline void destroy_context(struct mm_struct *mm)
29 {
30 }
31
32 void switch_mm(struct mm_struct *prev, struct mm_struct *next,
33 struct task_struct *task);
34
35 static inline void activate_mm(struct mm_struct *prev,
36 struct mm_struct *next)
37 {
38 switch_mm(prev, next, NULL);
39 }
40
41 static inline void deactivate_mm(struct task_struct *task,
42 struct mm_struct *mm)
43 {
44 }
45
46 #endif