diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-10-13 09:43:54 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-10-13 09:43:54 -0400 |
commit | b160292cc216a50fd0cd386b0bda2cd48352c73b (patch) | |
tree | ef07cf98f91353ee4c9ec1e1ca7a2a5d9d4b538a /include/asm-mips/pgtable-32.h | |
parent | b37bde147890c8fea8369a5a4e230dabdea4ebfb (diff) | |
parent | bbf25010f1a6b761914430f5fca081ec8c7accd1 (diff) |
Merge Linux 2.6.23
Diffstat (limited to 'include/asm-mips/pgtable-32.h')
-rw-r--r-- | include/asm-mips/pgtable-32.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/include/asm-mips/pgtable-32.h b/include/asm-mips/pgtable-32.h index 2fbd47eba32d..59c865deb0c7 100644 --- a/include/asm-mips/pgtable-32.h +++ b/include/asm-mips/pgtable-32.h | |||
@@ -43,11 +43,7 @@ extern int add_temporary_entry(unsigned long entrylo0, unsigned long entrylo1, | |||
43 | */ | 43 | */ |
44 | 44 | ||
45 | /* PGDIR_SHIFT determines what a third-level page table entry can map */ | 45 | /* PGDIR_SHIFT determines what a third-level page table entry can map */ |
46 | #ifdef CONFIG_64BIT_PHYS_ADDR | 46 | #define PGDIR_SHIFT (2 * PAGE_SHIFT + PTE_ORDER - PTE_T_LOG2) |
47 | #define PGDIR_SHIFT 21 | ||
48 | #else | ||
49 | #define PGDIR_SHIFT 22 | ||
50 | #endif | ||
51 | #define PGDIR_SIZE (1UL << PGDIR_SHIFT) | 47 | #define PGDIR_SIZE (1UL << PGDIR_SHIFT) |
52 | #define PGDIR_MASK (~(PGDIR_SIZE-1)) | 48 | #define PGDIR_MASK (~(PGDIR_SIZE-1)) |
53 | 49 | ||
@@ -55,17 +51,11 @@ extern int add_temporary_entry(unsigned long entrylo0, unsigned long entrylo1, | |||
55 | * Entries per page directory level: we use two-level, so | 51 | * Entries per page directory level: we use two-level, so |
56 | * we don't really have any PUD/PMD directory physically. | 52 | * we don't really have any PUD/PMD directory physically. |
57 | */ | 53 | */ |
58 | #ifdef CONFIG_64BIT_PHYS_ADDR | 54 | #define __PGD_ORDER (32 - 3 * PAGE_SHIFT + PGD_T_LOG2 + PTE_T_LOG2) |
59 | #define PGD_ORDER 1 | 55 | #define PGD_ORDER (__PGD_ORDER >= 0 ? __PGD_ORDER : 0) |
60 | #define PUD_ORDER aieeee_attempt_to_allocate_pud | 56 | #define PUD_ORDER aieeee_attempt_to_allocate_pud |
61 | #define PMD_ORDER 1 | 57 | #define PMD_ORDER 1 |
62 | #define PTE_ORDER 0 | 58 | #define PTE_ORDER 0 |
63 | #else | ||
64 | #define PGD_ORDER 0 | ||
65 | #define PUD_ORDER aieeee_attempt_to_allocate_pud | ||
66 | #define PMD_ORDER 1 | ||
67 | #define PTE_ORDER 0 | ||
68 | #endif | ||
69 | 59 | ||
70 | #define PTRS_PER_PGD ((PAGE_SIZE << PGD_ORDER) / sizeof(pgd_t)) | 60 | #define PTRS_PER_PGD ((PAGE_SIZE << PGD_ORDER) / sizeof(pgd_t)) |
71 | #define PTRS_PER_PTE ((PAGE_SIZE << PTE_ORDER) / sizeof(pte_t)) | 61 | #define PTRS_PER_PTE ((PAGE_SIZE << PTE_ORDER) / sizeof(pte_t)) |