Author: jhb
Date: Mon Oct 19 17:35:45 2020
New Revision: 366843
URL: https://svnweb.freebsd.org/changeset/base/366843
Log:
Properly clear PCB_KERNNPX in fpu_kern_leave().
PR: 250423
Reported by: CI
Tested by: lwhsu
Modified:
head/sys/i386/i386/npx.c
Modified: head/sys/i386/i386/npx.c
==============================================================================
--- head/sys/i386/i386/npx.c Mon Oct 19 17:07:19 2020 (r366842)
+++ head/sys/i386/i386/npx.c Mon Oct 19 17:35:45 2020 (r366843)
@@ -1475,7 +1475,7 @@ fpu_kern_leave(struct thread *td, struct fpu_kern_ctx
if ((pcb->pcb_flags & PCB_NPXUSERINITDONE) != 0) {
pcb->pcb_flags |= PCB_NPXINITDONE;
if ((pcb->pcb_flags & PCB_KERNNPX_THR) == 0)
- pcb->pcb_flags |= ~PCB_KERNNPX;
+ pcb->pcb_flags &= ~PCB_KERNNPX;
} else if ((pcb->pcb_flags & PCB_KERNNPX_THR) == 0)
pcb->pcb_flags &= ~(PCB_NPXINITDONE | PCB_KERNNPX);
} else {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"