.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/arch/arm/mm/proc-arm1026.S: MMU functions for ARM1026EJ-S |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Copyright (C) 2000 Deep Blue Solutions Ltd. |
---|
6 | 7 | * hacked for non-paged-MM by Hyok S. Choi, 2003. |
---|
7 | 8 | * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * (at your option) any later version. |
---|
12 | | - * |
---|
13 | | - * |
---|
14 | 9 | * These are the low level assembler for performing cache and TLB |
---|
15 | 10 | * functions on the ARM1026EJ-S. |
---|
16 | 11 | */ |
---|
17 | 12 | #include <linux/linkage.h> |
---|
18 | 13 | #include <linux/init.h> |
---|
| 14 | +#include <linux/pgtable.h> |
---|
19 | 15 | #include <asm/assembler.h> |
---|
20 | 16 | #include <asm/asm-offsets.h> |
---|
21 | 17 | #include <asm/hwcap.h> |
---|
22 | 18 | #include <asm/pgtable-hwdef.h> |
---|
23 | | -#include <asm/pgtable.h> |
---|
24 | 19 | #include <asm/ptrace.h> |
---|
25 | 20 | |
---|
26 | 21 | #include "proc-macros.S" |
---|
.. | .. |
---|
143 | 138 | mov ip, #0 |
---|
144 | 139 | __flush_whole_cache: |
---|
145 | 140 | #ifndef CONFIG_CPU_DCACHE_DISABLE |
---|
146 | | -1: mrc p15, 0, r15, c7, c14, 3 @ test, clean, invalidate |
---|
| 141 | +1: mrc p15, 0, APSR_nzcv, c7, c14, 3 @ test, clean, invalidate |
---|
147 | 142 | bne 1b |
---|
148 | 143 | #endif |
---|
149 | 144 | tst r2, #VM_EXEC |
---|
.. | .. |
---|
368 | 363 | #ifdef CONFIG_MMU |
---|
369 | 364 | mov r1, #0 |
---|
370 | 365 | #ifndef CONFIG_CPU_DCACHE_DISABLE |
---|
371 | | -1: mrc p15, 0, r15, c7, c14, 3 @ test, clean, invalidate |
---|
| 366 | +1: mrc p15, 0, APSR_nzcv, c7, c14, 3 @ test, clean, invalidate |
---|
372 | 367 | bne 1b |
---|
373 | 368 | #endif |
---|
374 | 369 | #ifndef CONFIG_CPU_ICACHE_DISABLE |
---|
.. | .. |
---|
442 | 437 | string cpu_arm1026_name, "ARM1026EJ-S" |
---|
443 | 438 | .align |
---|
444 | 439 | |
---|
445 | | - .section ".proc.info.init", #alloc |
---|
| 440 | + .section ".proc.info.init", "a" |
---|
446 | 441 | |
---|
447 | 442 | .type __arm1026_proc_info,#object |
---|
448 | 443 | __arm1026_proc_info: |
---|