diff options
| author | Dave Chapman <dave@dchapman.com> | 2006-01-28 20:33:57 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2006-01-28 20:33:57 +0000 |
| commit | b9e10d9a07e0cd96de0212ba51f0751e1942f370 (patch) | |
| tree | 15ead5836f794e3a9f9de5aaa69d1076153b37f5 /firmware/export | |
| parent | 05411983c74c6056387b92717e573eab7d79bb9e (diff) | |
| download | rockbox-b9e10d9a07e0cd96de0212ba51f0751e1942f370.zip rockbox-b9e10d9a07e0cd96de0212ba51f0751e1942f370.tar.gz rockbox-b9e10d9a07e0cd96de0212ba51f0751e1942f370.tar.bz2 rockbox-b9e10d9a07e0cd96de0212ba51f0751e1942f370.tar.xz | |
iPod: First working audio driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8474 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/system.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index 4511911..0434425 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -341,6 +341,17 @@ static inline int set_irq_level(int level) return (cpsr >> 7) & 1; } +static inline void enable_fiq(void) +{ + /* enable FIQ */ + asm volatile ( + "mrs r0, cpsr \n"\ + "bic r0, r0, #0x40 \n"\ + "msr cpsr_c, r0 " + : : : "r0" + ); +} + #define invalidate_icache() #if CONFIG_CPU == PNX0101 |