]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/pc/cputemp.c
amd64, vmx: support avx/avx2 for host/guest; use *noavx= in plan9.ini to disable
[plan9front.git] / sys / src / 9 / pc / cputemp.c
index 1ffbeb08ba8e36ceabf701eb198f578ed5e3f624..40e1d6b12f69bc6dc0b723235e9e685676c7bf6a 100644 (file)
@@ -13,7 +13,7 @@ intelcputempok(void)
 
        if(m->cpuiddx & Acpif)
        if(strcmp(m->cpuidid, "GenuineIntel") == 0){
-               cpuid(6, regs);
+               cpuid(6, 0, regs);
                return regs[0] & 1;
        }
        return 0;
@@ -28,7 +28,7 @@ cputemprd0(Chan*, void *a, long n, vlong offset)
        ulong regs[4];
        static ulong tj;
 
-       cpuid(6, regs);
+       cpuid(6, 0, regs);
        if((regs[0] & 1) == 0)
                goto unsup;
        if(tj == 0){