2 * Copyright (C) 2016 Andes Technology, Inc.
3 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
10 * Linux/NDS32 supports 4k and 8k pages (build time).
12 * Although uClibc determines page size dynamically from kernel's auxv
13 * still the generic code needs a fall back
14 * _dl_pagesize = auxvt[AT_PAGESZ].a_un.a_val ? : PAGE_SIZE
19 #if defined(__CONFIG_NDS32_PAGE_SIZE_8K__)
25 #define PAGE_SIZE (1UL << PAGE_SHIFT)
26 #define PAGE_MASK (~(PAGE_SIZE-1))
28 /* TBD: fix this with runtime value for a PAGE_SIZE agnostic uClibc */
29 #define MMAP2_PAGE_SHIFT PAGE_SHIFT
31 #endif /* _UCLIBC_PAGE_H */