Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2009 15:38:35 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188937 - head/sys/i386/ibcs2
Message-ID:  <200902231538.n1NFcZUp028914@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902231538.n1NFcZUp028914>