Searched refs:ApicBaseMsr (Results 1 – 3 of 3) sorted by relevance
72 MSR_IA32_APIC_BASE_REGISTER ApicBaseMsr; in GetLocalApicBaseAddress() local82 ApicBaseMsr.Uint64 = AsmReadMsr64 (MSR_IA32_APIC_BASE); in GetLocalApicBaseAddress()84 return (UINTN)(LShiftU64 ((UINT64) ApicBaseMsr.Bits.ApicBaseHi, 32)) + in GetLocalApicBaseAddress()85 (((UINTN)ApicBaseMsr.Bits.ApicBase) << 12); in GetLocalApicBaseAddress()102 MSR_IA32_APIC_BASE_REGISTER ApicBaseMsr; in SetLocalApicBaseAddress() local113 ApicBaseMsr.Uint64 = AsmReadMsr64 (MSR_IA32_APIC_BASE); in SetLocalApicBaseAddress()115 ApicBaseMsr.Bits.ApicBase = (UINT32) (BaseAddress >> 12); in SetLocalApicBaseAddress()116 ApicBaseMsr.Bits.ApicBaseHi = (UINT32) (RShiftU64((UINT64) BaseAddress, 32)); in SetLocalApicBaseAddress()118 AsmWriteMsr64 (MSR_IA32_APIC_BASE, ApicBaseMsr.Uint64); in SetLocalApicBaseAddress()305 MSR_IA32_APIC_BASE_REGISTER ApicBaseMsr; in GetApicMode() local[all …]
71 MSR_IA32_APIC_BASE_REGISTER ApicBaseMsr; in GetLocalApicBaseAddress() local81 ApicBaseMsr.Uint64 = AsmReadMsr64 (MSR_IA32_APIC_BASE); in GetLocalApicBaseAddress()83 return (UINTN)(LShiftU64 ((UINT64) ApicBaseMsr.Bits.ApicBaseHi, 32)) + in GetLocalApicBaseAddress()84 (((UINTN)ApicBaseMsr.Bits.ApicBase) << 12); in GetLocalApicBaseAddress()101 MSR_IA32_APIC_BASE_REGISTER ApicBaseMsr; in SetLocalApicBaseAddress() local112 ApicBaseMsr.Uint64 = AsmReadMsr64 (MSR_IA32_APIC_BASE); in SetLocalApicBaseAddress()114 ApicBaseMsr.Bits.ApicBase = (UINT32) (BaseAddress >> 12); in SetLocalApicBaseAddress()115 ApicBaseMsr.Bits.ApicBaseHi = (UINT32) (RShiftU64((UINT64) BaseAddress, 32)); in SetLocalApicBaseAddress()117 AsmWriteMsr64 (MSR_IA32_APIC_BASE, ApicBaseMsr.Uint64); in SetLocalApicBaseAddress()250 MSR_IA32_APIC_BASE_REGISTER ApicBaseMsr; in GetApicMode()[all …]
1513 MSR_IA32_APIC_BASE_REGISTER ApicBaseMsr; in SwitchBSPWorker() local1580 ApicBaseMsr.Uint64 = AsmReadMsr64 (MSR_IA32_APIC_BASE); in SwitchBSPWorker()1581 ApicBaseMsr.Bits.BSP = 0; in SwitchBSPWorker()1582 AsmWriteMsr64 (MSR_IA32_APIC_BASE, ApicBaseMsr.Uint64); in SwitchBSPWorker()1594 ApicBaseMsr.Uint64 = AsmReadMsr64 (MSR_IA32_APIC_BASE); in SwitchBSPWorker()1595 ApicBaseMsr.Bits.BSP = 1; in SwitchBSPWorker()1596 AsmWriteMsr64 (MSR_IA32_APIC_BASE, ApicBaseMsr.Uint64); in SwitchBSPWorker()