Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Don't probe for the no FPU case. it's not s...
details: https://anonhg.NetBSD.org/src/rev/26b6fad73a64
branches: trunk
changeset: 356732:26b6fad73a64
user: maya <maya%NetBSD.org@localhost>
date: Mon Oct 09 17:41:18 2017 +0000
description:
Don't probe for the no FPU case. it's not supported
diffstat:
sys/arch/x86/x86/identcpu.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diffs (38 lines):
diff -r 22b3e798daae -r 26b6fad73a64 sys/arch/x86/x86/identcpu.c
--- a/sys/arch/x86/x86/identcpu.c Mon Oct 09 17:39:33 2017 +0000
+++ b/sys/arch/x86/x86/identcpu.c Mon Oct 09 17:41:18 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: identcpu.c,v 1.58 2017/10/09 17:39:33 maya Exp $ */
+/* $NetBSD: identcpu.c,v 1.59 2017/10/09 17:41:18 maya Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.58 2017/10/09 17:39:33 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.59 2017/10/09 17:41:18 maya Exp $");
#include "opt_xen.h"
@@ -705,19 +705,9 @@
cpu_probe_old_fpu(struct cpu_info *ci)
{
#if defined(__i386__) && !defined(XEN)
- uint16_t control;
- /* Check that there really is an fpu (496SX) */
clts();
fninit();
- /* Read default control word */
- fnstcw(&control);
- if (control != __INITIAL_NPXCW__) {
- /* Must be a 486SX, trap FP instructions */
- lcr0((rcr0() & ~CR0_MP) | CR0_EM);
- i386_fpu_present = 0;
- return;
- }
/* Check for 'FDIV' bug on the original Pentium */
if (npx586bug1(4195835, 3145727) != 0)
Home |
Main Index |
Thread Index |
Old Index