diff options
author | nyan <nyan@FreeBSD.org> | 2011-02-07 07:52:53 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2011-02-07 07:52:53 +0000 |
commit | 64b6d5b13c0a4e070ba0c49715d3992a8f208c39 (patch) | |
tree | 978da0643893364d37128685a188ea336efbe254 /sys/pc98/pc98 | |
parent | 9a3dc01a3a2cac77d1dc7b3aa69bc98d7be9acec (diff) | |
download | FreeBSD-src-64b6d5b13c0a4e070ba0c49715d3992a8f208c39.zip FreeBSD-src-64b6d5b13c0a4e070ba0c49715d3992a8f208c39.tar.gz |
MFi386: revision 218329
Fix linking of the kernel without device npx.
Diffstat (limited to 'sys/pc98/pc98')
-rw-r--r-- | sys/pc98/pc98/machdep.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 7e0d931..868b5fd 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); } |