io-readsl.S (e5451c8f8330e03ad3cfa16048b4daf961af434f) io-readsl.S (4dd1837d7589f468ed109556513f476e7a7f9121)
1/*
2 * linux/arch/arm/lib/io-readsl.S
3 *
4 * Copyright (C) 1995-2000 Russell King
5 *
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.
9 */
10#include <linux/linkage.h>
11#include <asm/assembler.h>
1/*
2 * linux/arch/arm/lib/io-readsl.S
3 *
4 * Copyright (C) 1995-2000 Russell King
5 *
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.
9 */
10#include <linux/linkage.h>
11#include <asm/assembler.h>
12#include <asm/export.h>
12
13ENTRY(__raw_readsl)
14 teq r2, #0 @ do we have to check for the zero len?
15 reteq lr
16 ands ip, r1, #3
17 bne 3f
18
19 subs r2, r2, #4

--- 52 unchanged lines hidden (view full) ---

72 mov r3, ip, get_byte_2
73 strb r3, [r1, #2]
747: mov r3, ip, get_byte_1
75 strb r3, [r1, #1]
768: mov r3, ip, get_byte_0
77 strb r3, [r1, #0]
78 ret lr
79ENDPROC(__raw_readsl)
13
14ENTRY(__raw_readsl)
15 teq r2, #0 @ do we have to check for the zero len?
16 reteq lr
17 ands ip, r1, #3
18 bne 3f
19
20 subs r2, r2, #4

--- 52 unchanged lines hidden (view full) ---

73 mov r3, ip, get_byte_2
74 strb r3, [r1, #2]
757: mov r3, ip, get_byte_1
76 strb r3, [r1, #1]
778: mov r3, ip, get_byte_0
78 strb r3, [r1, #0]
79 ret lr
80ENDPROC(__raw_readsl)
81EXPORT_SYMBOL(__raw_readsl)