]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/RegisterCpuFeaturesLib: Fix build failure.
authorEric Dong <eric.dong@intel.com>
Tue, 30 Oct 2018 03:02:11 +0000 (11:02 +0800)
committerEric Dong <eric.dong@intel.com>
Wed, 31 Oct 2018 01:43:41 +0000 (09:43 +0800)
Build UefiCpuPkg with below configuration:
Architecture(s)  = IA32
Build target     = NOOPT
Toolchain        = VS2015x86

Below error info shows up:
DxeRegisterCpuFeaturesLib.lib(CpuFeaturesInitialize.obj) :
error LNK2001: unresolved external symbol __allmul

Valid mDependTypeStr type only have 5 items, use UINT32 type cast
to fix this error.

Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c

index bc372a338f0b81f0bbc869afacb5e3cf0f1c964e..8588800e4a428b4a191e8a059c2c53597d4cd65a 100644 (file)
@@ -517,7 +517,7 @@ DumpRegisterTableOnProcessor (
         DebugPrintErrorLevel,\r
         "Processor: %d: Semaphore: Scope Value: %s\r\n",\r
         ProcessorNumber,\r
-        mDependTypeStr[MIN (RegisterTableEntry->Value, InvalidDepType)]\r
+        mDependTypeStr[MIN ((UINT32)RegisterTableEntry->Value, InvalidDepType)]\r
         ));\r
       break;\r
 \r