pgtable.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright (C) 2006 Atmark Techno, Inc.
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. */
  8. #ifndef _ASM_MICROBLAZE_PGTABLE_H
  9. #define _ASM_MICROBLAZE_PGTABLE_H
  10. #include <asm/setup.h>
  11. #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
  12. remap_pfn_range(vma, vaddr, pfn, size, prot)
  13. #define pgd_present(pgd) (1) /* pages are always present on non MMU */
  14. #define pgd_none(pgd) (0)
  15. #define pgd_bad(pgd) (0)
  16. #define pgd_clear(pgdp)
  17. #define kern_addr_valid(addr) (1)
  18. #define pmd_offset(a, b) ((void *) 0)
  19. #define PAGE_NONE __pgprot(0) /* these mean nothing to non MMU */
  20. #define PAGE_SHARED __pgprot(0) /* these mean nothing to non MMU */
  21. #define PAGE_COPY __pgprot(0) /* these mean nothing to non MMU */
  22. #define PAGE_READONLY __pgprot(0) /* these mean nothing to non MMU */
  23. #define PAGE_KERNEL __pgprot(0) /* these mean nothing to non MMU */
  24. #define __swp_type(x) (0)
  25. #define __swp_offset(x) (0)
  26. #define __swp_entry(typ, off) ((swp_entry_t) { ((typ) | ((off) << 7)) })
  27. #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
  28. #define __swp_entry_to_pte(x) ((pte_t) { (x).val })
  29. #ifndef __ASSEMBLY__
  30. static inline int pte_file(pte_t pte) { return 0; }
  31. #endif /* __ASSEMBLY__ */
  32. #define ZERO_PAGE(vaddr) ({ BUG(); NULL; })
  33. #define swapper_pg_dir ((pgd_t *) NULL)
  34. #define pgtable_cache_init() do {} while (0)
  35. #define arch_enter_lazy_cpu_mode() do {} while (0)
  36. #ifndef __ASSEMBLY__
  37. #include <asm-generic/pgtable.h>
  38. void setup_memory(void);
  39. #endif /* __ASSEMBLY__ */
  40. #endif /* _ASM_MICROBLAZE_PGTABLE_H */