Commit | Line | Data |
---|---|---|
5cd16ee9 ME |
1 | #ifndef _ASM_POWERPC_PAGE_32_H |
2 | #define _ASM_POWERPC_PAGE_32_H | |
88ced031 | 3 | #ifdef __KERNEL__ |
5cd16ee9 ME |
4 | |
5 | #define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32 | |
6 | ||
493f25ef PM |
7 | #define PPC_MEMSTART 0 |
8 | ||
5cd16ee9 ME |
9 | #ifndef __ASSEMBLY__ |
10 | /* | |
11 | * The basic type of a PTE - 64 bits for those CPUs with > 32 bit | |
12 | * physical addressing. For now this just the IBM PPC440. | |
13 | */ | |
14 | #ifdef CONFIG_PTE_64BIT | |
15 | typedef unsigned long long pte_basic_t; | |
16 | #define PTE_SHIFT (PAGE_SHIFT - 3) /* 512 ptes per page */ | |
5cd16ee9 ME |
17 | #else |
18 | typedef unsigned long pte_basic_t; | |
19 | #define PTE_SHIFT (PAGE_SHIFT - 2) /* 1024 ptes per page */ | |
5cd16ee9 ME |
20 | #endif |
21 | ||
22 | struct page; | |
23 | extern void clear_pages(void *page, int order); | |
24 | static inline void clear_page(void *page) { clear_pages(page, 0); } | |
25 | extern void copy_page(void *to, void *from); | |
26 | ||
ef55d53c | 27 | #include <asm-generic/page.h> |
5cd16ee9 ME |
28 | |
29 | #endif /* __ASSEMBLY__ */ | |
30 | ||
88ced031 | 31 | #endif /* __KERNEL__ */ |
5cd16ee9 | 32 | #endif /* _ASM_POWERPC_PAGE_32_H */ |