Skip to content

Commit fb0bdec

Browse files
chleroympe
authored andcommitted
powerpc/8xx: fix setting of pagetable for Abatron BDI debug tool.
Commit 8c8c10b ("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: 8c8c10b ("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>
1 parent d7b6cc1 commit fb0bdec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/powerpc/kernel/head_8xx.S

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,11 +852,12 @@ start_here:
852852

853853
/* set up the PTE pointers for the Abatron bdiGDB.
854854
*/
855-
tovirt(r6,r6)
856855
lis r5, abatron_pteptrs@h
857856
ori r5, r5, abatron_pteptrs@l
858857
stw r5, 0xf0(0) /* Must match your Abatron config file */
859858
tophys(r5,r5)
859+
lis r6, swapper_pg_dir@h
860+
ori r6, r6, swapper_pg_dir@l
860861
stw r6, 0(r5)
861862

862863
/* Now turn on the MMU for real! */

0 commit comments

Comments
 (0)