2 * This software is part of the SBCL system. See the README file for
5 * This software is derived from the CMU CL system, which was
6 * written at Carnegie Mellon University and released into the
7 * public domain. The software is in the public domain and is
8 * provided with absolutely no warranty. See the COPYING and CREDITS
9 * files for more information.
14 #include <sys/fcntl.h>
18 #include "target-arch-os.h"
19 #include "target-arch.h"
21 /* FIXME: Stolen from CMUCL. Investigate. */
22 typedef unsigned long os_vm_address_t
;
23 typedef long os_vm_size_t
;
24 typedef off_t os_vm_offset_t
;
25 typedef int os_vm_prot_t
;
27 /* typedef struct ucontext os_context_t;*/
29 #define OS_VM_PROT_READ PROT_READ
30 #define OS_VM_PROT_WRITE PROT_WRITE
31 #define OS_VM_PROT_EXECUTE PROT_EXEC
33 #define SIG_MEMORY_FAULT SIGSEGV
35 #define SIG_INTERRUPT_THREAD (SIGRTMIN)
36 #define SIG_STOP_FOR_GC (SIGRTMIN+1)
37 #define SIG_RESUME_FROM_GC (SIGRTMIN+2)
40 typedef int os_context_register_t
;