From b856636f85c37b4a07cd00c7ef4395ba0b81e2ab Mon Sep 17 00:00:00 2001 From: Daniel Ankers Date: Tue, 27 Feb 2007 22:55:12 +0000 Subject: Improved RoLo support for PortalPlayer - handles the COP correctly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12511 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'apps') 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) so it should not be assumed that the coprocessor be usable even on platforms which support it. - At present all we do is send the COP to sleep if anything wakes it. */ - while(1) { + At present the COP sleeps unless it receives a message from the CPU telling + it that we are loading a new kernel, so must reboot */ + + extern volatile unsigned char cpu_message; + + while(cpu_message != COP_REBOOT) { COP_CTL = PROC_SLEEP; } + rolo_restart_cop(); } #endif -- cgit v1.2.3