]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitc7305645eb0c1621351cfc104038831ae87c0053
tree269ca8ff476da11c608f2d744915ddc20772f065
parenta08f828cf47e6c605af21d2cdec68f84e799c318
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