Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 2020 17:35:46 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r366843 - head/sys/i386/i386
Message-ID:  <202010191735.09JHZkqr067067@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010191735.09JHZkqr067067>