summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-05-31 03:48:06 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-05-31 03:48:06 +0000
commitca2610141e55709668e784625d3a61e31299cb6b (patch)
treed88b1afb605be63d121dfb9fdf2390f3b64b6ef0 /sys
parent297b096656825aacce5f999281d653706ed2726e (diff)
Fix RAMDISK kernels after previous. amd64_has_xcrypt needs to be
#ifdef CRYPTO. noticed by marco@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/identcpu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/identcpu.c b/sys/arch/amd64/amd64/identcpu.c
index 42a423af941..5f8ab93ac18 100644
--- a/sys/arch/amd64/amd64/identcpu.c
+++ b/sys/arch/amd64/amd64/identcpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: identcpu.c,v 1.18 2009/05/31 03:20:10 matthieu Exp $ */
+/* $OpenBSD: identcpu.c,v 1.19 2009/05/31 03:48:05 matthieu Exp $ */
/* $NetBSD: identcpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */
/*
@@ -48,7 +48,9 @@
/* sysctl wants this. */
char cpu_model[48];
int cpuspeed;
+#ifdef CRYPTO
int amd64_has_xcrypt;
+#endif
const struct {
u_int32_t bit;
@@ -161,7 +163,6 @@ via_nano_setup(struct cpu_info *ci)
u_int32_t regs[4], val;
u_int64_t msreg;
int model = (ci->ci_signature >> 4) & 15;
- extern int amd64_has_xcrypt;
if (model >= 9) {
CPUID(0xC0000000, regs[0], regs[1], regs[2], regs[3]);