summaryrefslogtreecommitdiff
path: root/firmware/target/arm/lcd-as-memframe.S
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/lcd-as-memframe.S')
-rw-r--r--firmware/target/arm/lcd-as-memframe.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/target/arm/lcd-as-memframe.S b/firmware/target/arm/lcd-as-memframe.S
index 87cbb611ca..dccc947649 100644
--- a/firmware/target/arm/lcd-as-memframe.S
+++ b/firmware/target/arm/lcd-as-memframe.S
@@ -28,7 +28,7 @@
28 * void lcd_copy_buffer_rect(fb_data *dst, fb_data *src, int width, 28 * void lcd_copy_buffer_rect(fb_data *dst, fb_data *src, int width,
29 * int height); 29 * int height);
30 */ 30 */
31 .section .icode, "ax", %progbits 31 .section .icode.lcd_copy_buffer_rect, "ax", %progbits
32 .align 2 32 .align 2
33 .global lcd_copy_buffer_rect 33 .global lcd_copy_buffer_rect
34 .type lcd_copy_buffer_rect, %function 34 .type lcd_copy_buffer_rect, %function
@@ -55,7 +55,7 @@ lcd_copy_buffer_rect: @
55 @ align (rw) 55 @ align (rw)
56 and r14, r14, #0xe @ r14 = 0 (16), 2, 4, 6, 8, 10, 12, 14 56 and r14, r14, #0xe @ r14 = 0 (16), 2, 4, 6, 8, 10, 12, 14
57 add pc, pc, r14, lsl #3 @ branch to 32-byte align 57 add pc, pc, r14, lsl #3 @ branch to 32-byte align
58 nop @ 58 nop @
59 b 30f @ rw % 16 = 0 or 1? use octword loop 59 b 30f @ rw % 16 = 0 or 1? use octword loop
60 nop @ 60 nop @
61 nop @ 61 nop @
@@ -93,7 +93,7 @@ lcd_copy_buffer_rect: @
93 ldmia r1!, { r6-r12, r14 } @ 93 ldmia r1!, { r6-r12, r14 } @
94 subs r2, r2, #16 @ 94 subs r2, r2, #16 @
95 stmia r0!, { r6-r12, r14 } @ 95 stmia r0!, { r6-r12, r14 } @
96 bgt 30b @ octword loop @ 96 bgt 30b @ octword loop @
9740: @ finish line @ 9740: @ finish line @
98 ldreqh r6, [r1], #2 @ finish last halfword if eq ... 98 ldreqh r6, [r1], #2 @ finish last halfword if eq ...
99 add r1, r1, r4, lsl #1 @ 99 add r1, r1, r4, lsl #1 @
@@ -123,7 +123,7 @@ lcd_copy_buffer_rect: @
123 * 1 3 + > down 123 * 1 3 + > down
124 * 2 4 \/ left 124 * 2 4 \/ left
125 */ 125 */
126 .section .icode, "ax", %progbits 126 .section .icode.lcd_write_yuv420_lines, "ax", %progbits
127 .align 2 127 .align 2
128 .global lcd_write_yuv420_lines 128 .global lcd_write_yuv420_lines
129 .type lcd_write_yuv420_lines, %function 129 .type lcd_write_yuv420_lines, %function
@@ -376,7 +376,7 @@ lcd_write_yuv420_lines:
376 * 4 2 5 3 | 3 7 2 6 | 3 5 7 1 2 4 6 0 col2 \/ 376 * 4 2 5 3 | 3 7 2 6 | 3 5 7 1 2 4 6 0 col2 \/
377 * 0 6 1 7 5 1 4 0 377 * 0 6 1 7 5 1 4 0
378 */ 378 */
379 .section .icode, "ax", %progbits 379 .section .icode.lcd_write_yuv420_lines_odither, "ax", %progbits
380 .align 2 380 .align 2
381 .global lcd_write_yuv420_lines_odither 381 .global lcd_write_yuv420_lines_odither
382 .type lcd_write_yuv420_lines_odither, %function 382 .type lcd_write_yuv420_lines_odither, %function
@@ -410,7 +410,7 @@ lcd_write_yuv420_lines_odither:
410 add r12, r7, r7, asl #2 @ 410 add r12, r7, r7, asl #2 @
411 add r12, r12, r12, asl #4 @ 411 add r12, r12, r12, asl #4 @
412 add r7, r12, r7, asl #6 @ 412 add r7, r12, r7, asl #6 @
413 @ 413 @
414 sub r8, r8, #128 @ Cb -= 128 414 sub r8, r8, #128 @ Cb -= 128
415 sub r9, r9, #128 @ Cr -= 128 415 sub r9, r9, #128 @ Cr -= 128
416 @ 416 @