svn commit: r188937 - head/sys/i386/ibcs2

John Baldwin jhb at FreeBSD.org
Mon Feb 23 07:38:36 PST 2009


Author: jhb
Date: Mon Feb 23 15:38:35 2009
New Revision: 188937
URL: http://svn.freebsd.org/changeset/base/188937

Log:
  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.

Modified:
  head/sys/i386/ibcs2/ibcs2_sysi86.c

Modified: head/sys/i386/ibcs2/ibcs2_sysi86.c
==============================================================================
--- head/sys/i386/ibcs2/ibcs2_sysi86.c	Mon Feb 23 08:58:29 2009	(r188936)
+++ head/sys/i386/ibcs2/ibcs2_sysi86.c	Mon Feb 23 15:38:35 2009	(r188937)
@@ -60,9 +60,10 @@ ibcs2_sysi86(struct thread *td, struct i
 	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;


More information about the svn-src-head mailing list