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

Function cpu_auxmsr

freebsd/i386/i386/initcpu.c:634–639  ·  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

632 * Caller should prevent CPU migration.
633 */
634u_int
635cpu_auxmsr(void)
636{
637 KASSERT((read_eflags() & PSL_I) == 0, ("context switch possible"));
638 return (PCPU_GET(cpuid));
639}
640
641extern int elf32_nxstack;
642

Callers 1

initializecpuFunction · 0.70

Calls 1

read_eflagsFunction · 0.85

Tested by

no test coverage detected