3 $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/NetBSD-os.h,v 1.9 2009/08/30 19:17:55 rswindells Rel $
5 This code was written as part of the CMU Common Lisp project at
6 Carnegie Mellon University, and has been placed in the public domain.
13 #include <sys/param.h>
14 #include <sys/types.h>
16 #include <sys/signal.h>
21 typedef caddr_t os_vm_address_t;
22 typedef size_t os_vm_size_t;
23 typedef off_t os_vm_offset_t;
24 typedef int os_vm_prot_t;
25 #define os_context_t ucontext_t
27 #define OS_VM_PROT_READ PROT_READ
28 #define OS_VM_PROT_WRITE PROT_WRITE
29 #define OS_VM_PROT_EXECUTE PROT_EXEC
32 #define OS_VM_DEFAULT_PAGESIZE 8192
34 #define OS_VM_DEFAULT_PAGESIZE 4096
37 #define HANDLER_ARGS int signal, siginfo_t *code, ucontext_t *context
38 #define CODE(code) ((code) ? code->si_code : 0)
39 #define RESTORE_FPU(context) restore_fpu(context)
41 void restore_fpu(ucontext_t *);
43 #define PROTECTION_VIOLATION_SIGNAL SIGSEGV
45 #endif /* _NETBSD_OS_H_ */