]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S PR: Exiting split hack mode needs to fixup both PC and LR
authorCameron Kaiser <spectre@floodgap.com>
Tue, 31 Jul 2018 14:39:21 +0000 (07:39 -0700)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 5 Oct 2018 05:55:06 +0000 (15:55 +1000)
commit2669fe3ed7e06b73c71bae55e4beb9c82792b105
treef9d378b7881aef688145eeef72fe29e57aeb41dc
parent634f2d494905ecdb788bb29ae797e792016f94f4
KVM: PPC: Book3S PR: Exiting split hack mode needs to fixup both PC and LR

When an OS (currently only classic Mac OS) is running in KVM-PR and makes a
linked jump from code with split hack addressing enabled into code that does
not, LR is not correctly updated and reflects the previously munged PC.

To fix this, this patch undoes the address munge when exiting split
hack mode so that code relying on LR being a proper address will now
execute. This does not affect OS X or other operating systems running
on KVM-PR.

Signed-off-by: Cameron Kaiser <spectre@floodgap.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s.c