forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/arm/mm/copypage-v4wt.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mm/copypage-v4wt.S
34 *
45 * Copyright (C) 1995-1999 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.
96 *
107 * This is for CPUs with a writethrough cache and 'flush ID cache' is
118 * the only supported cache operation.
....@@ -25,6 +22,7 @@
2522 int tmp;
2623
2724 asm volatile ("\
25
+ .syntax unified\n\
2826 ldmia %1!, {r3, r4, ip, lr} @ 4\n\
2927 1: stmia %0!, {r3, r4, ip, lr} @ 4\n\
3028 ldmia %1!, {r3, r4, ip, lr} @ 4+1\n\
....@@ -34,7 +32,7 @@
3432 ldmia %1!, {r3, r4, ip, lr} @ 4\n\
3533 subs %2, %2, #1 @ 1\n\
3634 stmia %0!, {r3, r4, ip, lr} @ 4\n\
37
- ldmneia %1!, {r3, r4, ip, lr} @ 4\n\
35
+ ldmiane %1!, {r3, r4, ip, lr} @ 4\n\
3836 bne 1b @ 1\n\
3937 mcr p15, 0, %2, c7, c7, 0 @ flush ID cache"
4038 : "+&r" (kto), "+&r" (kfrom), "=&r" (tmp)