1 /* $NetBSD: svr4_machdep.h,v 1.4 2006/08/17 17:11:27 christos Exp $ */
4 * Copyright (c) 2001 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
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.
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
38 #ifndef _MIPS_SVR4_MACHDEP_H_
39 #define _MIPS_SVR4_MACHDEP_H_
41 #include <sys/cdefs.h>
44 /* From Irix's sys/ucontext.h */
46 typedef unsigned int svr4_greg_t
;
49 typedef svr4_greg_t svr4_gregset_t
[SVR4_NGREG
];
51 typedef svr4_greg_t svr4_gregset_t
[36];
54 typedef struct svr4___fpregset
{
56 double svr4___fp_dregs
[16];
57 float svr4___fp_fregs
[32];
58 unsigned int svr4___fp_regs
[32];
60 unsigned int svr4___fp_csr
;
61 unsigned int svr4___fp_pad
;
64 typedef struct svr4_mcontext
{
65 svr4_gregset_t svr4___gregs
;
66 svr4_fpregset_t svr4___fpregs
;
69 #endif /* _MIPS_SVR4_MACHDEP_H_ */