diff options
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/include/asm/pgtable.h | 3 | ||||
-rw-r--r-- | arch/sh/mm/fault_32.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/sh/include/asm/pgtable.h b/arch/sh/include/asm/pgtable.h index ba3046e4f06f..1ff93ac1aa44 100644 --- a/arch/sh/include/asm/pgtable.h +++ b/arch/sh/include/asm/pgtable.h | |||
@@ -165,8 +165,9 @@ extern void __update_tlb(struct vm_area_struct *vma, | |||
165 | unsigned long address, pte_t pte); | 165 | unsigned long address, pte_t pte); |
166 | 166 | ||
167 | static inline void | 167 | static inline void |
168 | update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t pte) | 168 | update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep) |
169 | { | 169 | { |
170 | pte_t pte = *ptep; | ||
170 | __update_cache(vma, address, pte); | 171 | __update_cache(vma, address, pte); |
171 | __update_tlb(vma, address, pte); | 172 | __update_tlb(vma, address, pte); |
172 | } | 173 | } |
diff --git a/arch/sh/mm/fault_32.c b/arch/sh/mm/fault_32.c index 47530104e0ad..1677b5ee191d 100644 --- a/arch/sh/mm/fault_32.c +++ b/arch/sh/mm/fault_32.c | |||
@@ -371,7 +371,7 @@ handle_tlbmiss(struct pt_regs *regs, unsigned long writeaccess, | |||
371 | local_flush_tlb_one(get_asid(), address & PAGE_MASK); | 371 | local_flush_tlb_one(get_asid(), address & PAGE_MASK); |
372 | #endif | 372 | #endif |
373 | 373 | ||
374 | update_mmu_cache(NULL, address, entry); | 374 | update_mmu_cache(NULL, address, pte); |
375 | 375 | ||
376 | return 0; | 376 | return 0; |
377 | } | 377 | } |