Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coreboot/coreboot
/ is_sgx_locked
Function
is_sgx_locked
util/inteltool/cpu.c:185–190 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
183
}
184
185
static int is_sgx_locked(int cpunum)
186
{
187
msr_t data;
188
data = rdmsr_from_cpu(cpunum, IA32_FEATURE_CONTROL);
189
return (data.lo & FEATURE_CONTROL_LOCKED);
190
}
191
192
#endif
193
Callers
1
print_sgx
Function · 0.85
Calls
1
rdmsr_from_cpu
Function · 0.70
Tested by
no test coverage detected