]> git.ozlabs.org Git - ccan/blobdiff - ccan/cpuid/cpuid.c
cpuid: parse CPU L1 cache and TLB identifications
[ccan] / ccan / cpuid / cpuid.c
index 8b2024cbf6243ca280b0a15d9f6553a18457407f..6133e13f03c420144348f8d08ea9901d643985f9 100644 (file)
@@ -260,6 +260,10 @@ void cpuid(cpuid_t info, uint32_t *buf)
                        buf[1] = ecx;
                        break;
                case CPU_L1_CACHE_AND_TLB_IDS:
+                       buf[0] = eax;
+                       buf[1] = ebx;
+                       buf[2] = ecx;
+                       buf[3] = edx;
                        break;
                case CPU_EXTENDED_L2_CACHE_FEATURES:
                        *buf = ecx;