Skip to contentSkip to conversation

move secure mode switch directly in front of kernel boot

PATCH New Tim Sander 1 participant 1 message Mar 26, 2014 Arm (32-bit)

lore
Share & tools
lore

Tim Sander

author
#0 lore raw

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

---
 arch/arm/lib/bootm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/lib/bootm.c +1 -1
index 35abccf..39dcf9c 100644
@@ -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);
 }
 
Signature · 4 lines
1.7.9.5


--nextPart3272330.ldxLZMl4xy--