From cea07eb2a4ddb72d084c7085192521613004a997 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 20 Apr 2008 17:53:05 +0000 Subject: 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 --- firmware/panic.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'firmware/panic.c') 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) -- cgit