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.
8 #ifndef _X86_VALIDATE_NETBSD_H_
9 #define _X86_VALIDATE_NETBSD_H_
12 * Also look in compiler/x86/parms.lisp for some of the parameters.
16 * 0x00000000->0x0E000000 224M C program and memory allocation.
17 * 0x0E000000->0x10000000 32M Foreign segment.
18 * 0x10000000->0x20000000 256M Read-Only Space.
19 * 0x28000000->0x38000000 256M Static Space.
20 * 0x38000000->0x40000000 128M Binding stack growing up.
21 * 0x40000000->0x48000000 128M Control stack growing down.
22 * 0x48800000->0xB0000000 1656M Dynamic Space.
23 * 0xB0000000->0xB1000000 16M Foreign Linkage Table
24 * 0xE0000000-> 256M C stack - Alien stack.
28 #define READ_ONLY_SPACE_START (SpaceStart_TargetReadOnly)
29 #define READ_ONLY_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
31 #define STATIC_SPACE_START (SpaceStart_TargetStatic)
32 #define STATIC_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
34 #define BINDING_STACK_START (0x38000000)
35 #define BINDING_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
37 #define CONTROL_STACK_START (0x40000000)
39 #define CONTROL_STACK_SIZE (0x07fd8000) /* 128MB - SIGSTKSZ */
41 #define SIGNAL_STACK_START (0x47fd8000)
42 #define SIGNAL_STACK_SIZE SIGSTKSZ
44 #define DYNAMIC_0_SPACE_START (SpaceStart_TargetDynamic)
47 #define DYNAMIC_SPACE_SIZE (0x67800000U) /* 1.656GB */
49 #define DYNAMIC_SPACE_SIZE (0x04000000U) /* 64MB */
52 #define DEFAULT_DYNAMIC_SPACE_SIZE (0x20000000U) /* 512MB */
55 #define FOREIGN_LINKAGE_SPACE_START (LinkageSpaceStart)
56 #define FOREIGN_LINKAGE_SPACE_SIZE (0x100000) /* 1MB */