Deleted Added
full compact
ucontext.h (202175) ucontext.h (204557)
1/*
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Ralph Campbell.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 17 unchanged lines hidden (view full) ---

26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)ucontext.h 8.1 (Berkeley) 6/10/93
33 * JNPR: ucontext.h,v 1.2 2007/08/09 11:23:32 katta
1/*
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Ralph Campbell.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 17 unchanged lines hidden (view full) ---

26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)ucontext.h 8.1 (Berkeley) 6/10/93
33 * JNPR: ucontext.h,v 1.2 2007/08/09 11:23:32 katta
34 * $FreeBSD: head/sys/mips/include/ucontext.h 202175 2010-01-12 21:36:08Z imp $
34 * $FreeBSD: head/sys/mips/include/ucontext.h 204557 2010-03-02 07:27:30Z imp $
35 */
36
37#ifndef _MACHINE_UCONTEXT_H_
38#define _MACHINE_UCONTEXT_H_
39
40#ifndef _LOCORE
41
42typedef struct __mcontext {

--- 10 unchanged lines hidden (view full) ---

53 int mc_fpused; /* fp has been used */
54 f_register_t mc_fpregs[33]; /* fp regs 0 to 31 and csr */
55 register_t mc_fpc_eir; /* fp exception instruction reg */
56 void *mc_tls; /* pointer to TLS area */
57 int __spare__[8]; /* XXX reserved */
58} mcontext_t;
59#endif
60
35 */
36
37#ifndef _MACHINE_UCONTEXT_H_
38#define _MACHINE_UCONTEXT_H_
39
40#ifndef _LOCORE
41
42typedef struct __mcontext {

--- 10 unchanged lines hidden (view full) ---

53 int mc_fpused; /* fp has been used */
54 f_register_t mc_fpregs[33]; /* fp regs 0 to 31 and csr */
55 register_t mc_fpc_eir; /* fp exception instruction reg */
56 void *mc_tls; /* pointer to TLS area */
57 int __spare__[8]; /* XXX reserved */
58} mcontext_t;
59#endif
60
61#if defined(__mips_n64) || defined(__mips_n32)
62#define SZREG 8
61#ifndef SZREG
62#if defined(__mips_o32)
63#define SZREG 4
63#else
64#else
64#define SZREG 4
65#define SZREG 8
65#endif
66#endif
67#endif
66
67/* offsets into mcontext_t */
68#define UCTX_REG(x) (4 + SZREG + (x)*SZREG)
69
70#define UCR_ZERO UCTX_REG(0)
71#define UCR_AT UCTX_REG(1)
72#define UCR_V0 UCTX_REG(2)
73#define UCR_V1 UCTX_REG(3)

--- 33 unchanged lines hidden ---
68
69/* offsets into mcontext_t */
70#define UCTX_REG(x) (4 + SZREG + (x)*SZREG)
71
72#define UCR_ZERO UCTX_REG(0)
73#define UCR_AT UCTX_REG(1)
74#define UCR_V0 UCTX_REG(2)
75#define UCR_V1 UCTX_REG(3)

--- 33 unchanged lines hidden ---