Skip to content

Commit

Permalink
OcAppleKernelLib: FixForceAquantiaEthernet quirk on macOS 14 beta 2…
Browse files Browse the repository at this point in the history
  • Loading branch information
PMheart committed Jun 22, 2023
1 parent 8d85c55 commit e937869
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Expand Up @@ -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
Expand Down
24 changes: 14 additions & 10 deletions Library/OcAppleKernelLib/CommonPatches.c
Expand Up @@ -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
Expand Down

0 comments on commit e937869

Please sign in to comment.