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>
12 #include <asm/export.h>
15 teq r2, #0 @ do we have to check for the zero len?
28 stmia r1!, {r3, r4, ip, lr}
31 2: movs r2, r2, lsl #31
41 mov ip, r3, get_byte_0
44 mov ip, r3, get_byte_1
47 mov ip, r3, get_byte_2
51 mov ip, r3, lspull #24
53 orrne ip, ip, r3, lspush #8
59 mov ip, r3, lspull #16
61 orrne ip, ip, r3, lspush #16
69 orrne ip, ip, r3, lspush #24
73 mov r3, ip, get_byte_2
75 7: mov r3, ip, get_byte_1
77 8: mov r3, ip, get_byte_0
81 EXPORT_SYMBOL(__raw_readsl)