summaryrefslogtreecommitdiff
path: root/firmware/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/thread.c')
-rw-r--r--firmware/thread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/firmware/thread.c b/firmware/thread.c
index 05325bb341..2281f43e53 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -769,12 +769,10 @@ void init_threads(void)
769 * probably a much better way to do this. */ 769 * probably a much better way to do this. */
770 if (core == CPU) 770 if (core == CPU)
771 { 771 {
772 THREAD_CPU_INIT(core, &cores[CPU].threads[0]);
773 cores[CPU].threads[0].stack = stackbegin; 772 cores[CPU].threads[0].stack = stackbegin;
774 cores[CPU].threads[0].stack_size = (int)stackend - (int)stackbegin; 773 cores[CPU].threads[0].stack_size = (int)stackend - (int)stackbegin;
775 } else { 774 } else {
776#if NUM_CORES > 1 /* This code path will not be run on single core targets */ 775#if NUM_CORES > 1 /* This code path will not be run on single core targets */
777 THREAD_CPU_INIT(core, &cores[COP].threads[0]);
778 cores[COP].threads[0].stack = cop_stackbegin; 776 cores[COP].threads[0].stack = cop_stackbegin;
779 cores[COP].threads[0].stack_size = 777 cores[COP].threads[0].stack_size =
780 (int)cop_stackend - (int)cop_stackbegin; 778 (int)cop_stackend - (int)cop_stackbegin;