[git commit] libbb: enable fixed 4k pagesize for 32bit ARM
Denys Vlasenko
vda.linux at googlemail.com
Tue Dec 15 20:24:04 UTC 2020
commit: https://git.busybox.net/busybox/commit/?id=01004f9796fd7a5223a40802026d2023e3f9cf28
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
include/libbb.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/libbb.h b/include/libbb.h
index db5bf7a51..202e3f39c 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -393,8 +393,13 @@ void *xmmap_anon(size_t size) FAST_FUNC;
#if defined(__x86_64__) || defined(i386)
# define BB_ARCH_FIXED_PAGESIZE 4096
+#elif defined(__arm__) /* only 32bit, 64bit ARM has variable page size */
+# define BB_ARCH_FIXED_PAGESIZE 4096
#else /* if defined(ARCH) */
/* add you favorite arch today! */
+//From Linux kernel inspection:
+//xtenza,s390[x],riscv,nios2,csky,sparc32: fixed 4k pages
+//sparc64,alpha,openrisc: fixed 8k pages
#endif
#if defined BB_ARCH_FIXED_PAGESIZE
More information about the busybox-cvs
mailing list