提交 b86d77e4 编写于 作者: V vit9696

OpenCoreKernel: Add AppleXcpmCfgLock kernel quirk

上级 fb7f08fa
......@@ -1113,6 +1113,19 @@ blocking.
about the issue can be found in
\href{https://github.com/acidanthera/AptioFixPkg#verifymsre2}{VerifyMsrE2} notes.
\item
\texttt{AppleXcpmCfgLock}\\
\textbf{Type}: \texttt{plist\ boolean}\\
\textbf{Default value}: \texttt{false}\\
\textbf{Description}: Disables \texttt{PKG\_CST\_CONFIG\_CONTROL} (\texttt{0xE2})
MSR modification in XNU kernel, commonly causing early kernel panic, when it is
locked from writing (XCPM power management).
\emph{Note}: This option should avoided whenever possible. Modern firmwares provide
\texttt{CFG Lock} setting, disabling which is much cleaner. More details
about the issue can be found in
\href{https://github.com/acidanthera/AptioFixPkg#verifymsre2}{VerifyMsrE2} notes.
\item
\texttt{ExternalDiskIcons}\\
\textbf{Type}: \texttt{plist\ boolean}\\
......
......@@ -421,6 +421,8 @@
<dict>
<key>AppleCpuPmCfgLock</key>
<false/>
<key>AppleXcpmCfgLock</key>
<false/>
<key>ExternalDiskIcons</key>
<false/>
<key>ThirdPartyTrim</key>
......
......@@ -282,7 +282,7 @@ OcKernelApplyPatches (
if (!IsKernelPatch) {
if (Config->Kernel.Quirks.AppleCpuPmCfgLock) {
PatchAppleIntelCPUPowerManagement (Context);
PatchAppleCpuPmCfgLock (Context);
}
if (Config->Kernel.Quirks.ExternalDiskIcons) {
......@@ -296,6 +296,10 @@ OcKernelApplyPatches (
if (Config->Kernel.Quirks.XhciPortLimit) {
PatchUsbXhciPortLimit (Context);
}
} else {
if (Config->Kernel.Quirks.AppleXcpmCfgLock) {
PatchAppleXcpmCfgLock (&Patcher);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册