2 * linux/arch/arm/lib/io-writesw-armv4.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>
25 .outsw_align: movs ip, r1, lsl #31
38 stmfd sp!, {r4, r5, lr}
43 .outsw_8_lp: ldmia r1!, {r3, r4, r5, ip}
51 .no_outsw_8: tst r2, #4
58 .no_outsw_4: movs r2, r2, lsl #31
64 .no_outsw_2: ldrneh r3, [r1]
67 ldmfd sp!, {r4, r5, pc}
70 #define pull_hbyte0 lsl #8
71 #define push_hbyte1 lsr #24
73 #define pull_hbyte0 lsr #24
74 #define push_hbyte1 lsl #8
77 .outsw_noalign: ldr r3, [r1, -r3]!
85 2: mov ip, r3, pull_hbyte0
88 orr ip, ip, r3, push_hbyte1
93 2: movne ip, r3, lsr #8