.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * arch/arm/include/asm/pgtable-2level.h |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 1995-2002 Russell King |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License version 2 as |
---|
8 | | - * published by the Free Software Foundation. |
---|
9 | 6 | */ |
---|
10 | 7 | #ifndef _ASM_PGTABLE_2LEVEL_H |
---|
11 | 8 | #define _ASM_PGTABLE_2LEVEL_H |
---|
.. | .. |
---|
192 | 189 | { |
---|
193 | 190 | return (pmd_t *)pud; |
---|
194 | 191 | } |
---|
| 192 | +#define pmd_offset pmd_offset |
---|
195 | 193 | |
---|
196 | 194 | #define pmd_large(pmd) (pmd_val(pmd) & 2) |
---|
| 195 | +#define pmd_leaf(pmd) (pmd_val(pmd) & 2) |
---|
197 | 196 | #define pmd_bad(pmd) (pmd_val(pmd) & 2) |
---|
198 | 197 | #define pmd_present(pmd) (pmd_val(pmd)) |
---|
199 | 198 | |
---|
.. | .. |
---|
215 | 214 | #define pmd_addr_end(addr,end) (end) |
---|
216 | 215 | |
---|
217 | 216 | #define set_pte_ext(ptep,pte,ext) cpu_set_pte_ext(ptep,pte,ext) |
---|
218 | | -#define pte_special(pte) (0) |
---|
219 | | -static inline pte_t pte_mkspecial(pte_t pte) { return pte; } |
---|
220 | 217 | |
---|
221 | 218 | /* |
---|
222 | 219 | * We don't have huge page support for short descriptors, for the moment |
---|