Skip to content

Commit

Permalink
OcAppleKernelLib: Remove Ventura check for AppleCpuPmCfgLock (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
jozews321 committed Apr 21, 2023
1 parent 2e93c95 commit 77d02b3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Library/OcAppleKernelLib/CommonPatches.c
Expand Up @@ -62,13 +62,9 @@ PatchAppleCpuPmCfgLock (

//
// NOTE: As of macOS 13.0 AICPUPM kext is removed.
// However, we may remove this check later, if an older version can be injected correctly
// such that it will patched.
// However, legacy version of this kext may be injected and patched,
// thus no need to perform system version check here.
//
if (OcMatchDarwinVersion (KernelVersion, KERNEL_VERSION_VENTURA_MIN, 0)) {
DEBUG ((DEBUG_INFO, "OCAK: [OK] Skipping AppleCpuPmCfgLock patch on kernel version %u\n", KernelVersion));
return EFI_SUCCESS;
}

if (Patcher == NULL) {
DEBUG ((DEBUG_INFO, "OCAK: [OK] Skipping %a on NULL Patcher on kernel version %u\n", __func__, KernelVersion));
Expand Down

0 comments on commit 77d02b3

Please sign in to comment.