PageRenderTime 21ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/x86/include/asm/pgtable-2level_types.h

https://bitbucket.org/thekraven/iscream_thunderc-2.6.35
C++ Header | 37 lines | 20 code | 10 blank | 7 comment | 0 complexity | caac219ff969f4a43664bdd6c2db92f9 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
 1#ifndef _ASM_X86_PGTABLE_2LEVEL_DEFS_H
 2#define _ASM_X86_PGTABLE_2LEVEL_DEFS_H
 3
 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
19#define SHARED_KERNEL_PMD	0
20#define PAGETABLE_LEVELS	2
21
22/*
23 * traditional i386 two-level paging structure:
24 */
25
26#define PGDIR_SHIFT	22
27#define PTRS_PER_PGD	1024
28
29
30/*
31 * the i386 is two-level, so we don't really have any
32 * PMD directory physically.
33 */
34
35#define PTRS_PER_PTE	1024
36
37#endif /* _ASM_X86_PGTABLE_2LEVEL_DEFS_H */