[PATCH 3/3] move secure mode switch directly in front of kernel boot

Tim Sander tim at krieglstein.org
Wed Mar 26 13:51:30 CET 2014


---
 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 35abccf..39dcf9c 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -337,7 +337,6 @@ static void boot_prep_linux(bootm_headers_t *images)
 		hang();
 #endif /* all tags */
 	}
-	do_nonsec_virt_switch();
 }
 
 /* Subcommand: GO */
@@ -368,6 +367,7 @@ static void boot_jump_linux(bootm_headers_t *images)
 #endif
 		r2 = gd->bd->bi_boot_params;
 
+	do_nonsec_virt_switch();
 	kernel_entry(0, machid, r2);
 }
 
-- 
1.7.9.5


--nextPart3272330.ldxLZMl4xy--



More information about the U-Boot mailing list