Deleted Added
full compact
npx.c (106443) npx.c (106977)
1/*-
2 * Copyright (c) 1990 William Jolitz.
3 * Copyright (c) 1991 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * from: @(#)npx.c 7.2 (Berkeley) 5/12/91
1/*-
2 * Copyright (c) 1990 William Jolitz.
3 * Copyright (c) 1991 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * from: @(#)npx.c 7.2 (Berkeley) 5/12/91
35 * $FreeBSD: head/sys/i386/isa/npx.c 106443 2002-11-05 04:03:42Z davidxu $
35 * $FreeBSD: head/sys/i386/isa/npx.c 106977 2002-11-16 06:35:53Z deischen $
36 */
37
38#include "opt_cpu.h"
39#include "opt_debug_npx.h"
40#include "opt_isa.h"
41#include "opt_math_emulate.h"
42#include "opt_npx.h"
43

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

156#define GET_FPU_CW(thread) \
157 (thread->td_pcb->pcb_save.sv_87.sv_env.en_cw)
158#define GET_FPU_SW(thread) \
159 (thread->td_pcb->pcb_save.sv_87.sv_env.en_sw)
160#endif /* CPU_ENABLE_SSE */
161
162typedef u_char bool_t;
163
36 */
37
38#include "opt_cpu.h"
39#include "opt_debug_npx.h"
40#include "opt_isa.h"
41#include "opt_math_emulate.h"
42#include "opt_npx.h"
43

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

156#define GET_FPU_CW(thread) \
157 (thread->td_pcb->pcb_save.sv_87.sv_env.en_cw)
158#define GET_FPU_SW(thread) \
159 (thread->td_pcb->pcb_save.sv_87.sv_env.en_sw)
160#endif /* CPU_ENABLE_SSE */
161
162typedef u_char bool_t;
163
164static void fpusave(union savefpu *);
165static void fpurstor(union savefpu *);
164static int npx_attach(device_t dev);
165static void npx_identify(driver_t *driver, device_t parent);
166#ifndef SMP
167static void npx_intr(void *);
168#endif
169static int npx_probe(device_t dev);
166static int npx_attach(device_t dev);
167static void npx_identify(driver_t *driver, device_t parent);
168#ifndef SMP
169static void npx_intr(void *);
170#endif
171static int npx_probe(device_t dev);
170static void fpusave(union savefpu *);
171static void fpurstor(union savefpu *);
172#ifdef I586_CPU_XXX
173static long timezero(const char *funcname,
174 void (*func)(void *buf, size_t len));
175#endif /* I586_CPU */
176
177int hw_float; /* XXX currently just alias for npx_exists */
178
179SYSCTL_INT(_hw,HW_FLOATINGPT, floatingpoint,

--- 962 unchanged lines hidden ---
172#ifdef I586_CPU_XXX
173static long timezero(const char *funcname,
174 void (*func)(void *buf, size_t len));
175#endif /* I586_CPU */
176
177int hw_float; /* XXX currently just alias for npx_exists */
178
179SYSCTL_INT(_hw,HW_FLOATINGPT, floatingpoint,

--- 962 unchanged lines hidden ---