]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0af023d11307192a6488b4727607c8ee812a76ad
tree7d37213be774ecae2911253bf88cebd8fa1bcf72
parentb968f0071a286ce6aba2041811ccd91dedaf34af
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