3 $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/sunos-os.h,v 1.14 2010/12/22 02:12:52 rtoy Exp $
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.
17 #include <sys/param.h>
18 #include <sys/types.h>
25 #include <sys/fcntl.h>
32 #define sigcontext ucontext
36 typedef unsigned long os_vm_address_t;
37 typedef long os_vm_size_t;
38 typedef off_t os_vm_offset_t;
39 typedef int os_vm_prot_t;
41 #define OS_VM_PROT_READ PROT_READ
42 #define OS_VM_PROT_WRITE PROT_WRITE
43 #define OS_VM_PROT_EXECUTE PROT_EXEC
46 #define OS_VM_DEFAULT_PAGESIZE 4096
48 #define OS_VM_DEFAULT_PAGESIZE 8192
53 #define HANDLER_ARGS int signal, siginfo_t *code, void *context
54 #define CODE(code) ((code) ? code->si_code : 0)
55 typedef struct ucontext os_context_t__;
56 #define os_context_t os_context_t__
58 #define SAVE_CONTEXT() save_context()
66 extern void flush_icache(unsigned int *, unsigned int);
67 extern void save_context(void);
71 #define PROTECTION_VIOLATION_SIGNAL SIGSEGV
73 #endif /* _SUNOS_OS_H_ */