diff options
author | Robin Holt <holt@sgi.com> | 2005-11-11 10:35:43 -0500 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-11-11 12:37:29 -0500 |
commit | 837cd0bdf54dd954cd6aa43d250f75ab5db79617 (patch) | |
tree | ef28b91f1ac8c1c9f4244da9be1f994306ef4070 /include/asm-ia64/page.h | |
parent | d12eb7e11cf30c30f639b2093735af2ac177830b (diff) |
[IA64] 4-level page tables
This patch introduces 4-level page tables to ia64. I have run
some benchmarks and found nothing interesting. Performance has
consistently fallen within the noise range.
It also introduces a config option (setting the default to 3
levels). The config option prevents having 4 level page
tables with 64k base page size.
Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/asm-ia64/page.h')
-rw-r--r-- | include/asm-ia64/page.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/asm-ia64/page.h b/include/asm-ia64/page.h index 9d41548b7fef..9dd9da105278 100644 --- a/include/asm-ia64/page.h +++ b/include/asm-ia64/page.h | |||
@@ -47,8 +47,6 @@ | |||
47 | #define PERCPU_PAGE_SHIFT 16 /* log2() of max. size of per-CPU area */ | 47 | #define PERCPU_PAGE_SHIFT 16 /* log2() of max. size of per-CPU area */ |
48 | #define PERCPU_PAGE_SIZE (__IA64_UL_CONST(1) << PERCPU_PAGE_SHIFT) | 48 | #define PERCPU_PAGE_SIZE (__IA64_UL_CONST(1) << PERCPU_PAGE_SHIFT) |
49 | 49 | ||
50 | #define RGN_MAP_LIMIT ((1UL << (4*PAGE_SHIFT - 12)) - PAGE_SIZE) /* per region addr limit */ | ||
51 | |||
52 | 50 | ||
53 | #ifdef CONFIG_HUGETLB_PAGE | 51 | #ifdef CONFIG_HUGETLB_PAGE |
54 | # define HPAGE_REGION_BASE RGN_BASE(RGN_HPAGE) | 52 | # define HPAGE_REGION_BASE RGN_BASE(RGN_HPAGE) |
@@ -175,11 +173,17 @@ get_order (unsigned long size) | |||
175 | */ | 173 | */ |
176 | typedef struct { unsigned long pte; } pte_t; | 174 | typedef struct { unsigned long pte; } pte_t; |
177 | typedef struct { unsigned long pmd; } pmd_t; | 175 | typedef struct { unsigned long pmd; } pmd_t; |
176 | #ifdef CONFIG_PGTABLE_4 | ||
177 | typedef struct { unsigned long pud; } pud_t; | ||
178 | #endif | ||
178 | typedef struct { unsigned long pgd; } pgd_t; | 179 | typedef struct { unsigned long pgd; } pgd_t; |
179 | typedef struct { unsigned long pgprot; } pgprot_t; | 180 | typedef struct { unsigned long pgprot; } pgprot_t; |
180 | 181 | ||
181 | # define pte_val(x) ((x).pte) | 182 | # define pte_val(x) ((x).pte) |
182 | # define pmd_val(x) ((x).pmd) | 183 | # define pmd_val(x) ((x).pmd) |
184 | #ifdef CONFIG_PGTABLE_4 | ||
185 | # define pud_val(x) ((x).pud) | ||
186 | #endif | ||
183 | # define pgd_val(x) ((x).pgd) | 187 | # define pgd_val(x) ((x).pgd) |
184 | # define pgprot_val(x) ((x).pgprot) | 188 | # define pgprot_val(x) ((x).pgprot) |
185 | 189 | ||