diff options
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 | { |