sh: Fix pgd mismatch from cached TTB in unhandled fault.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 1 Aug 2007 07:39:51 +0000 (16:39 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 1 Aug 2007 07:39:51 +0000 (16:39 +0900)
commit06f862c8ce0893b5525ce90f39168eaf4608ecc6
tree61c6d2300a0426cc6317c50a1e213d27e2c75719
parent56c74c733cdd101832c4bbf9af8a009a9eaec784
sh: Fix pgd mismatch from cached TTB in unhandled fault.

When reading the cached TTB value and extracting the pgd, we
accidentally applied a __va() to it and bumped it off in to bogus
space which ended up causing multiple faults in the error path.

Fix it up so unhandled faults don't do strange and highly unorthodox
things when oopsing.

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