]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/kuap: Conditionally restore AMR in kuap_restore_amr asm
authorNicholas Piggin <npiggin@gmail.com>
Wed, 29 Apr 2020 06:56:54 +0000 (16:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 May 2020 13:24:37 +0000 (23:24 +1000)
commit3319da9e0b0d28bfbd79059edcedbb0b6713f27e
tree4f5914349c6615225839c54d5b37fff58f75a96d
parent716d57f501cc2329ef1edfe3db0837a93ca5b2fd
powerpc/64s/kuap: Conditionally restore AMR in kuap_restore_amr asm

Similar to the C code change, make the AMR restore conditional on
whether the register has changed.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200429065654.1677541-7-npiggin@gmail.com
arch/powerpc/include/asm/book3s/64/kup-radix.h
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/exceptions-64s.S