From beabfd5800515e0a51fc2461671514adc0cef584 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Tue, 30 Oct 2018 11:02:11 +0800 Subject: [PATCH] UefiCpuPkg/RegisterCpuFeaturesLib: Fix build failure. 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 Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni --- .../Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c index bc372a338f..8588800e4a 100644 --- a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c +++ b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c @@ -517,7 +517,7 @@ DumpRegisterTableOnProcessor ( DebugPrintErrorLevel, "Processor: %d: Semaphore: Scope Value: %s\r\n", ProcessorNumber, - mDependTypeStr[MIN (RegisterTableEntry->Value, InvalidDepType)] + mDependTypeStr[MIN ((UINT32)RegisterTableEntry->Value, InvalidDepType)] )); break;