summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-04-09 01:47:04 +0000
committerguenther <guenther@openbsd.org>2013-04-09 01:47:04 +0000
commitd62857e1f3968442c1c9af3d7e92d2642c24fcd1 (patch)
tree111976effed0c561970860141abc98cd15b83d56 /sys
parentA few changes that reduce the diffs to the Linux code. Mostly style issues, (diff)
downloadwireguard-openbsd-d62857e1f3968442c1c9af3d7e92d2642c24fcd1.tar.xz
wireguard-openbsd-d62857e1f3968442c1c9af3d7e92d2642c24fcd1.zip
Add missing #ifdef CRYPTO around amd64_has_aesni
Diff from Silamael (Silamael (at) coronamundi.de)
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/identcpu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/identcpu.c b/sys/arch/amd64/amd64/identcpu.c
index e7a1d97d8e5..a7b3547d42b 100644
--- a/sys/arch/amd64/amd64/identcpu.c
+++ b/sys/arch/amd64/amd64/identcpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: identcpu.c,v 1.45 2013/03/21 19:43:14 kurt Exp $ */
+/* $OpenBSD: identcpu.c,v 1.46 2013/04/09 01:47:04 guenther Exp $ */
/* $NetBSD: identcpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */
/*
@@ -497,8 +497,10 @@ identifycpu(struct cpu_info *ci)
if (cpu_ecxfeature & CPUIDECX_EST)
setperf_setup = est_init;
+#ifdef CRYPTO
if (cpu_ecxfeature & CPUIDECX_AES)
amd64_has_aesni = 1;
+#endif
if (cpu_ecxfeature & CPUIDECX_RDRAND)
has_rdrand = 1;