Date: Sat, 19 Jun 2004 12:28:48 +0000 (UTC) From: Bruce Evans <bde@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/i386 machdep.c Message-ID: <200406191228.i5JCSmPZ073168@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bde 2004-06-19 12:28:48 UTC FreeBSD src repository Modified files: sys/i386/i386 machdep.c Log: Removed foot-shooting setting of CR0_TS in exec_setregs(). It is unnecessary because cpu_setregs() and/or npxinit() always sets CR0_TS during system initialization, and CR0_TS is set in the next statement (fpstate_drop()) if necessary after system initialization. Setting it unnecessarily was less than a pessimization since it broke the invariant that the npx can be used without an npxdna() trap if fpucurthread is non-null. The broken invariant became harmful when I added an fnclex to npxdrop(). Removed setting of CR0_MP in exec_setregs(). This was similarly unnecessary but was harmless. Updated comments (mainly by removing them). Things are simpler now that we have cpu_setregs() and don't support a math emulator or pretend to support not having either a math emulator or an npx. Removed the ifdef for avoiding setting CR0_NE in the !SMP case in cpu_setregs(). npx_probe() should reverse the setting if it wants to force IRQ13 exception handling for testing. Revision Changes Path 1.592 +7 -25 src/sys/i386/i386/machdep.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406191228.i5JCSmPZ073168>