Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coreboot/coreboot
/ darwin_rdmsr
Function
darwin_rdmsr
util/msrtool/darwin.c:43–56 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
41
}
42
43
int darwin_rdmsr(uint8_t cpu, uint32_t addr, struct msr *val)
44
{
45
#ifdef __DARWIN__
46
msr_t msr;
47
48
msr = rdmsr(addr);
49
50
val->hi = msr.lo;
51
val->lo = msr.hi;
52
return 1;
53
#else
54
return 0;
55
#endif
56
}
Callers
nothing calls this directly
Calls
1
rdmsr
Function · 0.50
Tested by
no test coverage detected