Make sure to sanitize the FP status register. Specifically this

masks all FP traps, which should not happen in the kernel.
This commit is contained in:
Marcel Moolenaar 2004-05-07 05:29:12 +00:00
parent ccc09458fa
commit 99aa060c2b

View File

@ -52,6 +52,7 @@
#include <machine/clock.h> #include <machine/clock.h>
#include <machine/cpu.h> #include <machine/cpu.h>
#include <machine/fpu.h>
#include <machine/frame.h> #include <machine/frame.h>
#include <machine/intr.h> #include <machine/intr.h>
#include <machine/md_var.h> #include <machine/md_var.h>
@ -132,6 +133,8 @@ interrupt(u_int64_t vector, struct trapframe *tf)
int64_t delta; int64_t delta;
int count; int count;
ia64_set_fpsr(IA64_FPSR_DEFAULT);
td = curthread; td = curthread;
atomic_add_int(&td->td_intr_nesting_level, 1); atomic_add_int(&td->td_intr_nesting_level, 1);