]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Make instruction dumping work in real mode
authorScott Wood <scottwood@freescale.com>
Thu, 27 Sep 2007 18:38:55 +0000 (04:38 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 3 Oct 2007 01:48:44 +0000 (11:48 +1000)
commit4478893814d9d1849095efa4336327cb3e71d519
tree5f03f6c0bd4c040d436ad42cf6ccc2f24cba32c2
parent74dafa5edc68f88bc317207575f58accc92015ed
[POWERPC] Make instruction dumping work in real mode

On non-book-E, exceptions execute in real mode.  If a fault happens
that leads to a register dump, the kernel currently prints XXXXXXXX
because it doesn't realize that PC is a physical address.

This patch checks whether instruction address translation is turned
on, and if not converts PC into a virtual address.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/process.c