MFi386 r216012 by kib:

Calling fill_fpregs() for curthread is legitimate, and ELF coredump
does this.

Discussed with:	kib
MFC after:	3 days
This commit is contained in:
Gavin Atkinson 2011-01-02 15:06:07 +00:00
parent f8d0071f71
commit 467a917104

View File

@ -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)