mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
601fd3c3af
commit
90ea991dff
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue