Reset CNTVOFF_EL2 register before exit into EL1 on warm boot
authorSoby Mathew <soby.mathew@arm.com>
Fri, 29 Aug 2014 13:41:58 +0000 (14:41 +0100)
committerSoby Mathew <soby.mathew@arm.com>
Tue, 2 Sep 2014 12:59:14 +0000 (13:59 +0100)
commit14c0526b737592776360fec99b452e740879d532
treeb14c9cf3aeeeade8b12f152d301e9656ad582f24
parent14b6608c9a2eba27ef36cc3e0806c9fa6d5555b0
Reset CNTVOFF_EL2 register before exit into EL1 on warm boot

This patch resets the value of CNTVOFF_EL2 before exit to EL1 on
warm boot. This needs to be done if only the Trusted Firmware exits
to EL1 instead of EL2, otherwise the hypervisor would be responsible
for this.

Fixes ARM-software/tf-issues#240

Change-Id: I79d54831356cf3215bcf1f251c373bd8f89db0e0
bl31/context_mgmt.c
include/lib/aarch64/arch_helpers.h