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.
26 ensure_space(lispobj *start, unsigned long size)
28 if (os_validate((os_vm_address_t)start,(os_vm_size_t)size)==NULL) {
30 "ensure_space: failed to validate %ld bytes at 0x%08lx\n",
32 (unsigned long)start);
34 "(hint: Try \"ulimit -a\"; maybe you should increase memory limits.)\n");
43 printf("validating memory ...");
47 ensure_space( (lispobj *)READ_ONLY_SPACE_START, READ_ONLY_SPACE_SIZE);
48 ensure_space( (lispobj *)STATIC_SPACE_START , STATIC_SPACE_SIZE);
49 #ifdef LISP_FEATURE_GENCGC
50 ensure_space( (lispobj *)DYNAMIC_SPACE_START , DYNAMIC_SPACE_SIZE);
52 ensure_space( (lispobj *)DYNAMIC_0_SPACE_START , DYNAMIC_SPACE_SIZE);
53 ensure_space( (lispobj *)DYNAMIC_1_SPACE_START , DYNAMIC_SPACE_SIZE);
61 void protect_control_stack_guard_page(pid_t t_id, int protect_p) {
62 struct thread *th = find_thread_by_pid(t_id);
63 os_protect(CONTROL_STACK_GUARD_PAGE(th),
64 os_vm_page_size,protect_p ?
65 (OS_VM_PROT_READ|OS_VM_PROT_EXECUTE) : OS_VM_PROT_ALL);