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>
12 #include <asm/hardware.h>
15 adr r0, .outsw_bad_align_msg
19 .asciz "outsw: bad buffer alignment (0x%p, lr=0x%08lX)\n"
22 .outsw_align: tst r1, #1
23 bne .outsw_bad_alignment
29 RETINSTR(moveq, pc, lr)
32 teq r2, #0 @ do we have to check for the zero len?
37 stmfd sp!, {r4, r5, lr}
42 .outsw_8_lp: ldmia r1!, {r3, r4, r5, ip}
61 LOADREGS(eqfd, sp!, {r4, r5, pc})
63 .no_outsw_8: tst r2, #4
74 .no_outsw_4: tst r2, #2
82 .no_outsw_2: tst r2, #1
86 LOADREGS(fd, sp!, {r4, r5, pc})