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

Function is_sme_supported

util/amdtool/cpu.c:152–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152static bool is_sme_supported(void)
153{
154 cpuid_result_t cpuid_regs;
155
156 if (cpuid(0x80000000) < 0x8000001f)
157 return false;
158
159 cpuid_regs = cpuid_ext(0x8000001f, 0x0);
160 return !!(cpuid_regs.eax & 1);
161}
162
163static bool is_sme_enabled(int cpunum)
164{

Callers 1

print_smeFunction · 0.85

Calls 2

cpuidFunction · 0.70
cpuid_extFunction · 0.70

Tested by

no test coverage detected