diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-15 21:24:04 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-15 21:24:04 +0100 |
commit | 01004f9796fd7a5223a40802026d2023e3f9cf28 (patch) | |
tree | e0a4ef522ac07edb8ca88e40a32c6d4f1ceab157 | |
parent | 4a9ec95565d8ebf315144a67320e77b08adb51a1 (diff) | |
download | busybox-w32-01004f9796fd7a5223a40802026d2023e3f9cf28.tar.gz busybox-w32-01004f9796fd7a5223a40802026d2023e3f9cf28.tar.bz2 busybox-w32-01004f9796fd7a5223a40802026d2023e3f9cf28.zip |
libbb: enable fixed 4k pagesize for 32bit ARM
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/libbb.h | 5 |
1 files changed, 5 insertions, 0 deletions
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; | |||
393 | 393 | ||
394 | #if defined(__x86_64__) || defined(i386) | 394 | #if defined(__x86_64__) || defined(i386) |
395 | # define BB_ARCH_FIXED_PAGESIZE 4096 | 395 | # define BB_ARCH_FIXED_PAGESIZE 4096 |
396 | #elif defined(__arm__) /* only 32bit, 64bit ARM has variable page size */ | ||
397 | # define BB_ARCH_FIXED_PAGESIZE 4096 | ||
396 | #else /* if defined(ARCH) */ | 398 | #else /* if defined(ARCH) */ |
397 | /* add you favorite arch today! */ | 399 | /* add you favorite arch today! */ |
400 | //From Linux kernel inspection: | ||
401 | //xtenza,s390[x],riscv,nios2,csky,sparc32: fixed 4k pages | ||
402 | //sparc64,alpha,openrisc: fixed 8k pages | ||
398 | #endif | 403 | #endif |
399 | 404 | ||
400 | #if defined BB_ARCH_FIXED_PAGESIZE | 405 | #if defined BB_ARCH_FIXED_PAGESIZE |