1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/arm/lib/io-writesb.S
5 * Copyright (C) 1995-2000 Russell King
7 #include <linux/linkage.h>
8 #include <asm/assembler.h>
30 .Loutsb_align: rsb ip, ip, #4
44 teq r2, #0 @ do we have to check for the zero len?
50 stmfd sp!, {r4, r5, lr}
55 .Loutsb_16_lp: ldmia r1!, {r3, r4, r5, ip}
64 ldmfdeq sp!, {r4, r5, pc}
66 .Loutsb_no_16: tst r2, #8
73 .Loutsb_no_8: tst r2, #4
79 .Loutsb_no_4: ands r2, r2, #3
80 ldmfdeq sp!, {r4, r5, pc}
90 ldmfd sp!, {r4, r5, pc}
91 ENDPROC(__raw_writesb)