forked from len0rd/rockbox
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
This commit is contained in:
parent
02bfba6c61
commit
cea07eb2a4
4 changed files with 67 additions and 34 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue