All pastes #258268 Raw Edit

Unnamed

public text v1 · immutable
#258268 ·published 2006-11-26 10:28 UTC
rendered paste body
diff --git a/firmware/target/arm/crt0-pp.S b/firmware/target/arm/crt0-pp.S
index 0f915d5..a9c3781 100644
--- a/firmware/target/arm/crt0-pp.S
+++ b/firmware/target/arm/crt0-pp.S
@@ -163,6 +163,12 @@ #ifndef STUB
 #endif /* !STUB */
 #endif /* !BOOTLOADER */

+#ifdef BOOTLOADER
+    ldr    r1, =CACHE_CTRL
+    mov    r2, #0x0
+    str    r2, [r1]
+#endif
+
     /* Initialise bss section to zero */
     ldr    r2, =_edata
     ldr    r3, =_end
@@ -252,6 +258,14 @@ start_loc:
     mov    r3, #WAKE
     str    r3, [r4]

+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+
     /* jump to start location */
     mov    pc, r0