2 * linux/arch/arm/lib/io-writesl.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>
14 teq r2, #0 @ do we have to check for the zero len?
22 1: ldmia r1!, {r3, r4, ip, lr}
30 2: movs r2, r2, lsl #31
44 4: mov ip, r3, pull #16
47 orr ip, ip, r3, push #16
52 5: mov ip, r3, pull #8
55 orr ip, ip, r3, push #24
60 6: mov ip, r3, pull #24
63 orr ip, ip, r3, push #8
67 ENDPROC(__raw_writesl)