Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jan 2011 15:06:07 +0000 (UTC)
From:      Gavin Atkinson <gavin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216892 - head/sys/pc98/pc98
Message-ID:  <201101021506.p02F67q2049492@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gavin
Date: Sun Jan  2 15:06:07 2011
New Revision: 216892
URL: http://svn.freebsd.org/changeset/base/216892

Log:
  MFi386 r216012 by kib:
  
  Calling fill_fpregs() for curthread is legitimate, and ELF coredump
  does this.
  
  Discussed with:	kib
  MFC after:	3 days

Modified:
  head/sys/pc98/pc98/machdep.c

Modified: head/sys/pc98/pc98/machdep.c
==============================================================================
--- head/sys/pc98/pc98/machdep.c	Sun Jan  2 15:01:03 2011	(r216891)
+++ head/sys/pc98/pc98/machdep.c	Sun Jan  2 15:06:07 2011	(r216892)
@@ -2551,7 +2551,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?201101021506.p02F67q2049492>