ARM: HYP/non-sec: move switch to non-sec to the last boot phase
authorMarc Zyngier <marc.zyngier@arm.com>
Sat, 12 Jul 2014 13:23:58 +0000 (14:23 +0100)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 28 Jul 2014 15:05:59 +0000 (17:05 +0200)
commitc19e0dd7412f5c4bce8c5057c40e747b1acb39e2
treeab8ac050894738e2be417d7bb09bc1fc7d339cc3
parentb1cdd8baa14f518288ceddb391d6587c1ecb3174
ARM: HYP/non-sec: move switch to non-sec to the last boot phase

Having the switch to non-secure in the "prep" phase is causing
all kind of troubles, as that stage can be called multiple times.

Instead, move the switch to non-secure to the last possible phase,
when there is no turning back anymore.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/lib/bootm.c