]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/PiSmmCpuDxeSmm: Remove debug message.
authorEric Dong <eric.dong@intel.com>
Mon, 5 Aug 2019 06:41:43 +0000 (14:41 +0800)
committerEric Dong <eric.dong@intel.com>
Tue, 6 Aug 2019 03:29:04 +0000 (11:29 +0800)
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>
UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c

index 2cfc61b2c66c3b8ff49b7fc59f7d0e0c9b9054f5..d20bc4aae6c8f9b6f3f15cab0052e527f00cd138 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 Code for Processor S3 restoration\r
 \r
-Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -90,8 +90,6 @@ UINT8                        mApHltLoopCodeTemplate[] = {
                                0xEB, 0xFC               // jmp $-2\r
                                };\r
 \r
-CHAR16 *mRegisterTypeStr[] = {L"MSR", L"CR", L"MMIO", L"CACHE", L"SEMAP", L"INVALID" };\r
-\r
 /**\r
   Sync up the MTRR values for all processors.\r
 \r
@@ -189,7 +187,6 @@ ProgramProcessorRegister (
   UINT32                    PackageThreadsCount;\r
   UINT32                    CurrentThread;\r
   UINTN                     ProcessorIndex;\r
-  UINTN                     ThreadIndex;\r
   UINTN                     ValidThreadCount;\r
   UINT32                    *ValidCoreCountPerPackage;\r
 \r
@@ -202,23 +199,6 @@ ProgramProcessorRegister (
 \r
     RegisterTableEntry = &RegisterTableEntryHead[Index];\r
 \r
-    DEBUG_CODE_BEGIN ();\r
-      if (ApLocation != NULL) {\r
-        AcquireSpinLock (&CpuFlags->ConsoleLogLock);\r
-        ThreadIndex = ApLocation->Package * CpuStatus->MaxCoreCount * CpuStatus->MaxThreadCount +\r
-              ApLocation->Core * CpuStatus->MaxThreadCount +\r
-              ApLocation->Thread;\r
-        DEBUG ((\r
-          DEBUG_INFO,\r
-          "Processor = %lu, Entry Index %lu, Type = %s!\n",\r
-          (UINT64)ThreadIndex,\r
-          (UINT64)Index,\r
-          mRegisterTypeStr[MIN ((REGISTER_TYPE)RegisterTableEntry->RegisterType, InvalidReg)]\r
-          ));\r
-        ReleaseSpinLock (&CpuFlags->ConsoleLogLock);\r
-      }\r
-    DEBUG_CODE_END ();\r
-\r
     //\r
     // Check the type of specified register\r
     //\r