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

Function cpuid_ext

util/inteltool/cpu.c:56–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56inline cpuid_result_t cpuid_ext(int op, unsigned int ecx)
57{
58 cpuid_result_t result;
59
60#ifndef __DARWIN__
61 asm volatile (
62 "mov %%ebx, %%edi;"
63 "cpuid;"
64 "mov %%ebx, %%esi;"
65 "mov %%edi, %%ebx;"
66 : "=a" (result.eax),
67 "=S" (result.ebx),
68 "=c" (result.ecx),
69 "=d" (result.edx)
70 : "0" (op), "2" (ecx)
71 : "edi");
72#endif
73 return result;
74}
75
76#ifndef __DARWIN__
77int msr_readerror = 0;

Callers 4

is_sgx_supportedFunction · 0.70
is_tme_supportedFunction · 0.70
is_keylocker_supportedFunction · 0.70
is_aeskl_enabledFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected