diff options
author | jhb <jhb@FreeBSD.org> | 2009-02-23 15:38:35 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-02-23 15:38:35 +0000 |
commit | b38fc7d45622ac90ee6c3febbf27a9f4949e4aef (patch) | |
tree | dcec42b3f17c57b0f4f224878a7a6d559f9aabb4 /sys/i386/ibcs2 | |
parent | dcb65e8ff9b0f05a4441896449096f3a42b9cb73 (diff) | |
download | FreeBSD-src-b38fc7d45622ac90ee6c3febbf27a9f4949e4aef.zip FreeBSD-src-b38fc7d45622ac90ee6c3febbf27a9f4949e4aef.tar.gz |
FreeBSD/i386 doesn't include a software FPU emulator anymore, so adjust
an iBCS2 syscall to indicate that there is no FPU support at all rather
than emulated support if an FPU is not present.
Diffstat (limited to 'sys/i386/ibcs2')
-rw-r--r-- | sys/i386/ibcs2/ibcs2_sysi86.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/i386/ibcs2/ibcs2_sysi86.c b/sys/i386/ibcs2/ibcs2_sysi86.c index 12d5c4a..8d85bc1 100644 --- a/sys/i386/ibcs2/ibcs2_sysi86.c +++ b/sys/i386/ibcs2/ibcs2_sysi86.c @@ -60,9 +60,10 @@ ibcs2_sysi86(struct thread *td, struct ibcs2_sysi86_args *args) case SI86_FPHW: { /* Floating Point information */ int val, error; - if (hw_float) val = IBCS2_FP_387; /* FPU hardware */ - else val = IBCS2_FP_SW; /* FPU emulator */ - + if (hw_float) + val = IBCS2_FP_387; + else + val = IBCS2_FP_NO; if ((error = copyout(&val, args->arg, sizeof(val))) != 0) return error; return 0; |