powerpc: Fix some missed ppc32 mm->context.id conversions
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
4306443128
commit
31925323b1
@ -583,7 +583,7 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
|
|||||||
mm = (address < TASK_SIZE)? vma->vm_mm: &init_mm;
|
mm = (address < TASK_SIZE)? vma->vm_mm: &init_mm;
|
||||||
pmd = pmd_offset(pgd_offset(mm, address), address);
|
pmd = pmd_offset(pgd_offset(mm, address), address);
|
||||||
if (!pmd_none(*pmd))
|
if (!pmd_none(*pmd))
|
||||||
add_hash_page(mm->context, address, pmd_val(*pmd));
|
add_hash_page(mm->context.id, address, pmd_val(*pmd));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ void flush_hash_entry(struct mm_struct *mm, pte_t *ptep, unsigned long addr)
|
|||||||
|
|
||||||
if (Hash != 0) {
|
if (Hash != 0) {
|
||||||
ptephys = __pa(ptep) & PAGE_MASK;
|
ptephys = __pa(ptep) & PAGE_MASK;
|
||||||
flush_hash_pages(mm->context, addr, ptephys, 1);
|
flush_hash_pages(mm->context.id, addr, ptephys, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ static void flush_range(struct mm_struct *mm, unsigned long start,
|
|||||||
pmd_t *pmd;
|
pmd_t *pmd;
|
||||||
unsigned long pmd_end;
|
unsigned long pmd_end;
|
||||||
int count;
|
int count;
|
||||||
unsigned int ctx = mm->context;
|
unsigned int ctx = mm->context.id;
|
||||||
|
|
||||||
if (Hash == 0) {
|
if (Hash == 0) {
|
||||||
_tlbia();
|
_tlbia();
|
||||||
@ -166,7 +166,7 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr)
|
|||||||
mm = (vmaddr < TASK_SIZE)? vma->vm_mm: &init_mm;
|
mm = (vmaddr < TASK_SIZE)? vma->vm_mm: &init_mm;
|
||||||
pmd = pmd_offset(pgd_offset(mm, vmaddr), vmaddr);
|
pmd = pmd_offset(pgd_offset(mm, vmaddr), vmaddr);
|
||||||
if (!pmd_none(*pmd))
|
if (!pmd_none(*pmd))
|
||||||
flush_hash_pages(mm->context, vmaddr, pmd_val(*pmd), 1);
|
flush_hash_pages(mm->context.id, vmaddr, pmd_val(*pmd), 1);
|
||||||
FINISH_FLUSH;
|
FINISH_FLUSH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user