diff options
Diffstat (limited to 'include/asm-um/mmu_context.h')
-rw-r--r-- | include/asm-um/mmu_context.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/asm-um/mmu_context.h b/include/asm-um/mmu_context.h index 89bff310b7a9..095bb627b96a 100644 --- a/include/asm-um/mmu_context.h +++ b/include/asm-um/mmu_context.h | |||
@@ -7,19 +7,23 @@ | |||
7 | #define __UM_MMU_CONTEXT_H | 7 | #define __UM_MMU_CONTEXT_H |
8 | 8 | ||
9 | #include "linux/sched.h" | 9 | #include "linux/sched.h" |
10 | #include "linux/config.h" | ||
10 | #include "choose-mode.h" | 11 | #include "choose-mode.h" |
12 | #include "um_mmu.h" | ||
11 | 13 | ||
12 | #define get_mmu_context(task) do ; while(0) | 14 | #define get_mmu_context(task) do ; while(0) |
13 | #define activate_context(tsk) do ; while(0) | 15 | #define activate_context(tsk) do ; while(0) |
14 | 16 | ||
15 | #define deactivate_mm(tsk,mm) do { } while (0) | 17 | #define deactivate_mm(tsk,mm) do { } while (0) |
16 | 18 | ||
19 | extern void force_flush_all(void); | ||
20 | |||
17 | static inline void activate_mm(struct mm_struct *old, struct mm_struct *new) | 21 | static inline void activate_mm(struct mm_struct *old, struct mm_struct *new) |
18 | { | 22 | { |
23 | if (old != new) | ||
24 | force_flush_all(); | ||
19 | } | 25 | } |
20 | 26 | ||
21 | extern void switch_mm_skas(int mm_fd); | ||
22 | |||
23 | static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, | 27 | static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, |
24 | struct task_struct *tsk) | 28 | struct task_struct *tsk) |
25 | { | 29 | { |
@@ -30,7 +34,7 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, | |||
30 | cpu_set(cpu, next->cpu_vm_mask); | 34 | cpu_set(cpu, next->cpu_vm_mask); |
31 | if(next != &init_mm) | 35 | if(next != &init_mm) |
32 | CHOOSE_MODE((void) 0, | 36 | CHOOSE_MODE((void) 0, |
33 | switch_mm_skas(next->context.skas.mm_fd)); | 37 | switch_mm_skas(&next->context.skas.id)); |
34 | } | 38 | } |
35 | } | 39 | } |
36 | 40 | ||