page_32.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _ASM_POWERPC_PAGE_32_H
  2. #define _ASM_POWERPC_PAGE_32_H
  3. #if defined(CONFIG_PHYSICAL_ALIGN) && (CONFIG_PHYSICAL_START != 0)
  4. #if (CONFIG_PHYSICAL_START % CONFIG_PHYSICAL_ALIGN) != 0
  5. #error "CONFIG_PHYSICAL_START must be a multiple of CONFIG_PHYSICAL_ALIGN"
  6. #endif
  7. #endif
  8. #define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32
  9. #ifdef CONFIG_NOT_COHERENT_CACHE
  10. #define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES
  11. #endif
  12. #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
  18. typedef unsigned long long pte_basic_t;
  19. #define PTE_SHIFT (PAGE_SHIFT - 3) /* 512 ptes per page */
  20. #else
  21. typedef unsigned long pte_basic_t;
  22. #define PTE_SHIFT (PAGE_SHIFT - 2) /* 1024 ptes per page */
  23. #endif
  24. struct page;
  25. extern void clear_pages(void *page, int order);
  26. static inline void clear_page(void *page) { clear_pages(page, 0); }
  27. extern void copy_page(void *to, void *from);
  28. #include <asm-generic/page.h>
  29. #endif /* __ASSEMBLY__ */
  30. #endif /* _ASM_POWERPC_PAGE_32_H */