pgtable.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef __V850_PGTABLE_H__
  2. #define __V850_PGTABLE_H__
  3. #include <asm-generic/4level-fixup.h>
  4. #include <linux/config.h>
  5. #include <asm/page.h>
  6. #define pgd_present(pgd) (1) /* pages are always present on NO_MM */
  7. #define pgd_none(pgd) (0)
  8. #define pgd_bad(pgd) (0)
  9. #define pgd_clear(pgdp) ((void)0)
  10. #define pmd_offset(a, b) ((void *)0)
  11. #define kern_addr_valid(addr) (1)
  12. #define __swp_type(x) (0)
  13. #define __swp_offset(x) (0)
  14. #define __swp_entry(typ,off) ((swp_entry_t) { ((typ) | ((off) << 7)) })
  15. #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
  16. #define __swp_entry_to_pte(x) ((pte_t) { (x).val })
  17. static inline int pte_file (pte_t pte) { return 0; }
  18. /* These mean nothing to !CONFIG_MMU. */
  19. #define PAGE_NONE __pgprot(0)
  20. #define PAGE_SHARED __pgprot(0)
  21. #define PAGE_COPY __pgprot(0)
  22. #define PAGE_READONLY __pgprot(0)
  23. #define PAGE_KERNEL __pgprot(0)
  24. /*
  25. * ZERO_PAGE is a global shared page that is always zero: used
  26. * for zero-mapped memory areas etc. When CONFIG_MMU is not defined, this
  27. * should never actually be used, so just define it to something that's
  28. * will hopefully cause a bus error if it is.
  29. */
  30. #define ZERO_PAGE(vaddr) ((void *)0x87654321)
  31. /* Some bogus code in procfs uses these; whatever. */
  32. #define VMALLOC_START 0
  33. #define VMALLOC_END (~0)
  34. extern void paging_init (void);
  35. #define swapper_pg_dir ((pgd_t *) 0)
  36. #define pgtable_cache_init() ((void)0)
  37. extern unsigned int kobjsize(const void *objp);
  38. #endif /* __V850_PGTABLE_H__ */