提交 e9378691 编写于 作者: P PMheart

OcAppleKernelLib: Fix`ForceAquantiaEthernet` quirk on macOS 14 beta 2, thx @Shikumo

Ref: https://www.insanelymac.com/forum/topic/330614-marvell-aquantia-10-gb-ethernet-support-thread/?do=findComment&comment=2807006
上级 8d85c555
......@@ -2,6 +2,7 @@ OpenCore Changelog
==================
#### v0.9.4
- Fixed kext blocker `Exclude` strategy for prelinked on 32-bit versions of macOS
- Fixed `ForceAquantiaEthernet` quirk on macOS 14 beta 2, thx @Shikumo
#### v0.9.3
- Added `--force-codec` option to AudioDxe, thx @xCuri0
......
......@@ -2370,33 +2370,37 @@ PatchLegacyCommpage (
STATIC
CONST UINT8
mAquantiaEthernetPatchFindShikumo[] = {
0x31, 0xC0, ///< xor eax, eax
0xE8, 0x00, 0x00, 0x00, 0x00, ///< call _IOLog
0x83, 0x7D, 0x00, 0x00, ///< cmp dword [rbp+whatever], whatever
0x0F, 0x84, 0x00, 0x00, 0x00, 0x00, ///< je unsupported
0x83, 0x7D ///< LBL:
0x0F, 0x84, 0x00, 0x00, 0x00, 0x00 ///< je unsupported
};
STATIC
CONST UINT8
mAquantiaEthernetPatchFindMaskShikumo[] = {
0xFF, 0xFF,
0xFF, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0x00, 0x00,
0xFF, 0xFF, 0x00, 0x00,0x00, 0x00,
0xFF, 0xFF
0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00
};
STATIC
CONST UINT8
mAquantiaEthernetPatchReplaceShikumo[] = {
0x83, 0x7D, 0x00, 0x00, ///< cmp dword [rbp+whatever], whatever
0xEB, 0x04, 0x90, 0x90, 0x90, 0x90, ///< jmp LBL
0x83, 0x7D ///< LBL:
0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, ///< nop (je unsupported)
};
STATIC
CONST UINT8
mAquantiaEthernetPatchReplaceMaskShikumo[] = {
0xFF, 0xFF, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0xFF,0xFF, 0xFF,
0xFF, 0xFF
0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF
};
STATIC
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册