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.
6 Morfed from the FreeBSD file by Peter Van Eynde (July 1996)
7 Alpha support by Julian Dolby, 1999.
16 #include <sys/param.h>
17 #include <sys/types.h>
19 #include <sys/signal.h>
21 /* #include <dlfcn.h> */
25 #include <sys/syscall.h>
26 #include <asm/unistd.h>
29 typedef caddr_t os_vm_address_t; /* like hpux */
30 typedef size_t os_vm_size_t; /* like hpux */
31 typedef off_t os_vm_offset_t; /* like hpux */
32 typedef int os_vm_prot_t; /* like hpux */
33 #define os_context_t ucontext_t
35 #define OS_VM_PROT_READ PROT_READ /* like hpux */
36 #define OS_VM_PROT_WRITE PROT_WRITE /* like hpux */
37 #define OS_VM_PROT_EXECUTE PROT_EXEC /* like hpux */
40 #define OS_VM_DEFAULT_PAGESIZE 4096 /* like hpux */
42 #define OS_VM_DEFAULT_PAGESIZE 8192 /* like hpux */
45 void restore_fpu(ucontext_t *);
47 #define HANDLER_ARGS int signal, siginfo_t *code, void *context
48 #define CODE(code) ((code) ? code->si_code : 0)
49 #define RESTORE_FPU(context) restore_fpu(context)
51 #define PROTECTION_VIOLATION_SIGNAL SIGSEGV
53 #endif /* _LINUX_OS_H_ */