From af76f46c84703c90c4939012a7614baf5ecc999e Mon Sep 17 00:00:00 2001 From: jethead71 Date: Sat, 15 May 2010 15:51:47 +0000 Subject: [PATCH] i.MX31: Issue some NOP's immediately after MCR WFI to prevent premature execution of subsequent code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26058 a1c6a512-1295-4272-9138-f99709370657 --- firmware/thread.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/thread.c b/firmware/thread.c index d3031d55e..54d966ffe 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -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(); -- 2.11.4.GIT