No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / mips / include / svr4_machdep.h
blob16374d610ed3bd1599dc3413deeceda277672530
1 /* $NetBSD: svr4_machdep.h,v 1.4 2006/08/17 17:11:27 christos Exp $ */
3 /*-
4 * Copyright (c) 2001 The NetBSD Foundation, Inc.
5 * All rights reserved.
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Emmanuel Dreyfus.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
32 /*
33 * This does not implement COMPAT_SVR4 for MIPS yet. For now we only
34 * have enough definitions to get some svr4_* files needed by COMPAT_IRIX
35 * to build.
38 #ifndef _MIPS_SVR4_MACHDEP_H_
39 #define _MIPS_SVR4_MACHDEP_H_
41 #include <sys/cdefs.h>
42 #include <sys/proc.h>
44 /* From Irix's sys/ucontext.h */
46 typedef unsigned int svr4_greg_t;
47 #if IRIX_ABIAPI
48 #define SVR4_NGREG 36
49 typedef svr4_greg_t svr4_gregset_t[SVR4_NGREG];
50 #else
51 typedef svr4_greg_t svr4_gregset_t[36];
52 #endif /* _ABIAPI */
54 typedef struct svr4___fpregset {
55 union {
56 double svr4___fp_dregs[16];
57 float svr4___fp_fregs[32];
58 unsigned int svr4___fp_regs[32];
59 } svr4___fp_r;
60 unsigned int svr4___fp_csr;
61 unsigned int svr4___fp_pad;
62 } svr4_fpregset_t;
64 typedef struct svr4_mcontext {
65 svr4_gregset_t svr4___gregs;
66 svr4_fpregset_t svr4___fpregs;
67 } svr4_mcontext_t;
69 #endif /* _MIPS_SVR4_MACHDEP_H_ */