diff options
Diffstat (limited to 'include/asm-powerpc/pgtable-64k.h')
-rw-r--r-- | include/asm-powerpc/pgtable-64k.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/asm-powerpc/pgtable-64k.h b/include/asm-powerpc/pgtable-64k.h index 5e84f070eaf7..16ef4978520d 100644 --- a/include/asm-powerpc/pgtable-64k.h +++ b/include/asm-powerpc/pgtable-64k.h | |||
@@ -1,6 +1,5 @@ | |||
1 | #ifndef _ASM_POWERPC_PGTABLE_64K_H | 1 | #ifndef _ASM_POWERPC_PGTABLE_64K_H |
2 | #define _ASM_POWERPC_PGTABLE_64K_H | 2 | #define _ASM_POWERPC_PGTABLE_64K_H |
3 | #ifdef __KERNEL__ | ||
4 | 3 | ||
5 | #include <asm-generic/pgtable-nopud.h> | 4 | #include <asm-generic/pgtable-nopud.h> |
6 | 5 | ||
@@ -65,8 +64,6 @@ | |||
65 | /* Bits to mask out from a PGD/PUD to get to the PMD page */ | 64 | /* Bits to mask out from a PGD/PUD to get to the PMD page */ |
66 | #define PUD_MASKED_BITS 0x1ff | 65 | #define PUD_MASKED_BITS 0x1ff |
67 | 66 | ||
68 | #ifndef __ASSEMBLY__ | ||
69 | |||
70 | /* Manipulate "rpte" values */ | 67 | /* Manipulate "rpte" values */ |
71 | #define __real_pte(e,p) ((real_pte_t) { \ | 68 | #define __real_pte(e,p) ((real_pte_t) { \ |
72 | (e), pte_val(*((p) + PTRS_PER_PTE)) }) | 69 | (e), pte_val(*((p) + PTRS_PER_PTE)) }) |
@@ -98,6 +95,4 @@ | |||
98 | remap_pfn_range((vma), (addr), (pfn), PAGE_SIZE, \ | 95 | remap_pfn_range((vma), (addr), (pfn), PAGE_SIZE, \ |
99 | __pgprot(pgprot_val((prot)) | _PAGE_4K_PFN)) | 96 | __pgprot(pgprot_val((prot)) | _PAGE_4K_PFN)) |
100 | 97 | ||
101 | #endif /* __ASSEMBLY__ */ | ||
102 | #endif /* __KERNEL__ */ | ||
103 | #endif /* _ASM_POWERPC_PGTABLE_64K_H */ | 98 | #endif /* _ASM_POWERPC_PGTABLE_64K_H */ |