.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * arch/arm/include/asm/pgtable-nommu.h |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 1995-2002 Russell King |
---|
5 | 6 | * 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. |
---|
10 | 7 | */ |
---|
11 | 8 | #ifndef _ASMARM_PGTABLE_NOMMU_H |
---|
12 | 9 | #define _ASMARM_PGTABLE_NOMMU_H |
---|
.. | .. |
---|
25 | 22 | #define pgd_bad(pgd) (0) |
---|
26 | 23 | #define pgd_clear(pgdp) |
---|
27 | 24 | #define kern_addr_valid(addr) (1) |
---|
28 | | -#define pmd_offset(a, b) ((void *)0) |
---|
29 | 25 | /* FIXME */ |
---|
30 | 26 | /* |
---|
31 | 27 | * PMD_SHIFT determines the size of the area a second-level page table can map |
---|
.. | .. |
---|
45 | 41 | |
---|
46 | 42 | #define swapper_pg_dir ((pgd_t *) 0) |
---|
47 | 43 | |
---|
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 | | - |
---|
54 | 44 | |
---|
55 | 45 | 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)) |
---|
62 | 46 | |
---|
63 | 47 | /* |
---|
64 | 48 | * Mark the prot value as uncacheable and unbufferable. |
---|
65 | 49 | */ |
---|
66 | 50 | #define pgprot_noncached(prot) (prot) |
---|
67 | 51 | #define pgprot_writecombine(prot) (prot) |
---|
68 | | -#define pgprot_dmacoherent(prot) (prot) |
---|
69 | 52 | #define pgprot_device(prot) (prot) |
---|
70 | 53 | |
---|
71 | 54 | |
---|
.. | .. |
---|
75 | 58 | extern unsigned int kobjsize(const void *objp); |
---|
76 | 59 | |
---|
77 | 60 | /* |
---|
78 | | - * No page table caches to initialise. |
---|
79 | | - */ |
---|
80 | | -#define pgtable_cache_init() do { } while (0) |
---|
81 | | - |
---|
82 | | -/* |
---|
83 | 61 | * All 32bit addresses are effectively valid for vmalloc... |
---|
84 | 62 | * Sort of meaningless for non-VM targets. |
---|
85 | 63 | */ |
---|
.. | .. |
---|
87 | 65 | #define VMALLOC_END 0xffffffffUL |
---|
88 | 66 | |
---|
89 | 67 | #define FIRST_USER_ADDRESS 0UL |
---|
90 | | - |
---|
91 | | -#include <asm-generic/pgtable.h> |
---|
92 | 68 | |
---|
93 | 69 | #else |
---|
94 | 70 | |
---|