/** @file\r
Multi-Processor support functions implementation.\r
\r
- Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
IN UINT32 ProcessorIndex\r
)\r
{\r
+ MSR_IA32_APIC_BASE_REGISTER MsrApicBase;\r
+ \r
//\r
// If there are less than 2 CPUs detected, then the currently executing CPU\r
// must be the BSP. This avoids an access to an MSR that may not be supported \r
return TRUE;\r
}\r
\r
- if (AsmMsrBitFieldRead64 (MSR_IA32_APIC_BASE_ADDRESS, 8, 8) == 1) {\r
+ MsrApicBase.Uint64 = AsmReadMsr64 (MSR_IA32_APIC_BASE);\r
+ if (MsrApicBase.Bits.BSP == 1) {\r
if (mDebugMpContext.BspIndex != ProcessorIndex) {\r
AcquireMpSpinLock (&mDebugMpContext.MpContextSpinLock);\r
mDebugMpContext.BspIndex = ProcessorIndex;\r