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)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 11 Jan 2019 12:45:00 +0000 (23:45 +1100)
commitfb0bdec51a4901b7dd088de0a1e365e1b9f5cd21
treeebf43fa694fbcf8e95b3a5b451ac672afb1dc0b9
parentd7b6cc199b2dea602b4a2a681cf6d3223a61e2be
powerpc/8xx: fix setting of pagetable for Abatron BDI debug tool.

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>
arch/powerpc/kernel/head_8xx.S