aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r--sys/kern/subr_trap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index 4574aad5e098..c305dc0227aa 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -155,6 +155,7 @@ ast(struct trapframe *framep)
int sig;
#if defined(DEV_NPX) && !defined(SMP)
int ucode;
+ ksiginfo_t ksi;
#endif
td = curthread;
@@ -217,7 +218,10 @@ ast(struct trapframe *framep)
PCB_NPXTRAP);
ucode = npxtrap();
if (ucode != -1) {
- trapsignal(td, SIGFPE, ucode);
+ ksiginfo_init_trap(&ksi);
+ ksi.ksi_signo = SIGFPE;
+ ksi.ksi_code = ucode;
+ trapsignal(td, &ksi);
}
}
#endif