.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Generate definitions needed by assembly language modules. |
---|
3 | 4 | * This code generates raw asm output which is post-processed to extract |
---|
.. | .. |
---|
11 | 12 | * Copyright (C) 2001 Richard Hirst <rhirst at parisc-linux.org> |
---|
12 | 13 | * Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org> |
---|
13 | 14 | * Copyright (C) 2003 James Bottomley <jejb at parisc-linux.org> |
---|
14 | | - * |
---|
15 | | - * This program is free software; you can redistribute it and/or modify |
---|
16 | | - * it under the terms of the GNU General Public License as published by |
---|
17 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
18 | | - * (at your option) any later version. |
---|
19 | | - * |
---|
20 | | - * This program is distributed in the hope that it will be useful, |
---|
21 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
22 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
23 | | - * GNU General Public License for more details. |
---|
24 | | - * |
---|
25 | | - * You should have received a copy of the GNU General Public License |
---|
26 | | - * along with this program; if not, write to the Free Software |
---|
27 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
28 | 15 | */ |
---|
29 | 16 | |
---|
30 | 17 | #include <linux/types.h> |
---|
.. | .. |
---|
33 | 20 | #include <linux/ptrace.h> |
---|
34 | 21 | #include <linux/hardirq.h> |
---|
35 | 22 | #include <linux/kbuild.h> |
---|
| 23 | +#include <linux/pgtable.h> |
---|
36 | 24 | |
---|
37 | | -#include <asm/pgtable.h> |
---|
38 | 25 | #include <asm/ptrace.h> |
---|
39 | 26 | #include <asm/processor.h> |
---|
40 | 27 | #include <asm/pdc.h> |
---|
.. | .. |
---|
281 | 268 | DEFINE(ASM_BITS_PER_PGD, BITS_PER_PGD); |
---|
282 | 269 | DEFINE(ASM_BITS_PER_PMD, BITS_PER_PMD); |
---|
283 | 270 | DEFINE(ASM_BITS_PER_PTE, BITS_PER_PTE); |
---|
284 | | - DEFINE(ASM_PGD_PMD_OFFSET, -(PAGE_SIZE << PGD_ORDER)); |
---|
285 | 271 | DEFINE(ASM_PMD_ENTRY, ((PAGE_OFFSET & PMD_MASK) >> PMD_SHIFT)); |
---|
286 | 272 | DEFINE(ASM_PGD_ENTRY, PAGE_OFFSET >> PGDIR_SHIFT); |
---|
287 | 273 | DEFINE(ASM_PGD_ENTRY_SIZE, PGD_ENTRY_SIZE); |
---|