forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/arm/mm/cache-v6.S
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * linux/arch/arm/mm/cache-v6.S
34 *
45 * Copyright (C) 2001 Deep Blue Solutions Ltd.
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.
96 *
107 * This is the "shell" of the ARMv6 processor support.
118 */
....@@ -215,8 +212,8 @@
215212 #endif
216213 tst r1, #D_CACHE_LINE_SIZE - 1
217214 #ifdef CONFIG_DMA_CACHE_RWFO
218
- ldrneb r2, [r1, #-1] @ read for ownership
219
- strneb r2, [r1, #-1] @ write for ownership
215
+ ldrbne r2, [r1, #-1] @ read for ownership
216
+ strbne r2, [r1, #-1] @ write for ownership
220217 #endif
221218 bic r1, r1, #D_CACHE_LINE_SIZE - 1
222219 #ifdef HARVARD_CACHE
....@@ -284,8 +281,8 @@
284281 add r0, r0, #D_CACHE_LINE_SIZE
285282 cmp r0, r1
286283 #ifdef CONFIG_DMA_CACHE_RWFO
287
- ldrlob r2, [r0] @ read for ownership
288
- strlob r2, [r0] @ write for ownership
284
+ ldrblo r2, [r0] @ read for ownership
285
+ strblo r2, [r0] @ write for ownership
289286 #endif
290287 blo 1b
291288 mov r0, #0