Calling fill_fpregs() for curthread is legitimate, and ELF coredump
does this. Reported and tested by: pho MFC after: 5 days
This commit is contained in:
parent
a0db37b5f6
commit
c6fb218c3c
@ -1975,7 +1975,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));
|
||||
fpugetregs(td);
|
||||
fill_fpregs_xmm(&td->td_pcb->pcb_user_save, fpregs);
|
||||
return (0);
|
||||
|
@ -3203,7 +3203,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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user