summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-04-20 17:53:05 +0000
committerJens Arnold <amiconn@rockbox.org>2008-04-20 17:53:05 +0000
commitcea07eb2a4ddb72d084c7085192521613004a997 (patch)
treeadbcaeac857c7fd10fa5f89f7acff0728f75f447 /apps/main.c
parent02bfba6c616a4e4aedf0e36d742598c36334e228 (diff)
Fix freezing of some builds on PP5002. The PP5002 needs the not-sleep-at 0xNNNNNNN0-addresses fix everywhere when caching is enabled, not only in core_sleep(). Introduced a pair of inline functions to sleep and wake cores on PP for consistency.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17192 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/main.c b/apps/main.c
index 47af3ab07a..8b1e2e4556 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -604,7 +604,7 @@ void cop_main(void)
/* This should never be reached */
#endif
while(1) {
- COP_CTL = PROC_SLEEP;
+ sleep_core(COP);
}
}
#endif /* CPU_PP */