i.MX31: Issue some NOP's immediately after MCR WFI to prevent premature execution...
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Sat, 15 May 2010 15:51:47 +0000 (15 15:51 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Sat, 15 May 2010 15:51:47 +0000 (15 15:51 +0000)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26058 a1c6a512-1295-4272-9138-f99709370657

firmware/thread.c

index d3031d5..54d966f 100644 (file)
@@ -752,7 +752,10 @@ static void core_thread_init(unsigned int core)
 static inline void core_sleep(void)
 {
     asm volatile (
-        "mcr p15, 0, %0, c7, c0, 4" /* Wait for interrupt */
+        "mcr p15, 0, %0, c7, c0, 4 \n" /* Wait for interrupt */
+#if CONFIG_CPU == IMX31L
+        "nop\n nop\n nop\n nop\n nop\n" /* Clean out the pipes */
+#endif
         : : "r"(0)
     );
     enable_irq();