diff options
Diffstat (limited to 'arch/sh/mm/fault.c')
-rw-r--r-- | arch/sh/mm/fault.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/sh/mm/fault.c b/arch/sh/mm/fault.c index 123fb80c859d..cfeefc10e254 100644 --- a/arch/sh/mm/fault.c +++ b/arch/sh/mm/fault.c | |||
@@ -174,11 +174,9 @@ no_context: | |||
174 | printk(KERN_ALERT "Unable to handle kernel paging request"); | 174 | printk(KERN_ALERT "Unable to handle kernel paging request"); |
175 | printk(" at virtual address %08lx\n", address); | 175 | printk(" at virtual address %08lx\n", address); |
176 | printk(KERN_ALERT "pc = %08lx\n", regs->pc); | 176 | printk(KERN_ALERT "pc = %08lx\n", regs->pc); |
177 | asm volatile("mov.l %1, %0" | 177 | page = (unsigned long)get_TTB(); |
178 | : "=r" (page) | ||
179 | : "m" (__m(MMU_TTB))); | ||
180 | if (page) { | 178 | if (page) { |
181 | page = ((unsigned long *) page)[address >> 22]; | 179 | page = ((unsigned long *) page)[address >> PGDIR_SHIFT]; |
182 | printk(KERN_ALERT "*pde = %08lx\n", page); | 180 | printk(KERN_ALERT "*pde = %08lx\n", page); |
183 | if (page & _PAGE_PRESENT) { | 181 | if (page & _PAGE_PRESENT) { |
184 | page &= PAGE_MASK; | 182 | page &= PAGE_MASK; |