]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: non-sec: reset CNTVOFF to zero
authorMarc Zyngier <marc.zyngier@arm.com>
Sat, 12 Jul 2014 13:24:00 +0000 (14:24 +0100)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 28 Jul 2014 15:06:28 +0000 (17:06 +0200)
commit64fd44dcae0daafb011f98d4b2d4e1f28036b99e
tree8248f7a20fe05be8e87dac0987b00841f8b3ce7f
parent800c83522ca6a7d6fd0b058f423501b4cc52d6d6
ARM: non-sec: reset CNTVOFF to zero

Before switching to non-secure, make sure that CNTVOFF is set
to zero on all CPUs. Otherwise, kernel running in non-secure
without HYP enabled (hence using virtual timers) may observe
timers that are not synchronized, effectively seeing time
going backward...

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/cpu/armv7/nonsec_virt.S