OpenCoreKernel: Fix lapic patch logic
closes acidanthera/bugtracker#370
@@ -310,10 +310,6 @@ OcKernelApplyPatches (
if (Config->Kernel.Quirks.CustomSmbiosGuid) {
PatchCustomSmbiosGuid (Context);
}
-
- if (Config->Kernel.Quirks.LapicKernelPanic) {
- PatchLapicKernelPanic (&Patcher);
- }
} else {
if (Config->Kernel.Quirks.AppleXcpmCfgLock) {
PatchAppleXcpmCfgLock (&Patcher);
@@ -338,6 +334,10 @@ OcKernelApplyPatches (
Config->Kernel.Emulate.Cpuid1Mask
);
}
+
+ if (Config->Kernel.Quirks.LapicKernelPanic) {
+ PatchLapicKernelPanic (&Patcher);
+ }
}
}
