mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 03:59:01 +07:00
powerpc/8xx: fix setting of pagetable for Abatron BDI debug tool.
Commit8c8c10b90d
("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:8c8c10b90d
("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>
This commit is contained in:
parent
d7b6cc199b
commit
fb0bdec51a
@ -852,11 +852,12 @@ start_here:
|
|||||||
|
|
||||||
/* set up the PTE pointers for the Abatron bdiGDB.
|
/* set up the PTE pointers for the Abatron bdiGDB.
|
||||||
*/
|
*/
|
||||||
tovirt(r6,r6)
|
|
||||||
lis r5, abatron_pteptrs@h
|
lis r5, abatron_pteptrs@h
|
||||||
ori r5, r5, abatron_pteptrs@l
|
ori r5, r5, abatron_pteptrs@l
|
||||||
stw r5, 0xf0(0) /* Must match your Abatron config file */
|
stw r5, 0xf0(0) /* Must match your Abatron config file */
|
||||||
tophys(r5,r5)
|
tophys(r5,r5)
|
||||||
|
lis r6, swapper_pg_dir@h
|
||||||
|
ori r6, r6, swapper_pg_dir@l
|
||||||
stw r6, 0(r5)
|
stw r6, 0(r5)
|
||||||
|
|
||||||
/* Now turn on the MMU for real! */
|
/* Now turn on the MMU for real! */
|
||||||
|
Loading…
Reference in New Issue
Block a user