Skip to content

Commit

Permalink
powerpc/64s/exception: Fix DAR load for handle_page_fault error case
Browse files Browse the repository at this point in the history
This buglet goes back to before the 64/32 arch merge, but it does not
seem to have had practical consequences because bad_page_fault does
not use the 2nd argument, but rather regs->dar/nip.

Signed-off-by: Nicholas Piggin <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
npiggin authored and mpe committed Aug 30, 2019
1 parent b3fe352 commit c31f713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/exceptions-64s.S
Original file line number Diff line number Diff line change
Expand Up @@ -2335,7 +2335,7 @@ handle_page_fault:
bl save_nvgprs
mr r5,r3
addi r3,r1,STACK_FRAME_OVERHEAD
lwz r4,_DAR(r1)
ld r4,_DAR(r1)
bl bad_page_fault
b ret_from_except

Expand Down

0 comments on commit c31f713

Please sign in to comment.