uClibc_page.h 475 B

123456789101112131415161718
  1. /* Copyright (C) 2024 uClibc-ng contributors.
  2. *
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. /* Supply an architecture specific value for PAGE_SIZE and friends. */
  6. #ifndef _UCLIBC_PAGE_H
  7. #define _UCLIBC_PAGE_H
  8. /* LoongArch supports 4K, 16K, and 64K pages; default is 16K */
  9. #define PAGE_SHIFT 14
  10. #define PAGE_SIZE (1UL << PAGE_SHIFT)
  11. #define PAGE_MASK (~(PAGE_SIZE-1))
  12. #define MMAP2_PAGE_SHIFT PAGE_SHIFT
  13. #endif /* _UCLIBC_PAGE_H */