MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cpu_auxmsr

Function cpu_auxmsr

freebsd/amd64/amd64/initcpu.c:243–248  ·  view source on GitHub ↗

* The value for the TSC_AUX MSR and rdtscp/rdpid on the invoking CPU. * * Caller should prevent CPU migration. */

Source from the content-addressed store, hash-verified

241 * Caller should prevent CPU migration.
242 */
243u_int
244cpu_auxmsr(void)
245{
246 KASSERT((read_rflags() & PSL_I) == 0, ("context switch possible"));
247 return (PCPU_GET(cpuid));
248}
249
250/*
251 * Initialize CPU control registers

Callers 3

initializecpuFunction · 0.70

Calls 1

read_rflagsFunction · 0.85

Tested by

no test coverage detected