]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Convert slb_miss_common 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:33 +0000 (03:07 +1100)
commit7423ed1fa0af833a01920225d4480ce98393bb81
tree269ca8ff476da11c608f2d744915ddc20772f065
parentd10c8b89eaa4246a4746d6c64a24ff26d504c0ee
powerpc/64s: Convert slb_miss_common to use RFI_TO_USER/KERNEL

In the SLB miss handler we may be returning to user or kernel. We need
to add a check early on and save the result in the cr4 register, and
then we bifurcate the return path based on that.

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