powerpc/book3e: Fix single step when using HW page tables
commitff82c319e6327b12cd94c5c57754abff243ab3e4
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 8 Jun 2010 00:58:58 +0000 (8 10:58 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Jul 2010 04:13:51 +0000 (14 14:13 +1000)
tree9545c320549d37f6f9bf99b6ea3eacd6e549706a
parent34d97e07cc81ab6f1e63696127cc7a5d2c4fce4b
powerpc/book3e: Fix single step when using HW page tables

We patch the TLB miss exception vectors to point to alternate
functions when using HW page table on BookE.

However, we were patching in a new branch in the first instruction
of the exception handler instead of the second one, thus overriding
the nop that is in the first instruction.

This cause problems when single stepping as we rely on that nop for
the single step to stop properly within the exception vector range
rather than on the target of the branch.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/exceptions-64e.S
arch/powerpc/mm/tlb_nohash.c