.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * vDSO provided cache flush routines |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2004 Benjamin Herrenschmuidt (benh@kernel.crashing.org), |
---|
5 | 6 | * 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. |
---|
11 | 7 | */ |
---|
12 | 8 | #include <asm/processor.h> |
---|
13 | 9 | #include <asm/ppc_asm.h> |
---|
14 | 10 | #include <asm/vdso.h> |
---|
| 11 | +#include <asm/vdso_datapage.h> |
---|
15 | 12 | #include <asm/asm-offsets.h> |
---|
16 | 13 | |
---|
17 | 14 | .text |
---|
.. | .. |
---|
28 | 25 | .cfi_startproc |
---|
29 | 26 | mflr r12 |
---|
30 | 27 | .cfi_register lr,r12 |
---|
31 | | - mr r11,r3 |
---|
32 | | - bl V_LOCAL_FUNC(__get_datapage) |
---|
| 28 | + get_datapage r10, r0 |
---|
33 | 29 | mtlr r12 |
---|
34 | | - mr r10,r3 |
---|
35 | 30 | |
---|
36 | 31 | lwz r7,CFG_DCACHE_BLOCKSZ(r10) |
---|
37 | 32 | addi r5,r7,-1 |
---|
38 | | - andc r6,r11,r5 /* round low to line bdy */ |
---|
| 33 | + andc r6,r3,r5 /* round low to line bdy */ |
---|
39 | 34 | subf r8,r6,r4 /* compute length */ |
---|
40 | 35 | add r8,r8,r5 /* ensure we get enough */ |
---|
41 | 36 | lwz r9,CFG_DCACHE_LOGBLOCKSZ(r10) |
---|
.. | .. |
---|
52 | 47 | |
---|
53 | 48 | lwz r7,CFG_ICACHE_BLOCKSZ(r10) |
---|
54 | 49 | addi r5,r7,-1 |
---|
55 | | - andc r6,r11,r5 /* round low to line bdy */ |
---|
| 50 | + andc r6,r3,r5 /* round low to line bdy */ |
---|
56 | 51 | subf r8,r6,r4 /* compute length */ |
---|
57 | 52 | add r8,r8,r5 |
---|
58 | 53 | lwz r9,CFG_ICACHE_LOGBLOCKSZ(r10) |
---|