Deleted Added
full compact
ia32_reg.h (147692) ia32_reg.h (205014)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * from: @(#)reg.h 5.5 (Berkeley) 1/18/91
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * from: @(#)reg.h 5.5 (Berkeley) 1/18/91
33 * $FreeBSD: head/sys/compat/ia32/ia32_reg.h 147692 2005-06-30 07:49:22Z peter $
33 * $FreeBSD: head/sys/compat/ia32/ia32_reg.h 205014 2010-03-11 14:49:06Z nwhitehorn $
34 */
35
36#ifndef _COMPAT_IA32_IA32_REG_H_
37#define _COMPAT_IA32_IA32_REG_H_
38
39/*
40 * Register set accessible via /proc/$pid/regs and PT_{SET,GET}REGS.
41 */

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

100/* Floating point context */
101struct save87 {
102 struct env87 sv_env; /* floating point control/status */
103 struct fpacc87 sv_ac[8]; /* accumulator contents, 0-7 */
104 u_char sv_pad0[4]; /* padding for (now unused) saved status word */
105 u_char sv_pad[64]; /* padding; used by emulators */
106};
107
34 */
35
36#ifndef _COMPAT_IA32_IA32_REG_H_
37#define _COMPAT_IA32_IA32_REG_H_
38
39/*
40 * Register set accessible via /proc/$pid/regs and PT_{SET,GET}REGS.
41 */

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

100/* Floating point context */
101struct save87 {
102 struct env87 sv_env; /* floating point control/status */
103 struct fpacc87 sv_ac[8]; /* accumulator contents, 0-7 */
104 u_char sv_pad0[4]; /* padding for (now unused) saved status word */
105 u_char sv_pad[64]; /* padding; used by emulators */
106};
107
108
109/*
108/*
110 * Alternative layouts for <sys/procfs.h>
111 * Used in core dumps, the reason for this file existing.
112 */
113struct prstatus32 {
114 int pr_version;
115 u_int pr_statussz;
116 u_int pr_gregsetsz;
117 u_int pr_fpregsetsz;
118 int pr_osreldate;
119 int pr_cursig;
120 pid_t pr_pid;
121 struct reg32 pr_reg;
122};
123
124struct prpsinfo32 {
125 int pr_version;
126 u_int pr_psinfosz;
127 char pr_fname[PRFNAMESZ+1];
128 char pr_psargs[PRARGSZ+1];
129};
130
131/*
132 * Wrappers and converters.
133 */
134int fill_regs32(struct thread *, struct reg32 *);
135int set_regs32(struct thread *, struct reg32 *);
136int fill_fpregs32(struct thread *, struct fpreg32 *);
137int set_fpregs32(struct thread *, struct fpreg32 *);
138int fill_dbregs32(struct thread *, struct dbreg32 *);
139int set_dbregs32(struct thread *, struct dbreg32 *);
140
141#endif /* !_COMPAT_IA32_IA32_REG_H_ */
109 * Wrappers and converters.
110 */
111int fill_regs32(struct thread *, struct reg32 *);
112int set_regs32(struct thread *, struct reg32 *);
113int fill_fpregs32(struct thread *, struct fpreg32 *);
114int set_fpregs32(struct thread *, struct fpreg32 *);
115int fill_dbregs32(struct thread *, struct dbreg32 *);
116int set_dbregs32(struct thread *, struct dbreg32 *);
117
118#endif /* !_COMPAT_IA32_IA32_REG_H_ */