Hi there,

I think the check whether the CPU has AES builtin misses an #ifdef
CRYPTO as it is there for the declaration of amd64_has_aesni.

-- Matthias


Index: identcpu.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/amd64/identcpu.c,v
retrieving revision 1.45
diff -u -p -r1.45 identcpu.c
--- arch/amd64/amd64/identcpu.c 21 Mar 2013 19:43:14 -0000      1.45
+++ arch/amd64/amd64/identcpu.c 8 Apr 2013 13:11:03 -0000
@@ -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;

Reply via email to