2 * linux/arch/arm/lib/io-writesb.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>
33 .Loutsb_align: rsb ip, ip, #4
47 teq r2, #0 @ do we have to check for the zero len?
53 stmfd sp!, {r4, r5, lr}
58 .Loutsb_16_lp: ldmia r1!, {r3, r4, r5, ip}
67 ldmeqfd sp!, {r4, r5, pc}
69 .Loutsb_no_16: tst r2, #8
76 .Loutsb_no_8: tst r2, #4
82 .Loutsb_no_4: ands r2, r2, #3
83 ldmeqfd sp!, {r4, r5, pc}
93 ldmfd sp!, {r4, r5, pc}
94 ENDPROC(__raw_writesb)