diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-04-09 01:47:05 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-04-09 01:47:05 +0000 |
commit | 3842a9bb32631a59ab232449bb9b09e1e95d378d (patch) | |
tree | 41b5e8b851aae9e9656a4f0547954c83cbaa6c09 /sys/arch/amd64 | |
parent | c2fb665752c095b00aa912be3458c363d101c229 (diff) |
Add missing #ifdef CRYPTO around amd64_has_aesni
Diff from Silamael (Silamael (at) coronamundi.de)
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/identcpu.c | 4 |
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; |