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.zip rockbox-95167e01773dcfe8e5c1b356cfa1ea4b3a55441b.tar.gz rockbox-95167e01773dcfe8e5c1b356cfa1ea4b3a55441b.tar.bz2 rockbox-95167e01773dcfe8e5c1b356cfa1ea4b3a55441b.tar.xz | |
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 7ece27f..9705293 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -802,6 +802,16 @@ static inline void core_sleep(void) ); enable_irq(); } +#elif CONFIG_CPU == DM320 +static inline void core_sleep(void) +{ + asm volatile ( + "mov r0, #0 \n" + "mcr p15, 0, r0, c7, c0, 4 \n" /* Wait for interrupt */ + : : : "r0" + ); + enable_irq(); +} #else static inline void core_sleep(void) { |