/[cmucl]/src/lisp/x86-validate.h
ViewVC logotype

Contents of /src/lisp/x86-validate.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (hide annotations)
Tue Oct 24 13:32:32 2000 UTC (13 years, 5 months ago) by dtc
Branch: MAIN
Changes since 1.11: +4 -2 lines
File MIME type: text/plain
o Add the command line switch -dynamic-space-size for setting the size
  of the dynamic space. DYNAMIC_SPACE_SIZE now defines the maximum
  size, and when defined DEFAULT_DYNAMIC_SPACE_SIZE gives the default.

o Increase the maximum dynamic space size for Linux x86 to 1.625GB,
  with the default remaining at 512MB.

o Define the default dynamic space size for FreeBSD x86 to also be 512MB,
  with a maximum of 2GB.
1 ram 1.1 /*
2 dtc 1.7 *
3     * This code was written as part of the CMU Common Lisp project at
4     * Carnegie Mellon University, and has been placed in the public domain.
5     *
6 dtc 1.12 * $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/x86-validate.h,v 1.12 2000/10/24 13:32:32 dtc Exp $
7 dtc 1.7 *
8     */
9    
10     /*
11     * Address map:
12     *
13     * FreeBSD:
14     * 0x00000000->0x0E000000 224M C program and memory allocation.
15     * 0x0E000000->0x10000000 32M Foreign segment.
16     * 0x10000000->0x20000000 256M Read-Only Space.
17     * 0x20000000->0x28000000 128M Reserved for shared libraries.
18     * 0x28000000->0x38000000 256M Static Space.
19     * 0x38000000->0x40000000 128M Binding stack growing up.
20     * 0x40000000->0x48000000 128M Control stack growing down.
21     * 0x48000000->0xC8000000 2GB Dynamic Space.
22     * 0xE0000000-> 256M C stack - Alien stack.
23 dtc 1.9 *
24 dtc 1.11 * Linux:
25 dtc 1.7 * 0x00000000->0x08000000 128M Unused.
26     * 0x08000000->0x10000000 128M C program and memory allocation.
27     * 0x10000000->0x20000000 256M Read-Only Space.
28     * 0x20000000->0x28000000 128M Binding stack growing up.
29     * 0x28000000->0x38000000 256M Static Space.
30     * 0x38000000->0x40000000 128M Control stack growing down.
31     * 0x40000000->0x48000000 128M Reserved for shared libraries.
32     * 0x48000000->0xB8000000 1.75G Dynamic Space.
33     *
34     */
35    
36 dtc 1.9 #ifdef __FreeBSD__
37 dtc 1.7 #define READ_ONLY_SPACE_START (0x10000000)
38     #define READ_ONLY_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
39    
40     #define STATIC_SPACE_START (0x28000000)
41     #define STATIC_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
42    
43     #define BINDING_STACK_START (0x38000000)
44     #define BINDING_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
45 dtc 1.9
46 dtc 1.7 #define CONTROL_STACK_START (0x40000000)
47     #define CONTROL_STACK_SIZE (0x08000000) /* 128MB */
48 dtc 1.9
49     #define DYNAMIC_0_SPACE_START (0x48000000)
50     #ifdef GENCGC
51     #define DYNAMIC_SPACE_SIZE (0x40000000) /* May be up to 2GB */
52     #else
53     #define DYNAMIC_SPACE_SIZE (0x04000000) /* 64MB */
54 dtc 1.7 #endif
55 dtc 1.12 #define DEFAULT_DYNAMIC_SPACE_SIZE (0x20000000) /* 512MB */
56 dtc 1.9 #endif
57    
58 ram 1.1
59 dtc 1.7 #ifdef __linux__
60 dtc 1.11 #define READ_ONLY_SPACE_START (0x10000000)
61     #define READ_ONLY_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
62 dtc 1.9
63 dtc 1.11 #define STATIC_SPACE_START (0x28000000)
64     #define STATIC_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
65 dtc 1.9
66 dtc 1.10 #define BINDING_STACK_START (0x20000000)
67 dtc 1.7 #define BINDING_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
68 dtc 1.9
69 dtc 1.10 #define CONTROL_STACK_START (0x38000000)
70 dtc 1.7 #define CONTROL_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
71 ram 1.1
72 dtc 1.10 #define DYNAMIC_0_SPACE_START (0x48000000)
73 dtc 1.4 #ifdef GENCGC
74 dtc 1.12 #define DYNAMIC_SPACE_SIZE (0x68000000) /* 1.625GB */
75 dtc 1.3 #else
76 dtc 1.4 #define DYNAMIC_SPACE_SIZE (0x04000000) /* 64MB */
77 dtc 1.3 #endif
78 dtc 1.12 #define DEFAULT_DYNAMIC_SPACE_SIZE (0x20000000) /* 512MB */
79 dtc 1.9 #endif
80 dtc 1.10
81 ram 1.1
82 dtc 1.9 #define CONTROL_STACK_END (CONTROL_STACK_START + CONTROL_STACK_SIZE)
83    
84     /* Note that GENCGC only uses dynamic_space 0. */
85 dtc 1.7 #define DYNAMIC_1_SPACE_START (DYNAMIC_0_SPACE_START + DYNAMIC_SPACE_SIZE)

  ViewVC Help
Powered by ViewVC 1.1.5