]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: masked_interrupt() returns to kernel so avoid restoring r13
authorNicholas Piggin <npiggin@gmail.com>
Fri, 11 Aug 2017 16:39:01 +0000 (02:39 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 23 Aug 2017 13:11:28 +0000 (23:11 +1000)
commitf1005de35ad744314509a6fc4c1d106960ef1053
treef96e66e3e48fdc3acd16678e4fb60d1c9298649e
parentd0d4676a3b2e6bd5d597db4457ba4b82968ae14c
powerpc/64s: masked_interrupt() returns to kernel so avoid restoring r13

Places in the kernel where r13 is not the PACA pointer must have
maskable interrupts disabled, so r13 does not have to be restored when
returning from a soft-masked interrupt. We should never have
interrupts soft disabled when we're in user space.

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