/[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.8 - (show annotations)
Tue Sep 1 13:00:44 1998 UTC (15 years, 7 months ago) by dtc
Branch: MAIN
Changes since 1.7: +2 -2 lines
File MIME type: text/plain
Fix a typo in the CONTROL_STACK_START for linux.
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.8 1998/09/01 13:00:44 dtc 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 * Linux:
24 * 0x00000000->0x08000000 128M Unused.
25 * 0x08000000->0x10000000 128M C program and memory allocation.
26 * 0x10000000->0x20000000 256M Read-Only Space.
27 * 0x20000000->0x28000000 128M Binding stack growing up.
28 * 0x28000000->0x38000000 256M Static Space.
29 * 0x38000000->0x40000000 128M Control stack growing down.
30 * 0x40000000->0x48000000 128M Reserved for shared libraries.
31 * 0x48000000->0xB8000000 1.75G Dynamic Space.
32 *
33 */
34
35 #define READ_ONLY_SPACE_START (0x10000000)
36 #define READ_ONLY_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
37
38 #define STATIC_SPACE_START (0x28000000)
39 #define STATIC_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
40
41 #ifdef __FreeBSD__
42 #define BINDING_STACK_START (0x38000000)
43 #define BINDING_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
44 #define CONTROL_STACK_START (0x40000000)
45 #define CONTROL_STACK_SIZE (0x08000000) /* 128MB */
46 #endif
47
48 #ifdef __linux__
49 #define BINDING_STACK_START (0x20000000)
50 #define BINDING_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
51 #define CONTROL_STACK_START (0x38001000)
52 #define CONTROL_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
53 #endif
54
55 #define CONTROL_STACK_END (CONTROL_STACK_START + CONTROL_STACK_SIZE)
56
57 /* Note that GENCGC only uses dynamic_space 0. */
58 #define DYNAMIC_0_SPACE_START (0x48000000)
59 #ifdef GENCGC
60 #ifdef __FreeBSD__
61 #define DYNAMIC_SPACE_SIZE (0x40000000) /* May be up to 2GB */
62 #endif
63 #ifdef __linux__
64 #define DYNAMIC_SPACE_SIZE (0x40000000) /* May be up to 1.75GB */
65 #endif
66 #else
67 #define DYNAMIC_SPACE_SIZE (0x04000000) /* 64MB */
68 #endif
69
70 #define DYNAMIC_1_SPACE_START (DYNAMIC_0_SPACE_START + DYNAMIC_SPACE_SIZE)

  ViewVC Help
Powered by ViewVC 1.1.5