#include <pshpack1.h>
#include <poppack.h>
Go to the source code of this file.
◆ CPUID_X2APIC_FEATURE_BIT
| #define CPUID_X2APIC_FEATURE_BIT 21 |
◆ MSR_APIC_BASE
| #define MSR_APIC_BASE 0x0000001B |
◆ X2APIC_MSR_BASE
| #define X2APIC_MSR_BASE 0x00000800 |
◆ X2APIC_MSR_ICR
| #define X2APIC_MSR_ICR 0x00000830 |
◆ X2APIC_MSR_SELF_IPI
| #define X2APIC_MSR_SELF_IPI 0x0000083F |
◆ X2APIC_BASE_ADDRESS_REGISTER
◆ X2APIC_INTERRUPT_COMMAND_REGISTER
◆ X2APIC_REGISTER
◆ _X2APIC_REGISTER
| Enumerator |
|---|
| X2APIC_ID_REG | |
| X2APIC_EOI_REG | |
| X2APIC_SIVR_REG | |
| X2APIC_ICR0_REG | |
Definition at line 33 of file x2apicp.h.
34{
enum _X2APIC_REGISTER X2APIC_REGISTER
◆ X2ApicEnable()
Switches the current processor's local APIC into x2APIC mode.
- Returns
- None.
Definition at line 51 of file x2apic.c.
52{
54
56
57
60
62}
PPC_QUAL void __writemsr(const unsigned long Value)
PPC_QUAL unsigned long long __readmsr()
◆ X2ApicIsSupported()
Checks whether the current processor supports x2APIC mode.
- Returns
- TRUE if CPUID.01H:ECX.x2APIC[bit 21] is set, FALSE otherwise.
Definition at line 28 of file x2apic.c.
29{
31
33
35}
#define CPUID_VERSION_INFO
OSVERSIONINFOW VersionInfo
PPC_QUAL void __cpuid(int CPUInfo[], const int InfoType)
◆ X2ApicMsrFromRegister()
◆ X2ApicRead()
Definition at line 72 of file x2apicp.h.
74{
76}
FORCEINLINE X2APIC_REGISTER X2ApicMsrFromRegister(_In_ X2APIC_REGISTER Register)
◆ X2ApicWrite()
Definition at line 80 of file x2apicp.h.
83{
85}
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
◆ X2ApicWriteIcr()