Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coreboot/coreboot
/ is_sme_enabled
Function
is_sme_enabled
util/amdtool/cpu.c:163–168 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
161
}
162
163
static bool is_sme_enabled(int cpunum)
164
{
165
msr_t data;
166
data = rdmsr_from_cpu(cpunum, 0xC0010010);
167
return !!(data.lo & (1 << 23));
168
}
169
170
static bool is_sme_hmk_enabled(int cpunum)
171
{
Callers
1
print_sme
Function · 0.85
Calls
1
rdmsr_from_cpu
Function · 0.70
Tested by
no test coverage detected