]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Get the PGD right in oops case with 64-bit PTEs.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 1 Dec 2006 03:14:11 +0000 (12:14 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 6 Dec 2006 01:45:39 +0000 (10:45 +0900)
commit9812234e9ea852218f6c07c04e336a7e436f02a1
tree18c82b8b8e5b3542301421d5e165541ce0d8b5f7
parent0a7c4443b4ae7afcb97d401c5f051e3e290ec061
sh: Get the PGD right in oops case with 64-bit PTEs.

Previously this was using a static pgd shift in the reporting
code, simply flip this to PGDIR_SHIFT which does the right
thing depending on varying PTE magnitudes on the SH-X2 MMU.

While we're at it, and since it's been recently added, use
get_TTB() for fetching the TTB, rather than the open coded
instructions.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/fault.c