]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: Convert fast_exception_return to use RFI_TO_USER/KERNEL
authorNicholas Piggin <npiggin@gmail.com>
Tue, 9 Jan 2018 16:07:15 +0000 (03:07 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Jan 2018 16:07:32 +0000 (03:07 +1100)
commitd10c8b89eaa4246a4746d6c64a24ff26d504c0ee
tree348e809ca069dfcb7b570fa00490ddbc3e830c1e
parentcf1b58c9063a17a576194defb55ab83b16c59618
powerpc/64: Convert fast_exception_return to use RFI_TO_USER/KERNEL

Similar to the syscall return path, in fast_exception_return we may be
returning to user or kernel context. We already have a test for that,
because we conditionally restore r13. So use that existing test and
branch, and bifurcate the return based on that.

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