[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/platform/qsd8k/arch_init.S b/platform/qsd8k/arch_init.S
index a9deb41..1e93696 100644
--- a/platform/qsd8k/arch_init.S
+++ b/platform/qsd8k/arch_init.S
@@ -198,7 +198,7 @@
LDR r5, =0
//; routine complete
- BX LR
+ B _cpu_early_init_complete
//; L1 SA settings according to LVT speed
PVR0F0_0bits:
@@ -406,15 +406,15 @@
//; Make sure Link stack is initialized with branch and links to sequential addresses
//; This aids in creating a predictable startup environment
-//; BL SEQ1
-//;SEQ1: BL SEQ2
-//;SEQ2: BL SEQ3
-//;SEQ3: BL SEQ4
-//;SEQ4: BL SEQ5
-//;SEQ5: BL SEQ6
-//;SEQ6: BL SEQ7
-//;SEQ7: BL SEQ8
-//;SEQ8:
+ BL SEQ1
+SEQ1: BL SEQ2
+SEQ2: BL SEQ3
+SEQ3: BL SEQ4
+SEQ4: BL SEQ5
+SEQ5: BL SEQ6
+SEQ6: BL SEQ7
+SEQ7: BL SEQ8
+SEQ8:
//; REMOVE FOLLOWING THREE INSTRUCTIONS WHEN POWER COLLAPSE IS ENA
//;Make sure the DBGOSLSR[LOCK] bit is cleared to allow access to the debug registers