summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-08-17 07:09:22 +0000
committerkib <kib@FreeBSD.org>2016-08-17 07:09:22 +0000
commite07c03288156626bf033777c19c6a56a761ac58e (patch)
treeb1b7e11b8c61e7a126c486da591317d4278aa280 /sys/amd64
parent9250a0d2067c333c7fa87a374f7a5612c4179f71 (diff)
downloadFreeBSD-src-e07c03288156626bf033777c19c6a56a761ac58e.zip
FreeBSD-src-e07c03288156626bf033777c19c6a56a761ac58e.tar.gz
MFC r303913:
Unconditionally perform checks that FPU region was entered, when #NM exception is caught in kernel mode.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 218c8cf..f487c44 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -448,8 +448,8 @@ trap(struct trapframe *frame)
goto out;
case T_DNA:
- KASSERT(!PCB_USER_FPU(td->td_pcb),
- ("Unregistered use of FPU in kernel"));
+ if (PCB_USER_FPU(td->td_pcb))
+ panic("Unregistered use of FPU in kernel");
fpudna();
goto out;
OpenPOWER on IntegriCloud