powerpc/64s: Avoid r3 save/restore in SLB miss handler
authorNicholas Piggin <npiggin@gmail.com>
Sun, 21 May 2017 13:15:45 +0000 (23:15 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 20 Jun 2017 12:21:59 +0000 (22:21 +1000)
commit4d7cd3b956713d3dfbc3028ad1251b3f6b416a53
tree7d37213be774ecae2911253bf88cebd8fa1bcf72
parentfe5482c04312791bb19202e47f8a7751d476251e
powerpc/64s: Avoid r3 save/restore in SLB miss handler

The SLB miss handler uses r3 for the faulting address but r12 is
mostly able to be freed up to save r3 in. It just requires SRR1
be reloaded again on error.

It would be more conventional to use r12 for SRR1 (and use r11 to
save r3), but slb_allocate_realmode clobbers r11 and not r12.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/exceptions-64s.S