X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fruntime%2Flinux-os.c;h=4a3f99491ca450c561a6235ecd30e03fe361d7dc;hb=9603675940cce3bcac93b354dca62d20c991cbce;hp=f50b7b1143258266828cda224f3c32253076419f;hpb=216de219be8457625914aea1cefe08225a608ecd;p=sbcl.git diff --git a/src/runtime/linux-os.c b/src/runtime/linux-os.c index f50b7b1..4a3f994 100644 --- a/src/runtime/linux-os.c +++ b/src/runtime/linux-os.c @@ -201,7 +201,7 @@ os_init(char *argv[], char *envp[]) * kernel versions on some architectures (for example PPC). FIXME: * possibly the same should be done on other architectures too. */ - os_vm_page_size = BACKEND_PAGE_SIZE; + os_vm_page_size = BACKEND_PAGE_BYTES; /* KLUDGE: Disable memory randomization on new Linux kernels * by setting a personality flag and re-executing. (We need @@ -216,7 +216,9 @@ os_init(char *argv[], char *envp[]) /* Some old kernels will apparently lose unsupported personality flags * on exec() */ && ((minor_version == 6 && patch_version >= 11) - || (minor_version > 6))) + || (minor_version > 6) + /* This is what RHEL 3 reports */ + || (minor_version == 4 && patch_version > 20))) || major_version >= 3) { int pers = personality(0xffffffffUL);