summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-05-10 20:35:57 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-05-10 20:35:57 +0000
commit7d21e5ab32ef24724c201b5ffc4df3a2637966e7 (patch)
tree726bab88f2f3f3849eca32e562f55cd7389e6673 /firmware
parent18b5488a4a5c84e64f1d45537ee0e46055f83482 (diff)
No need to use alternating registers for dual register read/write sequence. Correct comment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25939 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/ipod/video/lcd-as-video.S11
1 files changed, 5 insertions, 6 deletions
diff --git a/firmware/target/arm/ipod/video/lcd-as-video.S b/firmware/target/arm/ipod/video/lcd-as-video.S
index 21a04a6529..fa88dbc940 100644
--- a/firmware/target/arm/ipod/video/lcd-as-video.S
+++ b/firmware/target/arm/ipod/video/lcd-as-video.S
@@ -26,8 +26,7 @@
* int pixelcount);
*
* Writes pixelcount pixels from src-pointer (lcd_framebuffer) to BCM dataport.
- * Use the sequence ld 2, wr 2, ld 2, wr 2 with alternating registers for best
- * performance.
+ * Use the sequence 2:2:2:2 (2 = read/write 2 regs) for best performance.
*/
.align 2
.global lcd_write_data
@@ -41,12 +40,12 @@ lcd_write_data: /* r1 = pixel count, must be even */
.loop16:
ldmgeia r0!, {r2-r3}
stmgeia lr, {r2-r3}
- ldmgeia r0!, {r4, r12}
- stmgeia lr, {r4, r12}
ldmgeia r0!, {r2-r3}
stmgeia lr, {r2-r3}
- ldmgeia r0!, {r4, r12}
- stmgeia lr, {r4, r12}
+ ldmgeia r0!, {r2-r3}
+ stmgeia lr, {r2-r3}
+ ldmgeia r0!, {r2-r3}
+ stmgeia lr, {r2-r3}
subges r1, r1, #16
bge .loop16