diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-04-24 20:08:28 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-04-24 20:08:28 +0000 |
commit | 95167e01773dcfe8e5c1b356cfa1ea4b3a55441b (patch) | |
tree | 8b5312c5f1d1ecc8231bf8e14a1eb1678474bf8a /firmware/thread.c | |
parent | 46b492861152af9b91d3ab65ef0e5e14c876c3fc (diff) | |
download | rockbox-95167e01773dcfe8e5c1b356cfa1ea4b3a55441b.tar.gz rockbox-95167e01773dcfe8e5c1b356cfa1ea4b3a55441b.zip |
Commit whole Creative Zen Vision:M target tree + all related firmware/
changes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17241 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/thread.c')
-rw-r--r-- | firmware/thread.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index 7ece27f4a6..9705293e9e 100644 --- a/firmware/thread.c +++ b/firmware/thread.c | |||
@@ -802,6 +802,16 @@ static inline void core_sleep(void) | |||
802 | ); | 802 | ); |
803 | enable_irq(); | 803 | enable_irq(); |
804 | } | 804 | } |
805 | #elif CONFIG_CPU == DM320 | ||
806 | static inline void core_sleep(void) | ||
807 | { | ||
808 | asm volatile ( | ||
809 | "mov r0, #0 \n" | ||
810 | "mcr p15, 0, r0, c7, c0, 4 \n" /* Wait for interrupt */ | ||
811 | : : : "r0" | ||
812 | ); | ||
813 | enable_irq(); | ||
814 | } | ||
805 | #else | 815 | #else |
806 | static inline void core_sleep(void) | 816 | static inline void core_sleep(void) |
807 | { | 817 | { |