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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations)
Sun Aug 30 19:17:55 2009 UTC (4 years, 7 months ago) by rswindells
Branch: MAIN
CVS Tags: sparc-tramp-assem-base, post-merge-intl-branch, intl-branch-working-2010-02-19-1000, unicode-string-buffer-impl-base, release-20b-pre1, release-20b-pre2, unicode-string-buffer-base, sparc-tramp-assem-2010-07-19, amd64-dd-start, 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-11, snapshot-2009-12, cross-sparc-branch-base, intl-branch-base, HEAD
Branch point for: cross-sparc-branch, RELEASE-20B-BRANCH, unicode-string-buffer-branch, sparc-tramp-assem-branch, amd64-dd-branch, unicode-string-buffer-impl-branch, intl-branch, cross-sol-x86-branch, intl-2-branch
Changes since 1.8: +4 -1 lines
File MIME type: text/plain
Add new FPU interface code.
1 /*
2
3 $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/NetBSD-os.h,v 1.9 2009/08/30 19:17:55 rswindells Rel $
4
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.
7
8 */
9
10 #ifndef _NETBSD_OS_H_
11 #define _NETBSD_OS_H_
12
13 #include <sys/param.h>
14 #include <sys/types.h>
15 #include <sys/mman.h>
16 #include <sys/signal.h>
17 #include <ucontext.h>
18 #include <string.h>
19 #include <unistd.h>
20
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
26
27 #define OS_VM_PROT_READ PROT_READ
28 #define OS_VM_PROT_WRITE PROT_WRITE
29 #define OS_VM_PROT_EXECUTE PROT_EXEC
30
31 #if defined(sparc)
32 #define OS_VM_DEFAULT_PAGESIZE 8192
33 #else
34 #define OS_VM_DEFAULT_PAGESIZE 4096
35 #endif
36
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)
40
41 void restore_fpu(ucontext_t *);
42
43 #define PROTECTION_VIOLATION_SIGNAL SIGSEGV
44
45 #endif /* _NETBSD_OS_H_ */

  ViewVC Help
Powered by ViewVC 1.1.5