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.
23 static void ensure_space(lispobj *start, unsigned long size)
25 if (os_validate((os_vm_address_t)start,(os_vm_size_t)size)==NULL) {
27 "ensure_space: failed to validate %ld bytes at 0x%08lx\n",
29 (unsigned long)start);
36 static os_vm_address_t holes[] = HOLES;
38 static void make_holes(void)
42 for (i = 0; i < sizeof(holes)/sizeof(holes[0]); i++) {
43 if (os_validate(holes[i], HOLE_SIZE) == NULL) {
45 "make_holes: failed to validate %ld bytes at 0x%08X\n",
47 (unsigned long)holes[i]);
50 os_protect(holes[i], HOLE_SIZE, 0);
58 printf("validating memory ...");
62 ensure_space( (lispobj *)READ_ONLY_SPACE_START, READ_ONLY_SPACE_SIZE);
63 ensure_space( (lispobj *)STATIC_SPACE_START , STATIC_SPACE_SIZE);
64 ensure_space( (lispobj *)DYNAMIC_SPACE_START , DYNAMIC_SPACE_SIZE);
65 ensure_space( (lispobj *)CONTROL_STACK_START , CONTROL_STACK_SIZE);
66 ensure_space( (lispobj *)BINDING_STACK_START , BINDING_STACK_SIZE);