diff options
author | Paul Mackerras <paulus@samba.org> | 2005-11-07 19:14:20 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-07 19:14:20 -0500 |
commit | 24bfb00123e82a2e70bd115277d922438813515b (patch) | |
tree | 27328b8a5718e16d64e2d101f4b7ddcad5930aed /include/asm-ppc64 | |
parent | c6135234550ed89a6fd0e8cb229633967e41d649 (diff) | |
parent | 3f00d3e8fb963968a922d821a9a53b503b687e81 (diff) |
Merge ../linux-2.6
Diffstat (limited to 'include/asm-ppc64')
-rw-r--r-- | include/asm-ppc64/pgtable-4k.h | 3 | ||||
-rw-r--r-- | include/asm-ppc64/pgtable-64k.h | 3 | ||||
-rw-r--r-- | include/asm-ppc64/pgtable.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-ppc64/pgtable-4k.h b/include/asm-ppc64/pgtable-4k.h index c883a2748558..e9590c06ad92 100644 --- a/include/asm-ppc64/pgtable-4k.h +++ b/include/asm-ppc64/pgtable-4k.h | |||
@@ -23,6 +23,9 @@ | |||
23 | #define PMD_SIZE (1UL << PMD_SHIFT) | 23 | #define PMD_SIZE (1UL << PMD_SHIFT) |
24 | #define PMD_MASK (~(PMD_SIZE-1)) | 24 | #define PMD_MASK (~(PMD_SIZE-1)) |
25 | 25 | ||
26 | /* With 4k base page size, hugepage PTEs go at the PMD level */ | ||
27 | #define MIN_HUGEPTE_SHIFT PMD_SHIFT | ||
28 | |||
26 | /* PUD_SHIFT determines what a third-level page table entry can map */ | 29 | /* PUD_SHIFT determines what a third-level page table entry can map */ |
27 | #define PUD_SHIFT (PMD_SHIFT + PMD_INDEX_SIZE) | 30 | #define PUD_SHIFT (PMD_SHIFT + PMD_INDEX_SIZE) |
28 | #define PUD_SIZE (1UL << PUD_SHIFT) | 31 | #define PUD_SIZE (1UL << PUD_SHIFT) |
diff --git a/include/asm-ppc64/pgtable-64k.h b/include/asm-ppc64/pgtable-64k.h index c5f437c86b3c..154f1840ece4 100644 --- a/include/asm-ppc64/pgtable-64k.h +++ b/include/asm-ppc64/pgtable-64k.h | |||
@@ -14,6 +14,9 @@ | |||
14 | #define PTRS_PER_PMD (1 << PMD_INDEX_SIZE) | 14 | #define PTRS_PER_PMD (1 << PMD_INDEX_SIZE) |
15 | #define PTRS_PER_PGD (1 << PGD_INDEX_SIZE) | 15 | #define PTRS_PER_PGD (1 << PGD_INDEX_SIZE) |
16 | 16 | ||
17 | /* With 4k base page size, hugepage PTEs go at the PMD level */ | ||
18 | #define MIN_HUGEPTE_SHIFT PAGE_SHIFT | ||
19 | |||
17 | /* PMD_SHIFT determines what a second-level page table entry can map */ | 20 | /* PMD_SHIFT determines what a second-level page table entry can map */ |
18 | #define PMD_SHIFT (PAGE_SHIFT + PTE_INDEX_SIZE) | 21 | #define PMD_SHIFT (PAGE_SHIFT + PTE_INDEX_SIZE) |
19 | #define PMD_SIZE (1UL << PMD_SHIFT) | 22 | #define PMD_SIZE (1UL << PMD_SHIFT) |
diff --git a/include/asm-ppc64/pgtable.h b/include/asm-ppc64/pgtable.h index fde93ec36abc..a9783ba7fe98 100644 --- a/include/asm-ppc64/pgtable.h +++ b/include/asm-ppc64/pgtable.h | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <asm/mmu.h> | 13 | #include <asm/mmu.h> |
14 | #include <asm/page.h> | 14 | #include <asm/page.h> |
15 | #include <asm/tlbflush.h> | 15 | #include <asm/tlbflush.h> |
16 | struct mm_struct; | ||
16 | #endif /* __ASSEMBLY__ */ | 17 | #endif /* __ASSEMBLY__ */ |
17 | 18 | ||
18 | #ifdef CONFIG_PPC_64K_PAGES | 19 | #ifdef CONFIG_PPC_64K_PAGES |