diff options
| author | Daniel Ankers <dan@weirdo.org.uk> | 2007-02-27 22:55:12 +0000 |
|---|---|---|
| committer | Daniel Ankers <dan@weirdo.org.uk> | 2007-02-27 22:55:12 +0000 |
| commit | b856636f85c37b4a07cd00c7ef4395ba0b81e2ab (patch) | |
| tree | e9d6656b7f743a3038de35af8d13bf473fd6346c /apps | |
| parent | e7469e2f43e43521d43b4955597ca48d9b39abd3 (diff) | |
| download | rockbox-b856636f85c37b4a07cd00c7ef4395ba0b81e2ab.zip rockbox-b856636f85c37b4a07cd00c7ef4395ba0b81e2ab.tar.gz rockbox-b856636f85c37b4a07cd00c7ef4395ba0b81e2ab.tar.bz2 rockbox-b856636f85c37b4a07cd00c7ef4395ba0b81e2ab.tar.xz | |
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')
| -rw-r--r-- | apps/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c index a912e07..0dec816 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 |