hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm64/include/asm/pgtable-types.h
....@@ -1,20 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Page table types definitions.
34 *
45 * Copyright (C) 2014 ARM Ltd.
56 * Author: Catalin Marinas <catalin.marinas@arm.com>
6
- *
7
- * This program is free software: you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
187 */
198
209 #ifndef __ASM_PGTABLE_TYPES_H
....@@ -25,6 +14,7 @@
2514 typedef u64 pteval_t;
2615 typedef u64 pmdval_t;
2716 typedef u64 pudval_t;
17
+typedef u64 p4dval_t;
2818 typedef u64 pgdval_t;
2919
3020 /*
....@@ -55,13 +45,11 @@
5545 #define __pgprot(x) ((pgprot_t) { (x) } )
5646
5747 #if CONFIG_PGTABLE_LEVELS == 2
58
-#define __ARCH_USE_5LEVEL_HACK
5948 #include <asm-generic/pgtable-nopmd.h>
6049 #elif CONFIG_PGTABLE_LEVELS == 3
61
-#define __ARCH_USE_5LEVEL_HACK
6250 #include <asm-generic/pgtable-nopud.h>
6351 #elif CONFIG_PGTABLE_LEVELS == 4
64
-#include <asm-generic/5level-fixup.h>
52
+#include <asm-generic/pgtable-nop4d.h>
6553 #endif
6654
6755 #endif /* __ASM_PGTABLE_TYPES_H */