提交 4cc7ac24 编写于 作者: P PMheart

OcAppleKernelLib: Fixed `AppleXcpmForceBoost` on macOS 14

上级 634bbd5c
......@@ -12,6 +12,7 @@ OpenCore Changelog
- Added optional `--enable-mouse-click` argument to `CrScreenshotDxe` driver to additionally respond on mouse click
- Added `--use-conn-none` option to `AudioDxe` driver to discover additional usable output channels on some systems
- Added `PciIo` protocol override used to fix Aptio IV compatiblity with Above 4G BARs, thx @xCuri0
- Fixed `AppleXcpmForceBoost` quirk on macOS 14
#### v0.9.2
- Added `DisableIoMapperMapping` quirk, thx @CaseySJ
......
......@@ -488,6 +488,14 @@ CONST UINT8
0x0F, 0x30 ///< wrmsr
};
STATIC
CONST UINT8
mPerfCtrlFind4[] = {
0xB9, 0x99, 0x01, 0x00, 0x00, ///< mov ecx, 0x199
0x48, 0x89, 0xD8, ///< mov rax, rbx
0x0F, 0x30 ///< wrmsr
};
STATIC
CONST UINT8
mPerfCtrlMax[] = {
......@@ -538,7 +546,8 @@ PatchAppleXcpmForceBoost (
{
if ( (CompareMem (&Current[4], &mPerfCtrlFind1[4], sizeof (mPerfCtrlFind1) - 4) == 0)
|| (CompareMem (&Current[4], &mPerfCtrlFind2[4], sizeof (mPerfCtrlFind2) - 4) == 0)
|| (CompareMem (&Current[4], &mPerfCtrlFind3[4], sizeof (mPerfCtrlFind3) - 4) == 0))
|| (CompareMem (&Current[4], &mPerfCtrlFind3[4], sizeof (mPerfCtrlFind3) - 4) == 0)
|| (CompareMem (&Current[4], &mPerfCtrlFind4[4], sizeof (mPerfCtrlFind4) - 4) == 0))
{
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册