svn commit: r227442 - in head/sys: amd64/amd64 i386/i386

Konstantin Belousov kib at FreeBSD.org
Fri Nov 11 04:10:36 UTC 2011


Author: kib
Date: Fri Nov 11 04:10:36 2011
New Revision: 227442
URL: http://svn.freebsd.org/changeset/base/227442

Log:
  Weaken the part of assertions added in the r227394. Only check that the
  process state is stopped.
  
  MFC after:	1 week

Modified:
  head/sys/amd64/amd64/machdep.c
  head/sys/i386/i386/machdep.c

Modified: head/sys/amd64/amd64/machdep.c
==============================================================================
--- head/sys/amd64/amd64/machdep.c	Fri Nov 11 03:49:42 2011	(r227441)
+++ head/sys/amd64/amd64/machdep.c	Fri Nov 11 04:10:36 2011	(r227442)
@@ -2048,7 +2048,7 @@ fill_fpregs(struct thread *td, struct fp
 {
 
 	KASSERT(td == curthread || TD_IS_SUSPENDED(td) ||
-	    (P_SHOULDSTOP(td->td_proc) && TD_IS_SLEEPING(td)),
+	    P_SHOULDSTOP(td->td_proc),
 	    ("not suspended thread %p", td));
 	fpugetregs(td);
 	fill_fpregs_xmm(&td->td_pcb->pcb_user_save, fpregs);

Modified: head/sys/i386/i386/machdep.c
==============================================================================
--- head/sys/i386/i386/machdep.c	Fri Nov 11 03:49:42 2011	(r227441)
+++ head/sys/i386/i386/machdep.c	Fri Nov 11 04:10:36 2011	(r227442)
@@ -3300,7 +3300,7 @@ fill_fpregs(struct thread *td, struct fp
 {
 
 	KASSERT(td == curthread || TD_IS_SUSPENDED(td) ||
-	    (P_SHOULDSTOP(td->td_proc) && TD_IS_SLEEPING(td)),
+	    P_SHOULDSTOP(td->td_proc),
 	    ("not suspended thread %p", td));
 #ifdef DEV_NPX
 	npxgetregs(td);


More information about the svn-src-head mailing list