summaryrefslogtreecommitdiff
path: root/arch/arm64/kvm/hyp/hyp-entry.S
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2017-04-03 21:37:34 +0300
committerChristoffer Dall <cdall@linaro.org>2017-04-09 17:49:17 +0300
commit50d912cc3e5055c14e13a8e7de5c078b01a2e2b7 (patch)
treee785bf5ec65a7dc16019c67508f4e14ca030fe4d /arch/arm64/kvm/hyp/hyp-entry.S
parent9d0d4d34d9b527a1514d32836708be31f54c3c0b (diff)
downloadlinux-50d912cc3e5055c14e13a8e7de5c078b01a2e2b7.tar.xz
arm64: hyp-stub: Stop pointlessly clobbering lr
When entering the kernel hyp stub, we check whether or not we've made it here through an HVC instruction, clobbering lr (aka x30) in the process. This is completely pointless, as HVC is the only way to get here (all traps to EL2 are disabled, no interrupt override is applied). So let's remove this bit of code whose only point is to corrupt a valuable register. Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <cdall@linaro.org>
Diffstat (limited to 'arch/arm64/kvm/hyp/hyp-entry.S')
0 files changed, 0 insertions, 0 deletions