diff options
author | kib <kib@FreeBSD.org> | 2010-06-23 11:12:58 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-06-23 11:12:58 +0000 |
commit | 6375d4e4dbfd5685b41e1a8c5bab47946781e84d (patch) | |
tree | 835f0e5151b469ebe9a3379bc0ce7594ef78b5f6 /sys/kern/subr_trap.c | |
parent | b698c6254337111160752bcb9403f907d8001225 (diff) | |
download | FreeBSD-src-6375d4e4dbfd5685b41e1a8c5bab47946781e84d.zip FreeBSD-src-6375d4e4dbfd5685b41e1a8c5bab47946781e84d.tar.gz |
Remove the support for int13 FPU exception reporting on i386. It is
believed that all 486-class CPUs FreeBSD is capable to run on, either
have no FPU and cannot use external coprocessor, or have FPU on the
package and can use #MF.
Reviewed by: bde
Tested by: pho (previous version)
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r-- | sys/kern/subr_trap.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 90145ee..19bd5d4 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -46,9 +46,6 @@ __FBSDID("$FreeBSD$"); #include "opt_ktrace.h" #include "opt_kdtrace.h" -#ifdef __i386__ -#include "opt_npx.h" -#endif #include "opt_sched.h" #include <sys/param.h> @@ -75,7 +72,6 @@ __FBSDID("$FreeBSD$"); #include <security/audit/audit.h> #include <machine/cpu.h> -#include <machine/pcb.h> #ifdef XEN #include <vm/vm.h> @@ -147,10 +143,6 @@ ast(struct trapframe *framep) struct proc *p; int flags; int sig; -#if defined(DEV_NPX) && !defined(SMP) - int ucode; - ksiginfo_t ksi; -#endif td = curthread; p = td->td_proc; @@ -190,19 +182,6 @@ ast(struct trapframe *framep) psignal(p, SIGVTALRM); PROC_UNLOCK(p); } -#if defined(DEV_NPX) && !defined(SMP) - if (PCPU_GET(curpcb)->pcb_flags & PCB_NPXTRAP) { - atomic_clear_int(&PCPU_GET(curpcb)->pcb_flags, - PCB_NPXTRAP); - ucode = npxtrap(); - if (ucode != -1) { - ksiginfo_init_trap(&ksi); - ksi.ksi_signo = SIGFPE; - ksi.ksi_code = ucode; - trapsignal(td, &ksi); - } - } -#endif if (flags & TDF_PROFPEND) { PROC_LOCK(p); psignal(p, SIGPROF); |