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:
parent
ccc09458fa
commit
99aa060c2b
@ -52,6 +52,7 @@
|
||||
|
||||
#include <machine/clock.h>
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/fpu.h>
|
||||
#include <machine/frame.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/md_var.h>
|
||||
@ -132,6 +133,8 @@ interrupt(u_int64_t vector, struct trapframe *tf)
|
||||
int64_t delta;
|
||||
int count;
|
||||
|
||||
ia64_set_fpsr(IA64_FPSR_DEFAULT);
|
||||
|
||||
td = curthread;
|
||||
atomic_add_int(&td->td_intr_nesting_level, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user