diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-04-20 17:53:05 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-04-20 17:53:05 +0000 |
commit | cea07eb2a4ddb72d084c7085192521613004a997 (patch) | |
tree | adbcaeac857c7fd10fa5f89f7acff0728f75f447 /firmware/panic.c | |
parent | 02bfba6c616a4e4aedf0e36d742598c36334e228 (diff) | |
download | rockbox-cea07eb2a4ddb72d084c7085192521613004a997.tar.gz 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.c | 5 |
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, ...) | |||
101 | /* try to restart firmware if ON is pressed */ | 101 | /* try to restart firmware if ON is pressed */ |
102 | #if defined (CPU_PP) | 102 | #if defined (CPU_PP) |
103 | /* For now, just sleep the core */ | 103 | /* For now, just sleep the core */ |
104 | if (CURRENT_CORE == CPU) | 104 | sleep_core(CURRENT_CORE); |
105 | CPU_CTL = PROC_SLEEP; | ||
106 | else | ||
107 | COP_CTL = PROC_SLEEP; | ||
108 | #define system_reboot() nop | 105 | #define system_reboot() nop |
109 | #elif defined (TOSHIBA_GIGABEAT_F) | 106 | #elif defined (TOSHIBA_GIGABEAT_F) |
110 | if ((GPGDAT & (1 << 0)) != 0) | 107 | if ((GPGDAT & (1 << 0)) != 0) |