diff options
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/pgtable-ppc32.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/asm-powerpc/pgtable-ppc32.h b/include/asm-powerpc/pgtable-ppc32.h index bd5b4011c53b..daea7692d070 100644 --- a/include/asm-powerpc/pgtable-ppc32.h +++ b/include/asm-powerpc/pgtable-ppc32.h | |||
@@ -98,9 +98,6 @@ extern int icache_44x_need_flush; | |||
98 | #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE) | 98 | #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE) |
99 | #define FIRST_USER_ADDRESS 0 | 99 | #define FIRST_USER_ADDRESS 0 |
100 | 100 | ||
101 | #define USER_PGD_PTRS (PAGE_OFFSET >> PGDIR_SHIFT) | ||
102 | #define KERNEL_PGD_PTRS (PTRS_PER_PGD-USER_PGD_PTRS) | ||
103 | |||
104 | #define pte_ERROR(e) \ | 101 | #define pte_ERROR(e) \ |
105 | printk("%s:%d: bad pte %llx.\n", __FILE__, __LINE__, \ | 102 | printk("%s:%d: bad pte %llx.\n", __FILE__, __LINE__, \ |
106 | (unsigned long long)pte_val(e)) | 103 | (unsigned long long)pte_val(e)) |
@@ -693,7 +690,7 @@ extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, | |||
693 | #define pmd_page_vaddr(pmd) \ | 690 | #define pmd_page_vaddr(pmd) \ |
694 | ((unsigned long) (pmd_val(pmd) & PAGE_MASK)) | 691 | ((unsigned long) (pmd_val(pmd) & PAGE_MASK)) |
695 | #define pmd_page(pmd) \ | 692 | #define pmd_page(pmd) \ |
696 | (mem_map + (__pa(pmd_val(pmd)) >> PAGE_SHIFT)) | 693 | pfn_to_page((__pa(pmd_val(pmd)) >> PAGE_SHIFT)) |
697 | #endif | 694 | #endif |
698 | 695 | ||
699 | /* to find an entry in a kernel page-table-directory */ | 696 | /* to find an entry in a kernel page-table-directory */ |