| 682 | } |
| 683 | |
| 684 | static inline uint32_t |
| 685 | amd_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 | |
| 699 | static inline uint32_t |
| 700 | amd_read_elvt_count(void) |
no test coverage detected