X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fx86%2Fbackend-parms.lisp;h=7414281959d09b1b659ecb5b37df3877535b0953;hb=70c6facc145eaf5ca368528b04df63f730746b1f;hp=44e063414dbe1dc9d467a9f67d2fc3bf832b817f;hpb=8731c1a7c1a585d190151fa881050fb5e14c0616;p=sbcl.git diff --git a/src/compiler/x86/backend-parms.lisp b/src/compiler/x86/backend-parms.lisp index 44e0634..7414281 100644 --- a/src/compiler/x86/backend-parms.lisp +++ b/src/compiler/x86/backend-parms.lisp @@ -27,7 +27,13 @@ ;;; code for it, but mostly we need it for GENESIS, which doesn't in ;;; general have our C runtime code running to ask, so instead we set ;;; it by hand. -- WHN 2001-04-15 -(setf *backend-page-size* 4096) +;;; +;;; Actually any information that we can retrieve C-side would be +;;; useless in SBCL, since it's possible for otherwise binary +;;; compatible systems to return different values for getpagesize(). +;;; -- JES, 2007-01-06 +(eval-when (:compile-toplevel :load-toplevel :execute) + (setf *backend-page-size* 4096)) ;;; comment from CMU CL: ;;; ;;; in case we ever wanted to do this for Windows NT.. @@ -38,3 +44,7 @@ ;;; Effectively, the page size is 64K. ;;; ;;; would be: (setf *backend-page-size* 65536) + +;;; The size in bytes of the GENCGC pages. Should be a multiple of the +;;; architecture code size. +(def!constant gencgc-page-size *backend-page-size*)