mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 23:47:24 +00:00
d429688754
For the KVM and XEN hypervisors to be usable, we need to enter the kernel in HYP mode. Now that we already are in non-secure state, HYP mode switching is within short reach. While doing the non-secure switch, we have to enable the HVC instruction and setup the HYP mode HVBAR (while still secure). The actual switch is done by dropping back from a HYP mode handler without actually leaving HYP mode, so we introduce a new handler routine in our new secure exception vector table. In the assembly switching routine we save and restore the banked LR and SP registers around the hypercall to do the actual HYP mode switch. The C routine first checks whether we are in HYP mode already and also whether the virtualization extensions are available. It also checks whether the HYP mode switch was finally successful. The bootm command part only calls the new function after the non-secure switch. Signed-off-by: Andre Przywara <andre.przywara@linaro.org> |
||
---|---|---|
.. | ||
_ashldi3.S | ||
_ashrdi3.S | ||
_divsi3.S | ||
_lshrdi3.S | ||
_modsi3.S | ||
_udivsi3.S | ||
_umodsi3.S | ||
board.c | ||
bootm-fdt.c | ||
bootm.c | ||
cache-cp15.c | ||
cache-pl310.c | ||
cache.c | ||
crt0.S | ||
div0.c | ||
eabi_compat.c | ||
interrupts.c | ||
Makefile | ||
memcpy.S | ||
memset.S | ||
relocate.S | ||
reset.c | ||
sections.c | ||
spl.c |