]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit0de2d820067e03ca93f6bf5320d362d5262fb7a3
tree5f03f6c0bd4c040d436ad42cf6ccc2f24cba32c2
parent3eb523b939d59fd90518188750c26df5d357478f
[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