Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Nov 2014 20:57:20 +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: r273988 - in head/sys/i386: i386 include
Message-ID:  <201411022057.sA2KvKKU030590@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Sun Nov  2 20:57:19 2014
New Revision: 273988
URL: https://svnweb.freebsd.org/changeset/base/273988

Log:
  Remove the FP_SOFTFP flag.  It wasn't used but was leftover from the
  software x86 math emulator.

Modified:
  head/sys/i386/i386/machdep.c
  head/sys/i386/include/pcb.h

Modified: head/sys/i386/i386/machdep.c
==============================================================================
--- head/sys/i386/i386/machdep.c	Sun Nov  2 19:54:10 2014	(r273987)
+++ head/sys/i386/i386/machdep.c	Sun Nov  2 20:57:19 2014	(r273988)
@@ -1602,14 +1602,6 @@ exec_setregs(struct thread *td, struct i
                 pcb->pcb_flags &= ~PCB_DBREGS;
         }
 
-	/*
-	 * Initialize the math emulator (if any) for the current process.
-	 * Actually, just clear the bit that says that the emulator has
-	 * been initialized.  Initialization is delayed until the process
-	 * traps to the emulator (if it is done at all) mainly because
-	 * emulators don't provide an entry point for initialization.
-	 */
-	td->td_pcb->pcb_flags &= ~FP_SOFTFP;
 	pcb->pcb_initial_npxcw = __INITIAL_NPXCW__;
 
 	/*

Modified: head/sys/i386/include/pcb.h
==============================================================================
--- head/sys/i386/include/pcb.h	Sun Nov  2 19:54:10 2014	(r273987)
+++ head/sys/i386/include/pcb.h	Sun Nov  2 20:57:19 2014	(r273988)
@@ -66,7 +66,6 @@ struct pcb {
 	union	savefpu	pcb_user_save;
 	uint16_t pcb_initial_npxcw;
 	u_int	pcb_flags;
-#define	FP_SOFTFP	0x01	/* process using software fltng pnt emulator */
 #define	PCB_DBREGS	0x02	/* process using debug registers */
 #define	PCB_NPXINITDONE	0x08	/* fpu state is initialized */
 #define	PCB_VM86CALL	0x10	/* in vm86 call */



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