Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 145fd9a5 authored by Cameron Kaiser's avatar Cameron Kaiser Committed by Greg Kroah-Hartman
Browse files

KVM: PPC: Book3S PR: Exiting split hack mode needs to fixup both PC and LR



[ Upstream commit 1006284c5e411872333967b1970c2ca46a9e225f ]

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: default avatarCameron Kaiser <spectre@floodgap.com>
Signed-off-by: default avatarPaul Mackerras <paulus@ozlabs.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3b37711c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment