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
This commit is contained in:
Michael Sevakis 2010-05-15 15:51:47 +00:00
parent 601fd3c3af
commit 90ea991dff

View 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();