summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2014-02-23 12:56:40 +0000
committerdsl <dsl@NetBSD.org>2014-02-23 12:56:40 +0000
commit2dfd01904dd1c6ab754dc2e88be3a1fa3feaa2b2 (patch)
treedb753ff7863a0ca1eca8a57c63e5836d337605c0 /sys/arch/amd64
parenta682083b2a7e09e019a1a3457914177a6b45cf91 (diff)
Determine whether the cpu supports xsave (and hence AVX).
The result is only written to sysctl nodes at the moment. I see: machdep.fpu_save = 3 (implies xsaveopt) machdep.xsave_size = 832 machdep.xsave_features = 7 Completely common up the i386 and amd64 machdep sysctl creation.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/machdep.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c
index d9c923e07db..98d33602a03 100644
--- a/sys/arch/amd64/amd64/machdep.c
+++ b/sys/arch/amd64/amd64/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.206 2014/02/20 18:19:09 dsl Exp $ */
+/* $NetBSD: machdep.c,v 1.207 2014/02/23 12:56:40 dsl Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011
@@ -111,7 +111,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.206 2014/02/20 18:19:09 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.207 2014/02/23 12:56:40 dsl Exp $");
/* #define XENDEBUG_LOW */
@@ -511,27 +511,6 @@ cpu_init_tss(struct cpu_info *ci)
ci->ci_tss_sel = tss_alloc(tss);
}
-SYSCTL_SETUP(sysctl_machdep_setup, "sysctl machdep subtree setup")
-{
- x86_sysctl_machdep_setup(clog);
-
- sysctl_createv(clog, 0, NULL, NULL,
- CTLFLAG_PERMANENT | CTLFLAG_IMMEDIATE,
- CTLTYPE_INT, "fpu_present", NULL,
- NULL, 1, NULL, 0,
- CTL_MACHDEP, CPU_FPU_PRESENT, CTL_EOL);
- sysctl_createv(clog, 0, NULL, NULL,
- CTLFLAG_PERMANENT | CTLFLAG_IMMEDIATE,
- CTLTYPE_INT, "sse", NULL,
- NULL, 1, NULL, 0,
- CTL_MACHDEP, CPU_SSE, CTL_EOL);
- sysctl_createv(clog, 0, NULL, NULL,
- CTLFLAG_PERMANENT | CTLFLAG_IMMEDIATE,
- CTLTYPE_INT, "sse2", NULL,
- NULL, 1, NULL, 0,
- CTL_MACHDEP, CPU_SSE2, CTL_EOL);
-}
-
void
buildcontext(struct lwp *l, void *catcher, void *f)
{