uClibc_page.h 789 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
  5. */
  6. #ifndef _UCLIBC_PAGE_H
  7. #define _UCLIBC_PAGE_H
  8. /*
  9. * ARC700/linux supports 4k, 8k, 16k pages (build time).
  10. * We rely on the kernel exported header (aka uapi headers since 3.8)
  11. * for PAGE_SIZE and friends. This avoids hand-editing here when building
  12. * toolchain.
  13. *
  14. * Although uClibc determines page size dynamically, from kernel's auxv which
  15. * ARC Linux does pass, still the generic code needs a fall back
  16. * _dl_pagesize = auxvt[AT_PAGESZ].a_un.a_val ? : PAGE_SIZE
  17. *
  18. */
  19. #include <asm/page.h>
  20. /* TBD: fix this with runtime value for a PAGE_SIZE agnostic uClibc */
  21. #define MMAP2_PAGE_SHIFT PAGE_SHIFT
  22. #endif /* _UCLIBC_PAGE_H */