summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2009-07-25 00:54:31 +0000
committerDave Chapman <dave@dchapman.com>2009-07-25 00:54:31 +0000
commit332da92189eb12cb6b5570db973edd3f06852133 (patch)
treea30e0dd353ab84c49c02247b792da678f4d6a9c7 /firmware
parent5b3f333dd79394d8814a838df367b45523dc207d (diff)
downloadrockbox-332da92189eb12cb6b5570db973edd3f06852133.tar.gz
rockbox-332da92189eb12cb6b5570db973edd3f06852133.tar.bz2
rockbox-332da92189eb12cb6b5570db973edd3f06852133.zip
Oops, too many files were committed in r22025, revert this one. The other changes committed as r22025 were initial button and audio drivers for the Nano2G - more work is needed on both, but they work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22026 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/s5l8700/system-s5l8700.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/firmware/target/arm/s5l8700/system-s5l8700.c b/firmware/target/arm/s5l8700/system-s5l8700.c
index a282c45235..48c50645e9 100644
--- a/firmware/target/arm/s5l8700/system-s5l8700.c
+++ b/firmware/target/arm/s5l8700/system-s5l8700.c
@@ -96,15 +96,12 @@ void irq_handler(void)
"sub sp, sp, #8 \n"); /* Reserve stack */
int irq_no = INTOFFSET;
- int sources = SRCPND;
-
- if (irq_no==10) { INTMSK &= ~(1<<10); }
irqvector[irq_no]();
/* clear interrupt */
- SRCPND = sources;
- INTPND = sources;
+ SRCPND = (1 << irq_no);
+ INTPND = INTPND;
asm volatile( "add sp, sp, #8 \n" /* Cleanup stack */
"ldmfd sp!, {r0-r7, ip, lr} \n" /* Restore context */