summaryrefslogtreecommitdiff
path: root/firmware/export/system.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-07 20:49:13 +0000
committerDave Chapman <dave@dchapman.com>2006-02-07 20:49:13 +0000
commit6099dc8b77e1b536ff47b4b74edf20f1fafda5b6 (patch)
tree904bb7a034a55d7f7eb37277a75a061f631b3afe /firmware/export/system.h
parentf5cf798db124f2b2add8044283b1c7f79b1ca720 (diff)
downloadrockbox-6099dc8b77e1b536ff47b4b74edf20f1fafda5b6.zip
rockbox-6099dc8b77e1b536ff47b4b74edf20f1fafda5b6.tar.gz
rockbox-6099dc8b77e1b536ff47b4b74edf20f1fafda5b6.tar.bz2
rockbox-6099dc8b77e1b536ff47b4b74edf20f1fafda5b6.tar.xz
iPod: Re-written audio driver. This brings it in line with changes to pcm playback system, and also appears to fix all the ipod-specific playback glitches
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8614 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r--firmware/export/system.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 380c229..e88c793 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -345,7 +345,7 @@ static inline int set_irq_level(int level)
static inline void enable_fiq(void)
{
- /* enable FIQ */
+ /* Clear FIQ disable bit */
asm volatile (
"mrs r0, cpsr \n"\
"bic r0, r0, #0x40 \n"\
@@ -354,6 +354,17 @@ static inline void enable_fiq(void)
);
}
+static inline void disable_fiq(void)
+{
+ /* Set FIQ disable bit */
+ asm volatile (
+ "mrs r0, cpsr \n"\
+ "orr r0, r0, #0x40 \n"\
+ "msr cpsr_c, r0 "
+ : : : "r0"
+ );
+}
+
#define invalidate_icache()
#if CONFIG_CPU == PNX0101