From 89c685e15f655beb9f4dced37d4147ba2dd01285 Mon Sep 17 00:00:00 2001 From: SergeySlice Date: Wed, 23 Nov 2022 19:00:40 +0300 Subject: [PATCH] fix bug with double and Signed-off-by: SergeySlice --- UefiCpuPkg/CpuDxe/CpuMp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/CpuDxe/CpuMp.c b/UefiCpuPkg/CpuDxe/CpuMp.c index ffcca9e11..901529a17 100644 --- a/UefiCpuPkg/CpuDxe/CpuMp.c +++ b/UefiCpuPkg/CpuDxe/CpuMp.c @@ -835,7 +835,7 @@ InitializeMpSupport ( // mNumberOfProcessors = NumberOfProcessors; UINT64 msr = AsmReadMsr64 (MSR_CORE_THREAD_COUNT); - mNumberOfProcessors = msr && 0xFF; + mNumberOfProcessors = msr & 0xFF; DEBUG ((DEBUG_INFO, "Detect CPU count: %d\n", mNumberOfProcessors)); //