From be2d9fe75a29b682441ca69dfbb87068258b42f5 Mon Sep 17 00:00:00 2001 From: John Davis Date: Fri, 2 Jul 2021 12:27:56 -0500 Subject: [PATCH] OcAppleKernelLib: Fix incorrect offset in ProvideCurrentCpuInfo MSR patch --- Library/OcAppleKernelLib/CpuidPatches.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/OcAppleKernelLib/CpuidPatches.c b/Library/OcAppleKernelLib/CpuidPatches.c index 8407b52e9cc..d7dc2d98913 100644 --- a/Library/OcAppleKernelLib/CpuidPatches.c +++ b/Library/OcAppleKernelLib/CpuidPatches.c @@ -949,7 +949,8 @@ mProvideCurrentCpuInfoTopologyValidationPatch = { .Limit = 0 }; -#define CURRENT_CPU_INFO_CORE_COUNT_OFFSET 4 +// Offset of value in below patch. +#define CURRENT_CPU_INFO_CORE_COUNT_OFFSET 1 STATIC UINT8