1.0.5.43: change memory layout on FreeBSD
authorNIIMI Satoshi <sa2c@users.sourceforge.net>
Tue, 8 May 2007 10:44:01 +0000 (10:44 +0000)
committerNIIMI Satoshi <sa2c@users.sourceforge.net>
Tue, 8 May 2007 10:44:01 +0000 (10:44 +0000)
* Move read-only-space and neighbours to lower space to avoid
  potential conflicts with runtime user space.

* Move dynamic-space to higher space so that kern.maxdsiz can be
  increased at least 1GB.

Brief memory layout of FreeBSD:

+------------+ -- 0x00000000
|    free    |
+------------+ -- 0x08000000
| user space |
+------------+ -- brk (grows downward)
~            ~
+------------+ -- 0x28000000 (0x08000000 + maxdsiz)
| mmap,shlib |
~            ~
+----------- + -- stack top (grows upward)
| stack space|
+------------+ -- 0xC0000000
|   kernel   |
+------------+ -- 0xFFFFFFFF

src/compiler/x86/parms.lisp
version.lisp-expr

index 33b2d4a..ac5c666 100644 (file)
 
 #!+freebsd
 (progn
-  (def!constant read-only-space-start     #x10000000)
-  (def!constant read-only-space-end       #x100ff000)
+  (def!constant read-only-space-start     #x01000000)
+  (def!constant read-only-space-end       #x010ff000)
 
-  (def!constant static-space-start        #x10100000)
-  (def!constant static-space-end          #x101ff000)
+  (def!constant static-space-start        #x01100000)
+  (def!constant static-space-end          #x011ff000)
 
-  (def!constant dynamic-space-start       #x48000000)
-  (def!constant dynamic-space-end         #x88000000)
+  (def!constant dynamic-space-start       #x60000000)
+  (def!constant dynamic-space-end         #xA0000000)
 
-  (def!constant linkage-table-space-start #x10200000)
-  (def!constant linkage-table-space-end   #x102ff000))
+  (def!constant linkage-table-space-start #x01200000)
+  (def!constant linkage-table-space-end   #x012ff000))
 
 #!+openbsd
 (progn
index 01665d5..eaca8ad 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.5.42"
+"1.0.5.43"