1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/arm/lib/io-writesl.S
5 * Copyright (C) 1995-2000 Russell King
7 #include <linux/linkage.h>
8 #include <asm/assembler.h>
11 teq r2, #0 @ do we have to check for the zero len?
19 1: ldmia r1!, {r3, r4, ip, lr}
27 2: movs r2, r2, lsl #31
41 4: mov ip, r3, lspull #16
44 orr ip, ip, r3, lspush #16
49 5: mov ip, r3, lspull #8
52 orr ip, ip, r3, lspush #24
57 6: mov ip, r3, lspull #24
60 orr ip, ip, r3, lspush #8
64 ENDPROC(__raw_writesl)