diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2008-11-09 23:56:54 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-11-09 23:56:54 +0000 |
commit | 22ae232db2d62c47c512ca800253e1609f31c336 (patch) | |
tree | d4b58ff190971158d7d84ca90e98fb0bbe1f855a /firmware | |
parent | 7ddaaf074bce5b02f4c777895767aa33eae65d22 (diff) | |
download | rockbox-22ae232db2d62c47c512ca800253e1609f31c336.tar.gz rockbox-22ae232db2d62c47c512ca800253e1609f31c336.zip |
core_sleep(): only write once the same implementation, and add as3525 to the list
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19057 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/thread.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index 23463f596c..c500fc4818 100644 --- a/firmware/thread.c +++ b/firmware/thread.c | |||
@@ -777,28 +777,9 @@ static inline void core_sleep(void) | |||
777 | "msr cpsr_c, r0 \n" /* Enable IRQ, restore FIQ */ | 777 | "msr cpsr_c, r0 \n" /* Enable IRQ, restore FIQ */ |
778 | : : : "r0", "r1", "r2"); | 778 | : : : "r0", "r1", "r2"); |
779 | } | 779 | } |
780 | #elif defined(CPU_TCC780X) || defined(CPU_TCC77X) | 780 | #elif defined(CPU_TCC780X) || defined(CPU_TCC77X) /* Single core only for now */ \ |
781 | static inline void core_sleep(void) | 781 | || CONFIG_CPU == IMX31L || CONFIG_CPU == DM320 || CONFIG_CPU == AS3525 |
782 | { | 782 | /* Use the generic ARMv4/v5 wait for IRQ */ |
783 | /* Single core only for now. Use the generic ARMv5 wait for IRQ */ | ||
784 | asm volatile ( | ||
785 | "mov r0, #0 \n" | ||
786 | "mcr p15, 0, r0, c7, c0, 4 \n" /* Wait for interrupt */ | ||
787 | : : : "r0" | ||
788 | ); | ||
789 | enable_irq(); | ||
790 | } | ||
791 | #elif CONFIG_CPU == IMX31L | ||
792 | static inline void core_sleep(void) | ||
793 | { | ||
794 | asm volatile ( | ||
795 | "mov r0, #0 \n" | ||
796 | "mcr p15, 0, r0, c7, c0, 4 \n" /* Wait for interrupt */ | ||
797 | : : : "r0" | ||
798 | ); | ||
799 | enable_irq(); | ||
800 | } | ||
801 | #elif CONFIG_CPU == DM320 | ||
802 | static inline void core_sleep(void) | 783 | static inline void core_sleep(void) |
803 | { | 784 | { |
804 | asm volatile ( | 785 | asm volatile ( |