summaryrefslogtreecommitdiffstats
path: root/firmware/panic.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 /firmware/panic.c
parent02bfba6c616a4e4aedf0e36d742598c36334e228 (diff)
downloadrockbox-cea07eb2a4ddb72d084c7085192521613004a997.tar.gz
rockbox-cea07eb2a4ddb72d084c7085192521613004a997.tar.bz2
rockbox-cea07eb2a4ddb72d084c7085192521613004a997.zip
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 'firmware/panic.c')
-rw-r--r--firmware/panic.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index 0ac458953b..c61476c423 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -101,10 +101,7 @@ void panicf( const char *fmt, ...)
/* try to restart firmware if ON is pressed */
#if defined (CPU_PP)
/* For now, just sleep the core */
- if (CURRENT_CORE == CPU)
- CPU_CTL = PROC_SLEEP;
- else
- COP_CTL = PROC_SLEEP;
+ sleep_core(CURRENT_CORE);
#define system_reboot() nop
#elif defined (TOSHIBA_GIGABEAT_F)
if ((GPGDAT & (1 << 0)) != 0)