summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorDaniel Ankers <dan@weirdo.org.uk>2007-02-27 22:55:12 +0000
committerDaniel Ankers <dan@weirdo.org.uk>2007-02-27 22:55:12 +0000
commitb856636f85c37b4a07cd00c7ef4395ba0b81e2ab (patch)
treee9d6656b7f743a3038de35af8d13bf473fd6346c /apps/main.c
parente7469e2f43e43521d43b4955597ca48d9b39abd3 (diff)
downloadrockbox-b856636f85c37b4a07cd00c7ef4395ba0b81e2ab.tar.gz
rockbox-b856636f85c37b4a07cd00c7ef4395ba0b81e2ab.zip
Improved RoLo support for PortalPlayer - handles the COP correctly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12511 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c
index a912e07566..0dec816d77 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -549,10 +549,15 @@ void cop_main(void)
549 so it should not be assumed that the coprocessor be usable even on 549 so it should not be assumed that the coprocessor be usable even on
550 platforms which support it. 550 platforms which support it.
551 551
552 At present all we do is send the COP to sleep if anything wakes it. */ 552 At present the COP sleeps unless it receives a message from the CPU telling
553 while(1) { 553 it that we are loading a new kernel, so must reboot */
554
555 extern volatile unsigned char cpu_message;
556
557 while(cpu_message != COP_REBOOT) {
554 COP_CTL = PROC_SLEEP; 558 COP_CTL = PROC_SLEEP;
555 } 559 }
560 rolo_restart_cop();
556} 561}
557#endif 562#endif
558 563