summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2006-02-23 11:31:55 +0000
committerThom Johansen <thomj@rockbox.org>2006-02-23 11:31:55 +0000
commit52774bcfbcdd4b3b26235946c6630da6e5ab07ae (patch)
tree3249f8b7a161c25cb6bf679dd43c7b248e5d6624 /firmware
parentfa9c5c06566c143a8d4499d55fa13ec573a9d7bc (diff)
downloadrockbox-52774bcfbcdd4b3b26235946c6630da6e5ab07ae.tar.gz
rockbox-52774bcfbcdd4b3b26235946c6630da6e5ab07ae.tar.bz2
rockbox-52774bcfbcdd4b3b26235946c6630da6e5ab07ae.zip
Shave off one instruction in fiq handler!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8804 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/pcm_playback.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/pcm_playback.c b/firmware/pcm_playback.c
index 11cd4cc2ba..daa2e2a496 100644
--- a/firmware/pcm_playback.c
+++ b/firmware/pcm_playback.c
@@ -550,8 +550,7 @@ void fiq(void)
"bne .loop \n\t" /* yes, continue to try feeding FIFO */
".dma_stop: \n\t" /* no more data, do dma_stop() and exit */
"ldr r10, =pcm_playing\n\t"
- "mov r12, #0 \n\t"
- "strb r12, [r10] \n\t" /* pcm_playing = false */
+ "strb r8, [r10] \n\t" /* pcm_playing = false (r8=0, look above) */
"ldr r10, =0x70002800 \n\t" /* r10 = IISCONFIG */
"ldr r11, [r10] \n\t"
"bic r11, r11, #0x20000002\n\t" /* disable playback FIFO and IRQ */
@@ -560,7 +559,7 @@ void fiq(void)
"orr r10, r10, #0x40 \n\t" /* disable FIQ */
"msr cpsr_c, r10 \n\t"
"ldr r10, =pcm_paused \n\t"
- "strb r12, [r10] \n\t" /* pcm_paused = false */
+ "strb r8, [r10] \n\t" /* pcm_paused = false */
".exit: \n\t"
"ldr r10, =p_size \n\t" /* save back p_size and p, then exit */
"ldr r11, =p \n\t"