2 * linux/arch/arm/lib/io-writesw-armv3.S
4 * Copyright (C) 1995-2000 Russell King
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 #include <linux/linkage.h>
11 #include <asm/assembler.h>
13 .Loutsw_bad_alignment:
14 adr r0, .Loutsw_bad_align_msg
17 .Loutsw_bad_align_msg:
18 .asciz "outsw: bad buffer alignment (0x%p, lr=0x%08lX)\n"
21 .Loutsw_align: tst r1, #1
22 bne .Loutsw_bad_alignment
28 orr r3, r3, r3, lsl #16
34 teq r2, #0 @ do we have to check for the zero len?
39 stmfd sp!, {r4, r5, r6, lr}
44 .Loutsw_8_lp: ldmia r1!, {r3, r4, r5, r6}
47 orr ip, ip, ip, lsr #16
51 orr ip, ip, ip, lsl #16
55 orr ip, ip, ip, lsr #16
59 orr ip, ip, ip, lsl #16
63 orr ip, ip, ip, lsr #16
67 orr ip, ip, ip, lsl #16
71 orr ip, ip, ip, lsr #16
75 orr ip, ip, ip, lsl #16
82 ldmeqfd sp!, {r4, r5, r6, pc}
84 .Lno_outsw_8: tst r2, #4
90 orr ip, ip, ip, lsr #16
94 orr ip, ip, ip, lsl #16
98 orr ip, ip, ip, lsr #16
102 orr ip, ip, ip, lsl #16
105 .Lno_outsw_4: tst r2, #2
111 orr ip, ip, ip, lsr #16
115 orr ip, ip, ip, lsl #16
118 .Lno_outsw_2: tst r2, #1
122 movne ip, r3, lsl #16
123 orrne ip, ip, ip, lsr #16
126 ldmfd sp!, {r4, r5, r6, pc}