aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-08-18 04:04:45 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-08-18 04:04:45 +0000
commit4faa812afae60b819dd4711c70e4e112922486e4 (patch)
treea15e2da30719d870dabf04c01d71b499455a99e4 /sys
parentcccce27ae3d8e39a89b85ad7be2f2afa6c947321 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/initcpu.c10
-rw-r--r--sys/i386/i386/initcpu.c10
2 files changed, 8 insertions, 12 deletions
diff --git a/sys/amd64/amd64/initcpu.c b/sys/amd64/amd64/initcpu.c
index 4339c621cb9b..ba1411684e8a 100644
--- a/sys/amd64/amd64/initcpu.c
+++ b/sys/amd64/amd64/initcpu.c
@@ -62,8 +62,8 @@ static void init_6x86(void);
static void init_6x86MX(void);
static void init_ppro(void);
static void init_mendocino(void);
-void enable_sse(void);
#endif
+void enable_sse(void);
int hw_instruction_sse = 0;
SYSCTL_INT(_hw, OID_AUTO, instruction_sse, CTLFLAG_RD,
@@ -507,7 +507,9 @@ init_mendocino(void)
write_eflags(eflags);
#endif /* CPU_PPRO2CELERON */
}
-
+
+#endif /* I686_CPU */
+
/*
* Initialize CR4 (Control register 4) to enable SSE instructions.
*/
@@ -522,8 +524,6 @@ enable_sse(void)
#endif
}
-#endif /* I686_CPU */
-
void
initializecpu(void)
{
@@ -571,9 +571,7 @@ initializecpu(void)
default:
break;
}
-#ifdef I686_CPU
enable_sse();
-#endif
#if defined(PC98) && !defined(CPU_UPGRADE_HW_CACHE)
/*
diff --git a/sys/i386/i386/initcpu.c b/sys/i386/i386/initcpu.c
index 4339c621cb9b..ba1411684e8a 100644
--- a/sys/i386/i386/initcpu.c
+++ b/sys/i386/i386/initcpu.c
@@ -62,8 +62,8 @@ static void init_6x86(void);
static void init_6x86MX(void);
static void init_ppro(void);
static void init_mendocino(void);
-void enable_sse(void);
#endif
+void enable_sse(void);
int hw_instruction_sse = 0;
SYSCTL_INT(_hw, OID_AUTO, instruction_sse, CTLFLAG_RD,
@@ -507,7 +507,9 @@ init_mendocino(void)
write_eflags(eflags);
#endif /* CPU_PPRO2CELERON */
}
-
+
+#endif /* I686_CPU */
+
/*
* Initialize CR4 (Control register 4) to enable SSE instructions.
*/
@@ -522,8 +524,6 @@ enable_sse(void)
#endif
}
-#endif /* I686_CPU */
-
void
initializecpu(void)
{
@@ -571,9 +571,7 @@ initializecpu(void)
default:
break;
}
-#ifdef I686_CPU
enable_sse();
-#endif
#if defined(PC98) && !defined(CPU_UPGRADE_HW_CACHE)
/*