hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/powerpc/kernel/vdso64/cacheflush.S
....@@ -1,17 +1,14 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * vDSO provided cache flush routines
34 *
45 * Copyright (C) 2004 Benjamin Herrenschmuidt (benh@kernel.crashing.org),
56 * IBM Corp.
6
- *
7
- * This program is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU General Public License
9
- * as published by the Free Software Foundation; either version
10
- * 2 of the License, or (at your option) any later version.
117 */
128 #include <asm/processor.h>
139 #include <asm/ppc_asm.h>
1410 #include <asm/vdso.h>
11
+#include <asm/vdso_datapage.h>
1512 #include <asm/asm-offsets.h>
1613
1714 .text
....@@ -28,14 +25,12 @@
2825 .cfi_startproc
2926 mflr r12
3027 .cfi_register lr,r12
31
- mr r11,r3
32
- bl V_LOCAL_FUNC(__get_datapage)
28
+ get_datapage r10, r0
3329 mtlr r12
34
- mr r10,r3
3530
3631 lwz r7,CFG_DCACHE_BLOCKSZ(r10)
3732 addi r5,r7,-1
38
- andc r6,r11,r5 /* round low to line bdy */
33
+ andc r6,r3,r5 /* round low to line bdy */
3934 subf r8,r6,r4 /* compute length */
4035 add r8,r8,r5 /* ensure we get enough */
4136 lwz r9,CFG_DCACHE_LOGBLOCKSZ(r10)
....@@ -52,7 +47,7 @@
5247
5348 lwz r7,CFG_ICACHE_BLOCKSZ(r10)
5449 addi r5,r7,-1
55
- andc r6,r11,r5 /* round low to line bdy */
50
+ andc r6,r3,r5 /* round low to line bdy */
5651 subf r8,r6,r4 /* compute length */
5752 add r8,r8,r5
5853 lwz r9,CFG_ICACHE_LOGBLOCKSZ(r10)