blob: 65ea19eec9562b80c06f18bdf518f4ea23e447e1 [file] [log] [blame]
Michael Ellerman5cd16ee2005-11-11 14:25:24 +11001#ifndef _ASM_POWERPC_PAGE_32_H
2#define _ASM_POWERPC_PAGE_32_H
3
4#define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32
5
Paul Mackerras493f25e2005-11-14 17:32:50 +11006#define PPC_MEMSTART 0
7
Benjamin Herrenschmidt52142e72007-11-19 19:25:06 +11008#ifdef CONFIG_NOT_COHERENT_CACHE
9#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES
10#endif
11
Michael Ellerman5cd16ee2005-11-11 14:25:24 +110012#ifndef __ASSEMBLY__
13/*
14 * The basic type of a PTE - 64 bits for those CPUs with > 32 bit
15 * physical addressing. For now this just the IBM PPC440.
16 */
17#ifdef CONFIG_PTE_64BIT
18typedef unsigned long long pte_basic_t;
19#define PTE_SHIFT (PAGE_SHIFT - 3) /* 512 ptes per page */
Michael Ellerman5cd16ee2005-11-11 14:25:24 +110020#else
21typedef unsigned long pte_basic_t;
22#define PTE_SHIFT (PAGE_SHIFT - 2) /* 1024 ptes per page */
Michael Ellerman5cd16ee2005-11-11 14:25:24 +110023#endif
24
25struct page;
26extern void clear_pages(void *page, int order);
27static inline void clear_page(void *page) { clear_pages(page, 0); }
28extern void copy_page(void *to, void *from);
29
David Howellsef55d532006-12-08 02:37:53 -080030#include <asm-generic/page.h>
Michael Ellerman5cd16ee2005-11-11 14:25:24 +110031
32#endif /* __ASSEMBLY__ */
33
Michael Ellerman5cd16ee2005-11-11 14:25:24 +110034#endif /* _ASM_POWERPC_PAGE_32_H */