hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm/include/asm/pgtable-nommu.h
....@@ -1,12 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * arch/arm/include/asm/pgtable-nommu.h
34 *
45 * Copyright (C) 1995-2002 Russell King
56 * Copyright (C) 2004 Hyok S. Choi
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.
107 */
118 #ifndef _ASMARM_PGTABLE_NOMMU_H
129 #define _ASMARM_PGTABLE_NOMMU_H
....@@ -25,7 +22,6 @@
2522 #define pgd_bad(pgd) (0)
2623 #define pgd_clear(pgdp)
2724 #define kern_addr_valid(addr) (1)
28
-#define pmd_offset(a, b) ((void *)0)
2925 /* FIXME */
3026 /*
3127 * PMD_SHIFT determines the size of the area a second-level page table can map
....@@ -45,27 +41,14 @@
4541
4642 #define swapper_pg_dir ((pgd_t *) 0)
4743
48
-#define __swp_type(x) (0)
49
-#define __swp_offset(x) (0)
50
-#define __swp_entry(typ,off) ((swp_entry_t) { ((typ) | ((off) << 7)) })
51
-#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
52
-#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
53
-
5444
5545 typedef pte_t *pte_addr_t;
56
-
57
-/*
58
- * ZERO_PAGE is a global shared page that is always zero: used
59
- * for zero-mapped memory areas etc..
60
- */
61
-#define ZERO_PAGE(vaddr) (virt_to_page(0))
6246
6347 /*
6448 * Mark the prot value as uncacheable and unbufferable.
6549 */
6650 #define pgprot_noncached(prot) (prot)
6751 #define pgprot_writecombine(prot) (prot)
68
-#define pgprot_dmacoherent(prot) (prot)
6952 #define pgprot_device(prot) (prot)
7053
7154
....@@ -75,11 +58,6 @@
7558 extern unsigned int kobjsize(const void *objp);
7659
7760 /*
78
- * No page table caches to initialise.
79
- */
80
-#define pgtable_cache_init() do { } while (0)
81
-
82
-/*
8361 * All 32bit addresses are effectively valid for vmalloc...
8462 * Sort of meaningless for non-VM targets.
8563 */
....@@ -87,8 +65,6 @@
8765 #define VMALLOC_END 0xffffffffUL
8866
8967 #define FIRST_USER_ADDRESS 0UL
90
-
91
-#include <asm-generic/pgtable.h>
9268
9369 #else
9470