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

Michal Simek michal.simek at xilinx.com
Fri Oct 13 07:08:17 UTC 2017


AArch32 Linux should start in EL1 instead of EL2.

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);
-- 
1.9.1



More information about the U-Boot mailing list