pgtable.h 1.4 KB

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