Home
last modified time | relevance | path

Searched refs:ApicBaseMsr (Results 1 – 3 of 3) sorted by relevance

/device/linaro/bootloader/edk2/UefiCpuPkg/Library/BaseXApicX2ApicLib/
DBaseXApicX2ApicLib.c72 MSR_IA32_APIC_BASE_REGISTER ApicBaseMsr; in GetLocalApicBaseAddress() local
82 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() local
113 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 …]
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/BaseXApicLib/
DBaseXApicLib.c71 MSR_IA32_APIC_BASE_REGISTER ApicBaseMsr; in GetLocalApicBaseAddress() local
81 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() local
112 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 …]
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/MpInitLib/
DMpLib.c1513 MSR_IA32_APIC_BASE_REGISTER ApicBaseMsr; in SwitchBSPWorker() local
1580 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()