MCPcopy Create free account
hub / github.com/coreboot/coreboot / cpuid_ext

Function cpuid_ext

util/amdtool/cpu.c:47–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47static inline cpuid_result_t cpuid_ext(uint32_t eax, unsigned int ecx)
48{
49 cpuid_result_t result;
50
51#ifndef __DARWIN__
52 asm volatile (
53 "mov %%ebx, %%edi;"
54 "cpuid;"
55 "mov %%ebx, %%esi;"
56 "mov %%edi, %%ebx;"
57 : "=a" (result.eax),
58 "=S" (result.ebx),
59 "=c" (result.ecx),
60 "=d" (result.edx)
61 : "0" (eax), "2" (ecx)
62 : "edi");
63#endif
64 return result;
65}
66
67#ifndef __DARWIN__
68int msr_readerror = 0;

Callers 8

is_sme_supportedFunction · 0.70
is_sev_supportedFunction · 0.70
is_sev_es_supportedFunction · 0.70
is_sev_snp_supportedFunction · 0.70
get_sev_max_guest_numFunction · 0.70
get_sev_min_asidFunction · 0.70
get_cpu_brand_stringFunction · 0.70
print_cpu_featuresFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected