aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/asm/mmu_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include/asm/mmu_context.h')
-rw-r--r--arch/um/include/asm/mmu_context.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/arch/um/include/asm/mmu_context.h b/arch/um/include/asm/mmu_context.h
index aa4a743dc4ab..941527e507f7 100644
--- a/arch/um/include/asm/mmu_context.h
+++ b/arch/um/include/asm/mmu_context.h
@@ -10,7 +10,26 @@
10#include <asm/mmu.h> 10#include <asm/mmu.h>
11 11
12extern void uml_setup_stubs(struct mm_struct *mm); 12extern void uml_setup_stubs(struct mm_struct *mm);
13/*
14 * Needed since we do not use the asm-generic/mm_hooks.h:
15 */
16static inline void arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm)
17{
18 uml_setup_stubs(mm);
19}
13extern void arch_exit_mmap(struct mm_struct *mm); 20extern void arch_exit_mmap(struct mm_struct *mm);
21static inline void arch_unmap(struct mm_struct *mm,
22 struct vm_area_struct *vma,
23 unsigned long start, unsigned long end)
24{
25}
26static inline void arch_bprm_mm_init(struct mm_struct *mm,
27 struct vm_area_struct *vma)
28{
29}
30/*
31 * end asm-generic/mm_hooks.h functions
32 */
14 33
15#define deactivate_mm(tsk,mm) do { } while (0) 34#define deactivate_mm(tsk,mm) do { } while (0)
16 35
@@ -41,11 +60,6 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
41 } 60 }
42} 61}
43 62
44static inline void arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm)
45{
46 uml_setup_stubs(mm);
47}
48
49static inline void enter_lazy_tlb(struct mm_struct *mm, 63static inline void enter_lazy_tlb(struct mm_struct *mm,
50 struct task_struct *tsk) 64 struct task_struct *tsk)
51{ 65{