/[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.2.2.4 - (show annotations)
Sat Mar 23 18:51:10 2002 UTC (12 years, 1 month ago) by pw
Branch: RELENG_18
CVS Tags: RELEASE_18d
Changes since 1.2.2.3: +37 -3 lines
File MIME type: text/plain
Mega commit to bring RELENG_18 branch in sync with HEAD in preparation
for release tagging 18d.
1 /*
2 *
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 * $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/x86-validate.h,v 1.2.2.4 2002/03/23 18:51:10 pw Exp $
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 *
24 * OpenBSD and NetBSD:
25 * 0x00000000->0x0E000000 224M C program and memory allocation.
26 * 0x0E000000->0x10000000 32M Foreign segment.
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.75GB Dynamic Space.
33 * 0xE0000000-> 256M C stack - Alien stack.
34 *
35 * Linux:
36 * 0x00000000->0x08000000 128M Unused.
37 * 0x08000000->0x10000000 128M C program and memory allocation.
38 * 0x10000000->0x20000000 256M Read-Only Space.
39 * 0x20000000->0x28000000 128M Binding stack growing up.
40 * 0x28000000->0x38000000 256M Static Space.
41 * 0x38000000->0x40000000 128M Control stack growing down.
42 * 0x40000000->0x48000000 128M Reserved for shared libraries.
43 * 0x48000000->0xB8000000 1.75G Dynamic Space.
44 *
45 */
46
47 #ifdef __FreeBSD__
48 #define READ_ONLY_SPACE_START (0x10000000)
49 #define READ_ONLY_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
50
51 #define STATIC_SPACE_START (0x28f00000)
52 #define STATIC_SPACE_SIZE (0x0f0ff000) /* 241MB - 1 page */
53
54 #define BINDING_STACK_START (0x38000000)
55 #define BINDING_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
56
57 #define CONTROL_STACK_START (0x40000000)
58 #define CONTROL_STACK_SIZE (0x08000000) /* 128MB */
59
60 #define DYNAMIC_0_SPACE_START (0x48000000)
61 #ifdef GENCGC
62 #define DYNAMIC_SPACE_SIZE (0x40000000) /* May be up to 2GB */
63 #else
64 #define DYNAMIC_SPACE_SIZE (0x04000000) /* 64MB */
65 #endif
66 #define DEFAULT_DYNAMIC_SPACE_SIZE (0x20000000) /* 512MB */
67 #endif
68
69
70 #if defined(__OpenBSD__) || defined(__NetBSD__)
71 #define READ_ONLY_SPACE_START (0x10000000)
72 #define READ_ONLY_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
73
74 #define STATIC_SPACE_START (0x28000000)
75 #define STATIC_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
76
77 #define BINDING_STACK_START (0x20000000)
78 #define BINDING_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
79
80 #define CONTROL_STACK_START (0x38000000)
81 #define CONTROL_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
82
83 #define DYNAMIC_0_SPACE_START (0x48000000)
84 #ifdef GENCGC
85 #define DYNAMIC_SPACE_SIZE (0x68000000) /* 1.625GB */
86 #else
87 #define DYNAMIC_SPACE_SIZE (0x04000000) /* 64MB */
88 #endif
89 #define DEFAULT_DYNAMIC_SPACE_SIZE (0x20000000) /* 512MB */
90 #endif
91
92
93 #ifdef __linux__
94 #define READ_ONLY_SPACE_START (0x10000000)
95 #define READ_ONLY_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
96
97 #define STATIC_SPACE_START (0x28000000)
98 #define STATIC_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
99
100 #define BINDING_STACK_START (0x20000000)
101 #define BINDING_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
102
103 #define CONTROL_STACK_START (0x38000000)
104 #define CONTROL_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
105
106 #define DYNAMIC_0_SPACE_START (0x48000000)
107 #ifdef GENCGC
108 #define DYNAMIC_SPACE_SIZE (0x68000000) /* 1.625GB */
109 #else
110 #define DYNAMIC_SPACE_SIZE (0x04000000) /* 64MB */
111 #endif
112 #define DEFAULT_DYNAMIC_SPACE_SIZE (0x20000000) /* 512MB */
113 #endif
114
115
116 #define CONTROL_STACK_END (CONTROL_STACK_START + CONTROL_STACK_SIZE)
117
118 /* Note that GENCGC only uses dynamic_space 0. */
119 #define DYNAMIC_1_SPACE_START (DYNAMIC_0_SPACE_START + DYNAMIC_SPACE_SIZE)

  ViewVC Help
Powered by ViewVC 1.1.5