]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/x86/include/asm/pgtable-2level_types.h
Merge branch 'stable/for-jens-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git...
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / include / asm / pgtable-2level_types.h
CommitLineData
1965aae3
PA
1#ifndef _ASM_X86_PGTABLE_2LEVEL_DEFS_H
2#define _ASM_X86_PGTABLE_2LEVEL_DEFS_H
1da177e4 3
54321d94
JF
4#ifndef __ASSEMBLY__
5#include <linux/types.h>
6
7typedef unsigned long pteval_t;
8typedef unsigned long pmdval_t;
9typedef unsigned long pudval_t;
10typedef unsigned long pgdval_t;
11typedef unsigned long pgprotval_t;
12
13typedef union {
14 pteval_t pte;
15 pteval_t pte_low;
16} pte_t;
17#endif /* !__ASSEMBLY__ */
18
5311ab62
JF
19#define SHARED_KERNEL_PMD 0
20
1da177e4
LT
21/*
22 * traditional i386 two-level paging structure:
23 */
24
25#define PGDIR_SHIFT 22
26#define PTRS_PER_PGD 1024
27
9b3651cb 28
1da177e4
LT
29/*
30 * the i386 is two-level, so we don't really have any
31 * PMD directory physically.
32 */
33
34#define PTRS_PER_PTE 1024
35
1965aae3 36#endif /* _ASM_X86_PGTABLE_2LEVEL_DEFS_H */