[U-Boot] [PATCH 1/2] RFC: arm: add call to cleanup things before jumping into kernel

Ajay Kumar ajaykumar.rs at samsung.com
Thu Oct 3 11:04:19 CEST 2013


Add infrasturcture to cleanup any of those architecture related settings
done for u-boot, if they can cause problem during kernel boot.

Signed-off-by: Ajay Kumar <ajaykumar.rs at samsung.com>
---
 arch/arm/cpu/armv7/cpu.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c
index 01cdb7e..edf4604 100644
--- a/arch/arm/cpu/armv7/cpu.c
+++ b/arch/arm/cpu/armv7/cpu.c
@@ -23,6 +23,7 @@
 #include <linux/compiler.h>
 
 void __weak cpu_cache_initialization(void){}
+void __weak arch_cleanup_before_linux(void){}
 
 int cleanup_before_linux(void)
 {
@@ -35,6 +36,11 @@ int cleanup_before_linux(void)
 #ifndef CONFIG_SPL_BUILD
 	disable_interrupts();
 #endif
+	/*
+	 * Cleanup any of those architecture related settings done for u-boot,
+	 * if they can cause problem during kernel boot.
+	 */
+	arch_cleanup_before_linux();
 
 	/*
 	 * Turn off I-cache and invalidate it
-- 
1.7.12.4



More information about the U-Boot mailing list