fpu.c (80426) | fpu.c (81493) |
---|---|
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/amd64/amd64/fpu.c 80426 2001-07-26 23:47:04Z peter $ | 35 * $FreeBSD: head/sys/amd64/amd64/fpu.c 81493 2001-08-10 22:53:32Z jhb $ |
36 */ 37 38#include "opt_cpu.h" 39#include "opt_debug_npx.h" 40#include "opt_math_emulate.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> --- 212 unchanged lines hidden (view full) --- 256 * interrupt. Control will eventually return to the instruction 257 * that caused it and it will repeat. We will eventually (usually 258 * soon) win the race to handle the interrupt properly. 259 */ 260 p = PCPU_GET(npxproc); 261 if (p != NULL) { 262 p->p_addr->u_pcb.pcb_flags |= PCB_NPXTRAP; 263 mtx_lock_spin(&sched_lock); | 36 */ 37 38#include "opt_cpu.h" 39#include "opt_debug_npx.h" 40#include "opt_math_emulate.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> --- 212 unchanged lines hidden (view full) --- 256 * interrupt. Control will eventually return to the instruction 257 * that caused it and it will repeat. We will eventually (usually 258 * soon) win the race to handle the interrupt properly. 259 */ 260 p = PCPU_GET(npxproc); 261 if (p != NULL) { 262 p->p_addr->u_pcb.pcb_flags |= PCB_NPXTRAP; 263 mtx_lock_spin(&sched_lock); |
264 aston(p); | 264 p->p_sflag |= PS_ASTPENDING; |
265 mtx_unlock_spin(&sched_lock); 266 } 267} 268 269/* 270 * XXX these "local" variables of npx_probe() are non-local so that 271 * npxprobe1() can abuse them. 272 */ --- 770 unchanged lines hidden --- | 265 mtx_unlock_spin(&sched_lock); 266 } 267} 268 269/* 270 * XXX these "local" variables of npx_probe() are non-local so that 271 * npxprobe1() can abuse them. 272 */ --- 770 unchanged lines hidden --- |