[U-Boot] [PATCH v5 2/8] ARM: add secure monitor handler to switch to non-secure state
Albert ARIBAUD
albert.u.boot at aribaud.net
Thu Oct 3 08:30:30 CEST 2013
Hi Andre,
On Thu, 19 Sep 2013 18:06:40 +0200, Andre Przywara
<andre.przywara at linaro.org> wrote:
> A prerequisite for using virtualization is to be in HYP mode, which
> requires the CPU to be in non-secure state first.
> Add a new file in arch/arm/cpu/armv7 to hold a monitor handler routine
> which switches the CPU to non-secure state by setting the NS and
> associated bits.
> According to the ARM architecture reference manual this should not be
> done in SVC mode, so we have to setup a SMC handler for this.
> We create a new vector table to avoid interference with other boards.
> The MVBAR register will be programmed later just before the smc call.
>
> Signed-off-by: Andre Przywara <andre.przywara at linaro.org>
> ---
> arch/arm/cpu/armv7/Makefile | 4 +++
> arch/arm/cpu/armv7/nonsec_virt.S | 54 ++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 58 insertions(+)
> create mode 100644 arch/arm/cpu/armv7/nonsec_virt.S
BTW, this has an "empty line at EOF" warning when applying.
Amicalement,
--
Albert.
More information about the U-Boot
mailing list