]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ARM: 8758/1: decompressor: restore r1 and r2 just before jumping to the kernel
authorŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 4 Apr 2018 07:46:58 +0000 (08:46 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:57:20 +0000 (14:57 +0200)
commit59a70ecb6b7e517161e6730a108c91e13f991f0c
treea4bb4425af02c5296213de34bfb6f1cdcb67d6a6
parentd54441419a595e1efcba5af323a61053b439c538
ARM: 8758/1: decompressor: restore r1 and r2 just before jumping to the kernel

BugLink: http://bugs.launchpad.net/bugs/1794889
[ Upstream commit f2ae9de019e4e2807d812ec4fe1df7c34788a0a0 ]

The hypervisor setup before __enter_kernel destroys the value
sotred in r1. The value needs to be restored just before the jump.

Fixes: 6b52f7bdb888 ("ARM: hyp-stub: Use r1 for the soft-restart address")
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm/boot/compressed/head.S