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

Function amd_read_ext_features

freebsd/x86/x86/local_apic.c:684–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682}
683
684static inline uint32_t
685amd_read_ext_features(void)
686{
687 uint32_t version;
688
689 if (cpu_vendor_id != CPU_VENDOR_AMD &&
690 cpu_vendor_id != CPU_VENDOR_HYGON)
691 return (0);
692 version = lapic_read32(LAPIC_VERSION);
693 if ((version & APIC_VER_AMD_EXT_SPACE) != 0)
694 return (lapic_read32(LAPIC_EXT_FEATURES));
695 else
696 return (0);
697}
698
699static inline uint32_t
700amd_read_elvt_count(void)

Callers 2

amd_read_elvt_countFunction · 0.85
native_lapic_dumpFunction · 0.85

Calls 1

lapic_read32Function · 0.85

Tested by

no test coverage detected