UefiCpuPkg/RegisterCpuFeaturesLib: Remove debug message.

This debug message may be called by BSP and APs. It may
caused ASSERT when APs call this debug code.

In order to avoid system boot assert, Remove this debug
message.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Eric Dong 2019-08-05 14:38:32 +08:00
parent 5ed4c46f11
commit 1821dbed1d

View File

@ -9,7 +9,6 @@
#include "RegisterCpuFeatures.h" #include "RegisterCpuFeatures.h"
CHAR16 *mDependTypeStr[] = {L"None", L"Thread", L"Core", L"Package", L"Invalid" }; CHAR16 *mDependTypeStr[] = {L"None", L"Thread", L"Core", L"Package", L"Invalid" };
CHAR16 *mRegisterTypeStr[] = {L"MSR", L"CR", L"MMIO", L"CACHE", L"SEMAP", L"INVALID" };
/** /**
Worker function to save PcdCpuFeaturesCapability. Worker function to save PcdCpuFeaturesCapability.
@ -772,7 +771,6 @@ ProgramProcessorRegister (
UINT32 PackageThreadsCount; UINT32 PackageThreadsCount;
UINT32 CurrentThread; UINT32 CurrentThread;
UINTN ProcessorIndex; UINTN ProcessorIndex;
UINTN ThreadIndex;
UINTN ValidThreadCount; UINTN ValidThreadCount;
UINT32 *ValidCoreCountPerPackage; UINT32 *ValidCoreCountPerPackage;
@ -785,26 +783,6 @@ ProgramProcessorRegister (
RegisterTableEntry = &RegisterTableEntryHead[Index]; RegisterTableEntry = &RegisterTableEntryHead[Index];
DEBUG_CODE_BEGIN ();
//
// Wait for the AP to release the MSR spin lock.
//
while (!AcquireSpinLockOrFail (&CpuFlags->ConsoleLogLock)) {
CpuPause ();
}
ThreadIndex = ApLocation->Package * CpuStatus->MaxCoreCount * CpuStatus->MaxThreadCount +
ApLocation->Core * CpuStatus->MaxThreadCount +
ApLocation->Thread;
DEBUG ((
DEBUG_INFO,
"Processor = %08lu, Index %08lu, Type = %s!\n",
(UINT64)ThreadIndex,
(UINT64)Index,
mRegisterTypeStr[MIN ((REGISTER_TYPE)RegisterTableEntry->RegisterType, InvalidReg)]
));
ReleaseSpinLock (&CpuFlags->ConsoleLogLock);
DEBUG_CODE_END ();
// //
// Check the type of specified register // Check the type of specified register
// //