.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/arch/arm/lib/io-readsw-armv4.S |
---|
3 | 4 | * |
---|
4 | 5 | * 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 | 6 | */ |
---|
10 | 7 | #include <linux/linkage.h> |
---|
11 | 8 | #include <asm/assembler.h> |
---|
.. | .. |
---|
76 | 73 | pack r3, r3, ip |
---|
77 | 74 | str r3, [r1], #4 |
---|
78 | 75 | |
---|
79 | | -.Lno_insw_2: ldrneh r3, [r0] |
---|
80 | | - strneh r3, [r1] |
---|
| 76 | +.Lno_insw_2: ldrhne r3, [r0] |
---|
| 77 | + strhne r3, [r1] |
---|
81 | 78 | |
---|
82 | 79 | ldmfd sp!, {r4, r5, pc} |
---|
83 | 80 | |
---|
.. | .. |
---|
94 | 91 | #endif |
---|
95 | 92 | |
---|
96 | 93 | .Linsw_noalign: stmfd sp!, {r4, lr} |
---|
97 | | - ldrccb ip, [r1, #-1]! |
---|
| 94 | + ldrbcc ip, [r1, #-1]! |
---|
98 | 95 | bcc 1f |
---|
99 | 96 | |
---|
100 | 97 | ldrh ip, [r0] |
---|
.. | .. |
---|
121 | 118 | |
---|
122 | 119 | 3: tst r2, #1 |
---|
123 | 120 | strb ip, [r1], #1 |
---|
124 | | - ldrneh ip, [r0] |
---|
| 121 | + ldrhne ip, [r0] |
---|
125 | 122 | _BE_ONLY_( movne ip, ip, ror #8 ) |
---|
126 | | - strneb ip, [r1], #1 |
---|
| 123 | + strbne ip, [r1], #1 |
---|
127 | 124 | _LE_ONLY_( movne ip, ip, lsr #8 ) |
---|
128 | 125 | _BE_ONLY_( movne ip, ip, lsr #24 ) |
---|
129 | | - strneb ip, [r1] |
---|
| 126 | + strbne ip, [r1] |
---|
130 | 127 | ldmfd sp!, {r4, pc} |
---|
131 | 128 | ENDPROC(__raw_readsw) |
---|