1.0.23.40: export page sizes to C with LU suffix
[sbcl.git] / src / compiler / ppc / backend-parms.lisp
index 30f38e4..cfb3bb4 100644 (file)
@@ -1,8 +1,17 @@
 (in-package "SB!VM")
 
-(setf *backend-fasl-file-type* "fasl")
-(defconstant +backend-fasl-file-implementation+ :ppc)
+(def!constant +backend-fasl-file-implementation+ :ppc)
 (setf *backend-register-save-penalty* 3)
 (setf *backend-byte-order* :big-endian)
-(setf *backend-page-size* 4096)
 
+(eval-when (:compile-toplevel :load-toplevel :execute)
+  ;; On Linux, the ABI specifies the page size to be 4k-64k, use the
+  ;; maximum of that range. FIXME: it'd be great if somebody would
+  ;; find out whether using exact multiples of the page size actually
+  ;; matters in the few places where that's done, or whether we could
+  ;; just use 4k everywhere.
+  (setf *backend-page-bytes* #!+linux 65536 #!-linux 4096))
+
+;;; The size in bytes of the GENCGC pages. Should be a multiple of the
+;;; architecture page size.
+(def!constant gencgc-page-bytes *backend-page-bytes*)