Skip to content
  • Andre Przywara's avatar
    ARM: add secure monitor handler to switch to non-secure state · 45b940d6
    Andre Przywara authored
    
    
    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: default avatarAndre Przywara <andre.przywara@linaro.org>
    45b940d6