/[cmucl]/src/lisp/Linux-os.h
ViewVC logotype

Contents of /src/lisp/Linux-os.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.30 - (show annotations)
Mon Nov 2 15:05:07 2009 UTC (4 years, 5 months ago) by rtoy
Branch: MAIN
CVS Tags: sparc-tramp-assem-base, post-merge-intl-branch, intl-branch-working-2010-02-19-1000, release-20b-pre1, release-20b-pre2, sparc-tramp-assem-2010-07-19, intl-2-branch-base, GIT-CONVERSION, cross-sol-x86-merged, intl-branch-working-2010-02-11-1000, RELEASE_20b, cross-sol-x86-base, snapshot-2010-12, snapshot-2010-11, snapshot-2011-09, snapshot-2011-06, snapshot-2011-07, snapshot-2011-04, snapshot-2011-02, snapshot-2011-03, snapshot-2011-01, pre-merge-intl-branch, snapshot-2010-05, snapshot-2010-04, snapshot-2010-07, snapshot-2010-06, snapshot-2010-01, snapshot-2010-03, snapshot-2010-02, snapshot-2010-08, cross-sol-x86-2010-12-20, intl-branch-2010-03-18-1300, snapshot-2009-12, cross-sparc-branch-base, intl-branch-base, HEAD
Branch point for: cross-sparc-branch, RELEASE-20B-BRANCH, sparc-tramp-assem-branch, intl-branch, cross-sol-x86-branch, intl-2-branch
Changes since 1.29: +0 -3 lines
File MIME type: text/plain
Revert previous changes.  They were supposed to go on
amd64-dd-branch.
1 /* $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/Linux-os.h,v 1.30 2009/11/02 15:05:07 rtoy Rel $
2
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.
5
6 Morfed from the FreeBSD file by Peter Van Eynde (July 1996)
7 Alpha support by Julian Dolby, 1999.
8
9 */
10
11 #ifndef _LINUX_OS_H_
12 #define _LINUX_OS_H_
13
14 #include <stdlib.h>
15 #include <signal.h>
16 #include <sys/param.h>
17 #include <sys/types.h>
18 #include <sys/mman.h>
19 #include <sys/signal.h>
20 #include <string.h>
21 /* #include <dlfcn.h> */
22 #include <sys/time.h>
23 #include <sys/stat.h>
24 #include <unistd.h>
25 #include <sys/syscall.h>
26 #include <asm/unistd.h>
27 #include <errno.h>
28
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
34
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 */
38
39 #ifndef __alpha__
40 #define OS_VM_DEFAULT_PAGESIZE 4096 /* like hpux */
41 #else
42 #define OS_VM_DEFAULT_PAGESIZE 8192 /* like hpux */
43 #endif
44
45 void restore_fpu(ucontext_t *);
46
47 #define HANDLER_ARGS int signal, siginfo_t *code, ucontext_t *context
48 #define CODE(code) ((code) ? code->si_code : 0)
49 #define RESTORE_FPU(context) restore_fpu(context)
50
51 #define PROTECTION_VIOLATION_SIGNAL SIGSEGV
52
53 #endif /* _LINUX_OS_H_ */

  ViewVC Help
Powered by ViewVC 1.1.5