Fix some KASSERTs.

They are missing changes from r208833, r227394 and r227442.
This commit is contained in:
nyan 2012-11-10 13:41:25 +00:00
parent d6f477073b
commit 8cda8e16a3

View File

@ -2652,7 +2652,8 @@ int
fill_fpregs(struct thread *td, struct fpreg *fpregs)
{
KASSERT(td == curthread || TD_IS_SUSPENDED(td),
KASSERT(td == curthread || TD_IS_SUSPENDED(td) ||
P_SHOULDSTOP(td->td_proc),
("not suspended thread %p", td));
#ifdef DEV_NPX
npxgetregs(td);
@ -2821,6 +2822,7 @@ static void
fpstate_drop(struct thread *td)
{
KASSERT(PCB_USER_FPU(td->td_pcb), ("fpstate_drop: kernel-owned fpu"));
critical_enter();
#ifdef DEV_NPX
if (PCPU_GET(fpcurthread) == td)