summaryrefslogtreecommitdiff
path: root/firmware/thread.c
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2006-02-08 21:30:35 +0000
committerThom Johansen <thomj@rockbox.org>2006-02-08 21:30:35 +0000
commit0a952512c3d2d80dc1508b16ed307f43008ce012 (patch)
tree1accce078f18f488e2ccbfcd967d975cfe887a45 /firmware/thread.c
parent73a28d1e9330546b81651dc5158fa4712d44ed58 (diff)
downloadrockbox-0a952512c3d2d80dc1508b16ed307f43008ce012.tar.gz
rockbox-0a952512c3d2d80dc1508b16ed307f43008ce012.zip
Sleep PP5020 CPU on idle.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8632 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/thread.c')
-rw-r--r--firmware/thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/thread.c b/firmware/thread.c
index 2dd4a9539c..7cde9f5e9f 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -268,6 +268,10 @@ void switch_thread(void)
268#elif CONFIG_CPU == SH7034 268#elif CONFIG_CPU == SH7034
269 and_b(0x7F, &SBYCR); 269 and_b(0x7F, &SBYCR);
270 asm volatile ("sleep"); 270 asm volatile ("sleep");
271#elif CONFIG_CPU == PP5020
272 /* This should sleep the CPU. It appears to wake by itself on
273 interrupts */
274 CPU_CTL = 0x80000000;
271#elif CONFIG_CPU == TCC730 275#elif CONFIG_CPU == TCC730
272 /* Sleep mode is triggered by the SYS instr on CalmRisc16. 276 /* Sleep mode is triggered by the SYS instr on CalmRisc16.
273 * Unfortunately, the manual doesn't specify which arg to use. 277 * Unfortunately, the manual doesn't specify which arg to use.