fix bug with double and

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2022-11-23 19:00:40 +03:00
parent 0fc7980fa8
commit 89c685e15f

View File

@ -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));
//