1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/arm/lib/io-readsl.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?
24 stmia r1!, {r3, r4, ip, lr}
27 2: movs r2, r2, lsl #31
37 mov ip, r3, get_byte_0
40 mov ip, r3, get_byte_1
43 mov ip, r3, get_byte_2
47 mov ip, r3, lspull #24
49 orrne ip, ip, r3, lspush #8
55 mov ip, r3, lspull #16
57 orrne ip, ip, r3, lspush #16
65 orrne ip, ip, r3, lspush #24
69 mov r3, ip, get_byte_2
71 7: mov r3, ip, get_byte_1
73 8: mov r3, ip, get_byte_0