Skip to content

Commit 41af38f

Browse files
lexprfuncallovr
authored andcommitted
Change the default page size to 64KiB on Aarch64 Linux
This updates the configuration script to set the default page size to 64KiB on Aarch64 Linux. This is motivated by compatibility as a build configured for a 64KiB page will work on kernels that use the smaller 4KiB or 16KiB pages, whereas the reverse is not true. To make the configured page size setting more visible, the script now displays the page size when printing the configuration results. Users that want to override the page size in to choose a smaller value can still do so with the --with-lg-pagesize configuration option. Signed-off-by: Dmitry Patsura <[email protected]>
1 parent 09ad115 commit 41af38f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,6 +1709,11 @@ case "${host}" in
17091709
LG_PAGE=14
17101710
fi
17111711
;;
1712+
aarch64-unknown-linux-*)
1713+
if test "x$LG_PAGE" = "xdetect"; then
1714+
LG_PAGE=16
1715+
fi
1716+
;;
17121717
esac
17131718
if test "x$LG_PAGE" = "xdetect"; then
17141719
AC_CACHE_CHECK([LG_PAGE],
@@ -2663,6 +2668,8 @@ AC_MSG_RESULT([INCLUDEDIR : ${INCLUDEDIR}])
26632668
AC_MSG_RESULT([LIBDIR : ${LIBDIR}])
26642669
AC_MSG_RESULT([MANDIR : ${MANDIR}])
26652670
AC_MSG_RESULT([])
2671+
AC_MSG_RESULT([LG_PAGE : ${LG_PAGE}])
2672+
AC_MSG_RESULT([])
26662673
AC_MSG_RESULT([srcroot : ${srcroot}])
26672674
AC_MSG_RESULT([abs_srcroot : ${abs_srcroot}])
26682675
AC_MSG_RESULT([objroot : ${objroot}])

0 commit comments

Comments
 (0)