svn commit: r217020 - stable/8/sys/pc98/pc98

Gavin Atkinson gavin at FreeBSD.org
Wed Jan 5 19:26:31 UTC 2011


Author: gavin
Date: Wed Jan  5 19:26:30 2011
New Revision: 217020
URL: http://svn.freebsd.org/changeset/base/217020

Log:
  MFC r216892 from head (Which is an MFi386 of r216012 by kib)
  
  Calling fill_fpregs() for curthread is legitimate, and ELF coredump
  does this.
  
  Discussed with:	kib

Modified:
  stable/8/sys/pc98/pc98/machdep.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/pc98/pc98/machdep.c
==============================================================================
--- stable/8/sys/pc98/pc98/machdep.c	Wed Jan  5 19:25:31 2011	(r217019)
+++ stable/8/sys/pc98/pc98/machdep.c	Wed Jan  5 19:26:30 2011	(r217020)
@@ -2520,7 +2520,8 @@ int
 fill_fpregs(struct thread *td, struct fpreg *fpregs)
 {
 
-	KASSERT(TD_IS_SUSPENDED(td), ("not suspended thread %p", td));
+	KASSERT(td == curthread || TD_IS_SUSPENDED(td),
+	    ("not suspended thread %p", td));
 	npxgetregs(td);
 #ifdef CPU_ENABLE_SSE
 	if (cpu_fxsr)


More information about the svn-src-stable-8 mailing list