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:
Michael Sevakis 2007-08-05 12:32:34 +00:00
parent d1af1c0c3c
commit 1ea6daf01e

View file

@ -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;