[U-Boot] [PATCH] arm: Start AArch32 Linux in EL1 instead of EL2 on AArch64

Alexander Graf agraf at suse.de
Fri Oct 13 07:19:32 UTC 2017



On 13.10.17 09:08, Michal Simek wrote:
> AArch32 Linux should start in EL1 instead of EL2.

Why? There is KVM on AArch32 as well.


Alex

> 
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
> 
>  arch/arm/lib/bootm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
> index 5c62d9c14406..e83d13de6749 100644
> --- a/arch/arm/lib/bootm.c
> +++ b/arch/arm/lib/bootm.c
> @@ -339,7 +339,7 @@ static void boot_jump_linux(bootm_headers_t *images, int flag)
>  #else
>  		if ((IH_ARCH_DEFAULT == IH_ARCH_ARM64) &&
>  		    (images->os.arch == IH_ARCH_ARM))
> -			armv8_switch_to_el2(0, (u64)gd->bd->bi_arch_number,
> +			armv8_switch_to_el1(0, (u64)gd->bd->bi_arch_number,
>  					    (u64)images->ft_addr, 0,
>  					    (u64)images->ep,
>  					    ES_TO_AARCH32);
> 


More information about the U-Boot mailing list