Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2011 22:14:18 +0000 (UTC)
From:      Gavin Atkinson <gavin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org
Subject:   svn commit: r217031 - releng/8.2/sys/pc98/pc98
Message-ID:  <201101052214.p05MEIKl092874@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gavin
Date: Wed Jan  5 22:14:18 2011
New Revision: 217031
URL: http://svn.freebsd.org/changeset/base/217031

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
  Approved by:	re (kib)

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

Modified: releng/8.2/sys/pc98/pc98/machdep.c
==============================================================================
--- releng/8.2/sys/pc98/pc98/machdep.c	Wed Jan  5 22:12:06 2011	(r217030)
+++ releng/8.2/sys/pc98/pc98/machdep.c	Wed Jan  5 22:14:18 2011	(r217031)
@@ -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)



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