6 * This software is part of the SBCL system. See the README file for
9 * This software is derived from the CMU CL system, which was
10 * written at Carnegie Mellon University and released into the
11 * public domain. The software is in the public domain and is
12 * provided with absolutely no warranty. See the COPYING and CREDITS
13 * files for more information.
27 static void ensure_space(lispobj *start, unsigned long size)
29 if (os_validate((os_vm_address_t)start,(os_vm_size_t)size)==NULL) {
31 "ensure_space: failed to validate %ld bytes at 0x%08X\n",
33 (unsigned long)start);
40 static os_vm_address_t holes[] = HOLES;
42 static void make_holes(void)
46 for (i = 0; i < sizeof(holes)/sizeof(holes[0]); i++) {
47 if (os_validate(holes[i], HOLE_SIZE) == NULL) {
49 "make_holes: failed to validate %ld bytes at 0x%08X\n",
51 (unsigned long)holes[i]);
54 os_protect(holes[i], HOLE_SIZE, 0);
62 printf("validating memory ...");
67 read_only_space = (lispobj *) READ_ONLY_SPACE_START;
68 ensure_space(read_only_space, READ_ONLY_SPACE_SIZE);
71 static_space = (lispobj *) STATIC_SPACE_START;
72 ensure_space(static_space, STATIC_SPACE_SIZE);
75 dynamic_0_space = (lispobj *) DYNAMIC_0_SPACE_START;
76 ensure_space(dynamic_0_space, DYNAMIC_SPACE_SIZE);
78 current_dynamic_space = dynamic_0_space;
81 dynamic_1_space = (lispobj *) DYNAMIC_1_SPACE_START;
83 ensure_space(dynamic_1_space, DYNAMIC_SPACE_SIZE);
87 control_stack = (lispobj *) CONTROL_STACK_START;
89 control_stack_end = (lispobj *) (CONTROL_STACK_START
90 + CONTROL_STACK_SIZE);
92 ensure_space(control_stack, CONTROL_STACK_SIZE);
95 binding_stack = (lispobj *) BINDING_STACK_START;
96 ensure_space(binding_stack, BINDING_STACK_SIZE);