summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-09-28 17:24:29 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-09-28 17:24:29 +0000
commit869de4d10aaf549f2f948676179d1c9f71d78049 (patch)
tree984c3c31c802a313c609c6a86fa348a58b2dfa13
parent84b81bc3ba6d1deed78c22fc7a559c5d6b54eefc (diff)
downloadrockbox-869de4d10aaf549f2f948676179d1c9f71d78049.tar.gz
rockbox-869de4d10aaf549f2f948676179d1c9f71d78049.zip
Oops. Can't wait for COP init in the bootloader because it is kept asleep until the firmware is ready to be run.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14888 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/thread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/thread.c b/firmware/thread.c
index b37a99237d..1875650050 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -1085,11 +1085,14 @@ void init_threads(void)
1085#if NUM_CORES > 1 /* This code path will not be run on single core targets */ 1085#if NUM_CORES > 1 /* This code path will not be run on single core targets */
1086 /* Mark CPU initialized */ 1086 /* Mark CPU initialized */
1087 cores[CPU].kernel_running = true; 1087 cores[CPU].kernel_running = true;
1088 /* Do _not_ wait for the COP to init in the bootloader because it doesn't */
1089#ifndef BOOTLOADER
1088 /* TODO: HAL interface for this */ 1090 /* TODO: HAL interface for this */
1089 /* Wake up coprocessor and let it initialize kernel and threads */ 1091 /* Wake up coprocessor and let it initialize kernel and threads */
1090 COP_CTL = PROC_WAKE; 1092 COP_CTL = PROC_WAKE;
1091 /* Sleep until finished */ 1093 /* Sleep until finished */
1092 CPU_CTL = PROC_SLEEP; 1094 CPU_CTL = PROC_SLEEP;
1095#endif
1093 } 1096 }
1094 else 1097 else
1095 { 1098 {