| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/arch/arm/lib/copypage-armv4mc.S |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 9 | 6 | * |
|---|
| 10 | 7 | * This handles the mini data cache, as found on SA11x0 and XScale |
|---|
| 11 | 8 | * processors. When we copy a user page page, we map it in such a way |
|---|
| .. | .. |
|---|
| 17 | 14 | #include <linux/mm.h> |
|---|
| 18 | 15 | #include <linux/highmem.h> |
|---|
| 19 | 16 | |
|---|
| 20 | | -#include <asm/pgtable.h> |
|---|
| 21 | 17 | #include <asm/tlbflush.h> |
|---|
| 22 | 18 | #include <asm/cacheflush.h> |
|---|
| 23 | 19 | |
|---|
| .. | .. |
|---|
| 45 | 41 | int tmp; |
|---|
| 46 | 42 | |
|---|
| 47 | 43 | asm volatile ("\ |
|---|
| 44 | + .syntax unified\n\ |
|---|
| 48 | 45 | ldmia %0!, {r2, r3, ip, lr} @ 4\n\ |
|---|
| 49 | 46 | 1: mcr p15, 0, %1, c7, c6, 1 @ 1 invalidate D line\n\ |
|---|
| 50 | 47 | stmia %1!, {r2, r3, ip, lr} @ 4\n\ |
|---|
| .. | .. |
|---|
| 56 | 53 | ldmia %0!, {r2, r3, ip, lr} @ 4\n\ |
|---|
| 57 | 54 | subs %2, %2, #1 @ 1\n\ |
|---|
| 58 | 55 | 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\ |
|---|
| 60 | 57 | bne 1b @ " |
|---|
| 61 | 58 | : "+&r" (from), "+&r" (to), "=&r" (tmp) |
|---|
| 62 | 59 | : "2" (PAGE_SIZE / 64) |
|---|