diff options
Diffstat (limited to 'arch/sparc64/mm/fault.c')
-rw-r--r-- | arch/sparc64/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/mm/fault.c b/arch/sparc64/mm/fault.c index 6f0539aa44d0..439a53c1e560 100644 --- a/arch/sparc64/mm/fault.c +++ b/arch/sparc64/mm/fault.c | |||
@@ -137,7 +137,7 @@ static unsigned int get_user_insn(unsigned long tpc) | |||
137 | if (!pte_present(pte)) | 137 | if (!pte_present(pte)) |
138 | goto out; | 138 | goto out; |
139 | 139 | ||
140 | pa = (pte_val(pte) & _PAGE_PADDR); | 140 | pa = (pte_pfn(pte) << PAGE_SHIFT); |
141 | pa += (tpc & ~PAGE_MASK); | 141 | pa += (tpc & ~PAGE_MASK); |
142 | 142 | ||
143 | /* Use phys bypass so we don't pollute dtlb/dcache. */ | 143 | /* Use phys bypass so we don't pollute dtlb/dcache. */ |