]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
ARC: allow dynamic mmu page sizes
authorVineet Gupta <vgupta@synopsys.com>
Thu, 2 May 2019 22:06:40 +0000 (15:06 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 1 Nov 2019 16:29:21 +0000 (09:29 -0700)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
sysdeps/unix/sysv/linux/arc/mmap_internal.h

index 3f28f352d91d8250f2b87bfd22d64f9464274e4d..51d0a25f26b1229762e7c1221bc46e19ef8203bd 100644 (file)
@@ -19,8 +19,8 @@
 #ifndef MMAP_ARC_INTERNAL_H
 #define MMAP_ARC_INTERNAL_H
 
-/* 8K page is default for ARC.  */
-#define MMAP2_PAGE_UNIT 8192ULL
+/* Determine the shift dynamically with getpagesize.  */
+#define MMAP2_PAGE_UNIT -1
 
 #include_next <mmap_internal.h>