page.h 621 B

12345678910111213141516171819202122232425262728
  1. /* page.h: Various defines and such for MMU operations on the Sparc for
  2. * the Linux kernel.
  3. *
  4. * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  5. * Copyright (C) 2007 Daniel Hellstrom (daniel@gaisler.com)
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #ifndef _SPARC_PAGE_H
  10. #define _SPARC_PAGE_H
  11. #ifdef CONFIG_SUN4
  12. #define PAGE_SHIFT 13
  13. #else
  14. #define PAGE_SHIFT 12
  15. #endif
  16. #ifndef __ASSEMBLY__
  17. /* I have my suspicions... -DaveM */
  18. #define PAGE_SIZE (1UL << PAGE_SHIFT)
  19. #else
  20. #define PAGE_SIZE (1 << PAGE_SHIFT)
  21. #endif
  22. #define PAGE_MASK (~(PAGE_SIZE-1))
  23. #endif /* _SPARC_PAGE_H */