hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/parisc/kernel/asm-offsets.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Generate definitions needed by assembly language modules.
34 * This code generates raw asm output which is post-processed to extract
....@@ -11,20 +12,6 @@
1112 * Copyright (C) 2001 Richard Hirst <rhirst at parisc-linux.org>
1213 * Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org>
1314 * 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
2815 */
2916
3017 #include <linux/types.h>
....@@ -33,8 +20,8 @@
3320 #include <linux/ptrace.h>
3421 #include <linux/hardirq.h>
3522 #include <linux/kbuild.h>
23
+#include <linux/pgtable.h>
3624
37
-#include <asm/pgtable.h>
3825 #include <asm/ptrace.h>
3926 #include <asm/processor.h>
4027 #include <asm/pdc.h>
....@@ -281,7 +268,6 @@
281268 DEFINE(ASM_BITS_PER_PGD, BITS_PER_PGD);
282269 DEFINE(ASM_BITS_PER_PMD, BITS_PER_PMD);
283270 DEFINE(ASM_BITS_PER_PTE, BITS_PER_PTE);
284
- DEFINE(ASM_PGD_PMD_OFFSET, -(PAGE_SIZE << PGD_ORDER));
285271 DEFINE(ASM_PMD_ENTRY, ((PAGE_OFFSET & PMD_MASK) >> PMD_SHIFT));
286272 DEFINE(ASM_PGD_ENTRY, PAGE_OFFSET >> PGDIR_SHIFT);
287273 DEFINE(ASM_PGD_ENTRY_SIZE, PGD_ENTRY_SIZE);