From 54336243a49ee0769cf518bddadd1c59e4f4b591 Mon Sep 17 00:00:00 2001 From: Yoshihiro Takahashi Date: Sat, 10 Nov 2012 13:41:25 +0000 Subject: [PATCH] Fix some KASSERTs. They are missing changes from r208833, r227394 and r227442. --- sys/pc98/pc98/machdep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 1b2acd77b1e1..ddccf0a0e4c7 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -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)