From 6099dc8b77e1b536ff47b4b74edf20f1fafda5b6 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 7 Feb 2006 20:49:13 +0000 Subject: 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 --- firmware/export/system.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'firmware/export') diff --git a/firmware/export/system.h b/firmware/export/system.h index 380c229f1d..e88c793fae 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 -- cgit v1.2.3