X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Flinux-os.c;h=4a3f99491ca450c561a6235ecd30e03fe361d7dc;hb=29a168e2bf7a6d509dea282cc5c781aba734d87c;hp=bcc5e9f62f07018a29d5f70ab7de78fdc239a493;hpb=fe962ba01d267b92f638c8f0d19be41054219f04;p=sbcl.git diff --git a/src/runtime/linux-os.c b/src/runtime/linux-os.c index bcc5e9f..4a3f994 100644 --- a/src/runtime/linux-os.c +++ b/src/runtime/linux-os.c @@ -52,6 +52,8 @@ #include "gc.h" #if defined LISP_FEATURE_GENCGC #include "gencgc-internal.h" +#else +#include "cheneygc-internal.h" #endif #ifdef LISP_FEATURE_X86 @@ -199,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 @@ -214,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);