summaryrefslogtreecommitdiff
path: root/firmware/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/thread.c')
-rw-r--r--firmware/thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/thread.c b/firmware/thread.c
index eba27b7..a4981af 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -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;