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.
11 #include <sys/param.h>
12 #include <sys/types.h>
14 #include <sys/signal.h>
19 typedef caddr_t os_vm_address_t;
20 typedef size_t os_vm_size_t;
21 typedef off_t os_vm_offset_t;
22 typedef int os_vm_prot_t;
23 #define os_context_t ucontext_t
25 #define OS_VM_PROT_READ PROT_READ
26 #define OS_VM_PROT_WRITE PROT_WRITE
27 #define OS_VM_PROT_EXECUTE PROT_EXEC
30 #define OS_VM_DEFAULT_PAGESIZE 8192
32 #define OS_VM_DEFAULT_PAGESIZE 4096
35 #define HANDLER_ARGS int signal, siginfo_t *code, ucontext_t *context
36 #define CODE(code) ((code) ? code->si_code : 0)
37 #define RESTORE_FPU(context) restore_fpu(context)
39 void restore_fpu(ucontext_t *);
41 #define PROTECTION_VIOLATION_SIGNAL SIGSEGV
43 #endif /* _NETBSD_OS_H_ */