]> 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)
commitf7d1c27441856000a2eda4b5960d8a024c9e9f0c
tree269ca8ff476da11c608f2d744915ddc20772f065
parentc0b8606a120a962cd11dd67a28a90abddf68d06e
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