forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/arch/arm/mm/copypage-v4mc.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/lib/copypage-armv4mc.S
34 *
45 * Copyright (C) 1995-2005 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 handles the mini data cache, as found on SA11x0 and XScale
118 * processors. When we copy a user page page, we map it in such a way
....@@ -17,7 +14,6 @@
1714 #include <linux/mm.h>
1815 #include <linux/highmem.h>
1916
20
-#include <asm/pgtable.h>
2117 #include <asm/tlbflush.h>
2218 #include <asm/cacheflush.h>
2319
....@@ -45,6 +41,7 @@
4541 int tmp;
4642
4743 asm volatile ("\
44
+ .syntax unified\n\
4845 ldmia %0!, {r2, r3, ip, lr} @ 4\n\
4946 1: mcr p15, 0, %1, c7, c6, 1 @ 1 invalidate D line\n\
5047 stmia %1!, {r2, r3, ip, lr} @ 4\n\
....@@ -56,7 +53,7 @@
5653 ldmia %0!, {r2, r3, ip, lr} @ 4\n\
5754 subs %2, %2, #1 @ 1\n\
5855 stmia %1!, {r2, r3, ip, lr} @ 4\n\
59
- ldmneia %0!, {r2, r3, ip, lr} @ 4\n\
56
+ ldmiane %0!, {r2, r3, ip, lr} @ 4\n\
6057 bne 1b @ "
6158 : "+&r" (from), "+&r" (to), "=&r" (tmp)
6259 : "2" (PAGE_SIZE / 64)