]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: hyp-stub: Stop pointlessly clobbering lr
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Apr 2017 18:37:34 +0000 (19:37 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:17 +0000 (07:49 -0700)
commitf841d01f1c0772af3a12882f4d58c09756ff526d
treee785bf5ec65a7dc16019c67508f4e14ca030fe4d
parentf7f440933b112c92d1471969d4f66ba0c580c4f3
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>
arch/arm64/kernel/hyp-stub.S