[msm] Do not use stack before cpu_early_init for Scorpion targets
Also, reenable setting up of link stack for a predictable startup
environment.
Change-Id: I412aec6e4d2e1442020e40ae75df9ca5d3facfe0
diff --git a/arch/arm/crt0.S b/arch/arm/crt0.S
index 3a3d776..a1777f0 100644
--- a/arch/arm/crt0.S
+++ b/arch/arm/crt0.S
@@ -52,6 +52,11 @@
#if WITH_CPU_EARLY_INIT
/* call platform/arch/etc specific init code */
bl __cpu_early_init
+
+ /* declare return address as global to avoid using stack */
+.globl _cpu_early_init_complete
+ _cpu_early_init_complete:
+
#endif
#if (!ENABLE_NANDWRITE)