]>
Commit | Line | Data |
---|---|---|
047ea784 PM |
1 | #ifndef _ASM_POWERPC_PGTABLE_H |
2 | #define _ASM_POWERPC_PGTABLE_H | |
88ced031 | 3 | #ifdef __KERNEL__ |
047ea784 | 4 | |
9c709f3b DG |
5 | #ifndef __ASSEMBLY__ |
6 | #include <asm/processor.h> /* For TASK_SIZE */ | |
7 | #include <asm/mmu.h> | |
8 | #include <asm/page.h> | |
9 | struct mm_struct; | |
10 | #endif /* !__ASSEMBLY__ */ | |
11 | ||
f88df14b DG |
12 | #if defined(CONFIG_PPC64) |
13 | # include <asm/pgtable-ppc64.h> | |
047ea784 | 14 | #else |
f88df14b | 15 | # include <asm/pgtable-ppc32.h> |
e28f7faf | 16 | #endif |
1da177e4 | 17 | |
1da177e4 | 18 | #ifndef __ASSEMBLY__ |
9c709f3b DG |
19 | /* |
20 | * ZERO_PAGE is a global shared page that is always zero: used | |
21 | * for zero-mapped memory areas etc.. | |
22 | */ | |
23 | extern unsigned long empty_zero_page[]; | |
24 | #define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page)) | |
25 | ||
26 | extern pgd_t swapper_pg_dir[]; | |
27 | ||
28 | extern void paging_init(void); | |
29 | ||
30 | /* | |
31 | * kern_addr_valid is intended to indicate whether an address is a valid | |
32 | * kernel address. Most 32-bit archs define it as always true (like this) | |
33 | * but most 64-bit archs actually perform a test. What should we do here? | |
34 | */ | |
35 | #define kern_addr_valid(addr) (1) | |
36 | ||
37 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | |
38 | remap_pfn_range(vma, vaddr, pfn, size, prot) | |
39 | ||
1da177e4 | 40 | #include <asm-generic/pgtable.h> |
1da177e4 LT |
41 | #endif /* __ASSEMBLY__ */ |
42 | ||
88ced031 | 43 | #endif /* __KERNEL__ */ |
047ea784 | 44 | #endif /* _ASM_POWERPC_PGTABLE_H */ |