aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/skas/mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/kernel/skas/mmu.c')
-rw-r--r--arch/um/kernel/skas/mmu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/um/kernel/skas/mmu.c b/arch/um/kernel/skas/mmu.c
index c5475ecd9fd4..48c8c136c038 100644
--- a/arch/um/kernel/skas/mmu.c
+++ b/arch/um/kernel/skas/mmu.c
@@ -47,9 +47,9 @@ static int init_stub_pte(struct mm_struct *mm, unsigned long proc,
47 * destroy_context_skas. 47 * destroy_context_skas.
48 */ 48 */
49 49
50 mm->context.skas.last_page_table = pmd_page_vaddr(*pmd); 50 mm->context.last_page_table = pmd_page_vaddr(*pmd);
51#ifdef CONFIG_3_LEVEL_PGTABLES 51#ifdef CONFIG_3_LEVEL_PGTABLES
52 mm->context.skas.last_pmd = (unsigned long) __va(pud_val(*pud)); 52 mm->context.last_pmd = (unsigned long) __va(pud_val(*pud));
53#endif 53#endif
54 54
55 *pte = mk_pte(virt_to_page(kernel), __pgprot(_PAGE_PRESENT)); 55 *pte = mk_pte(virt_to_page(kernel), __pgprot(_PAGE_PRESENT));
@@ -66,8 +66,8 @@ static int init_stub_pte(struct mm_struct *mm, unsigned long proc,
66 66
67int init_new_context(struct task_struct *task, struct mm_struct *mm) 67int init_new_context(struct task_struct *task, struct mm_struct *mm)
68{ 68{
69 struct mmu_context_skas *from_mm = NULL; 69 struct mm_context *from_mm = NULL;
70 struct mmu_context_skas *to_mm = &mm->context.skas; 70 struct mm_context *to_mm = &mm->context;
71 unsigned long stack = 0; 71 unsigned long stack = 0;
72 int ret = -ENOMEM; 72 int ret = -ENOMEM;
73 73
@@ -97,7 +97,7 @@ int init_new_context(struct task_struct *task, struct mm_struct *mm)
97 97
98 to_mm->id.stack = stack; 98 to_mm->id.stack = stack;
99 if (current->mm != NULL && current->mm != &init_mm) 99 if (current->mm != NULL && current->mm != &init_mm)
100 from_mm = &current->mm->context.skas; 100 from_mm = &current->mm->context;
101 101
102 if (proc_mm) { 102 if (proc_mm) {
103 ret = new_mm(stack); 103 ret = new_mm(stack);
@@ -133,7 +133,7 @@ int init_new_context(struct task_struct *task, struct mm_struct *mm)
133 133
134void destroy_context(struct mm_struct *mm) 134void destroy_context(struct mm_struct *mm)
135{ 135{
136 struct mmu_context_skas *mmu = &mm->context.skas; 136 struct mm_context *mmu = &mm->context;
137 137
138 if (proc_mm) 138 if (proc_mm)
139 os_close_file(mmu->id.u.mm_fd); 139 os_close_file(mmu->id.u.mm_fd);