Date: Wed, 5 Jan 2011 19:26:30 +0000 (UTC) From: Gavin Atkinson <gavin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r217020 - stable/8/sys/pc98/pc98 Message-ID: <201101051926.p05JQUSM088592@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101051926.p05JQUSM088592>