Perform writeback before starting thread on another core or stack munging may not be coherent.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14194 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d1af1c0c3c
commit
1ea6daf01e
1 changed files with 4 additions and 0 deletions
|
@ -888,6 +888,10 @@ struct thread_entry*
|
|||
|
||||
#if NUM_CORES > 1
|
||||
thread->core = core;
|
||||
|
||||
/* Writeback stack munging or anything else before starting */
|
||||
if (core != CURRENT_CORE)
|
||||
flush_icache();
|
||||
#endif
|
||||
|
||||
regs = &thread->context;
|
||||
|
|
Loading…
Reference in a new issue