Rev 5270 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5270 | serge | 1 | #ifndef _ASM_X86_PGTABLE_2LEVEL_DEFS_H |
2 | #define _ASM_X86_PGTABLE_2LEVEL_DEFS_H |
||
3 | |||
4 | #ifndef __ASSEMBLY__ |
||
5 | #include |
||
6 | |||
7 | typedef unsigned long pteval_t; |
||
8 | typedef unsigned long pmdval_t; |
||
9 | typedef unsigned long pudval_t; |
||
10 | typedef unsigned long pgdval_t; |
||
11 | typedef unsigned long pgprotval_t; |
||
12 | |||
13 | typedef union { |
||
14 | pteval_t pte; |
||
15 | pteval_t pte_low; |
||
16 | } pte_t; |
||
17 | #endif /* !__ASSEMBLY__ */ |
||
18 | |||
19 | #define SHARED_KERNEL_PMD 0 |
||
20 | |||
21 | /* |
||
22 | * traditional i386 two-level paging structure: |
||
23 | */ |
||
24 | |||
25 | #define PGDIR_SHIFT 22 |
||
26 | #define PTRS_PER_PGD 1024 |
||
27 | |||
28 | |||
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 | |||
36 | #endif /* _ASM_X86_PGTABLE_2LEVEL_DEFS_H */ |