2 * linux/arch/arm/lib/io-readsl.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>
14 teq r2, #0 @ do we have to check for the zero len?
27 stmia r1!, {r3, r4, ip, lr}
30 2: movs r2, r2, lsl #31
40 mov ip, r3, get_byte_0
43 mov ip, r3, get_byte_1
46 mov ip, r3, get_byte_2
50 mov ip, r3, lspull #24
52 orrne ip, ip, r3, lspush #8
58 mov ip, r3, lspull #16
60 orrne ip, ip, r3, lspush #16
68 orrne ip, ip, r3, lspush #24
72 mov r3, ip, get_byte_2
74 7: mov r3, ip, get_byte_1
76 8: mov r3, ip, get_byte_0