powerpc/8xx: fix setting of pagetable for Abatron BDI debug tool.
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 9 Jan 2019 20:30:07 +0000 (20:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:08:54 +0000 (10:08 +0100)
commit99b490e3a0f31ef9b9318e96c2754e7977ceb9a8
treeab956f38c421e721b18bcba43487b131635a7ef2
parenteeb370eaee98a74fcce8e7ead401c0029b3c0b0b
powerpc/8xx: fix setting of pagetable for Abatron BDI debug tool.

[ Upstream commit fb0bdec51a4901b7dd088de0a1e365e1b9f5cd21 ]

Commit 8c8c10b90d88 ("powerpc/8xx: fix handling of early NULL pointer
dereference") moved the loading of r6 earlier in the code. As some
functions are called inbetween, r6 needs to be loaded again with the
address of swapper_pg_dir in order to set PTE pointers for
the Abatron BDI.

Fixes: 8c8c10b90d88 ("powerpc/8xx: fix handling of early NULL pointer dereference")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/head_8xx.S