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

Function is_sgx_enabled

util/inteltool/cpu.c:178–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178static int is_sgx_enabled(int cpunum)
179{
180 msr_t data;
181 data = rdmsr_from_cpu(cpunum, IA32_FEATURE_CONTROL);
182 return (data.lo & SGX_GLOBAL_ENABLED);
183}
184
185static int is_sgx_locked(int cpunum)
186{

Callers 1

print_sgxFunction · 0.85

Calls 1

rdmsr_from_cpuFunction · 0.70

Tested by

no test coverage detected