From 89dc00d201d5cb465eb39cd4b7d279ef1f9323f3 Mon Sep 17 00:00:00 2001 From: Yoshihiro Takahashi Date: Mon, 7 Feb 2011 07:52:53 +0000 Subject: [PATCH] MFi386: revision 218329 Fix linking of the kernel without device npx. --- sys/pc98/pc98/machdep.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 7e0d931ee56..868b5fd188a 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -2565,7 +2565,11 @@ fill_fpregs(struct thread *td, struct fpreg *fpregs) KASSERT(td == curthread || TD_IS_SUSPENDED(td), ("not suspended thread %p", td)); +#ifdef DEV_NPX npxgetregs(td); +#else + bzero(fpregs, sizeof(*fpregs)); +#endif #ifdef CPU_ENABLE_SSE if (cpu_fxsr) fill_fpregs_xmm(&td->td_pcb->pcb_user_save.sv_xmm, @@ -2589,7 +2593,9 @@ set_fpregs(struct thread *td, struct fpreg *fpregs) #endif /* CPU_ENABLE_SSE */ bcopy(fpregs, &td->td_pcb->pcb_user_save.sv_87, sizeof(*fpregs)); +#ifdef DEV_NPX npxuserinited(td); +#endif return (0); }