390 Commits

Author SHA1 Message Date
John Davis
e41d88f50f OcAppleKernelLib: Implement support for macOS 10.4 for ProvideCurrentCpuInfo quirk 2022-07-14 22:41:16 -05:00
John Davis
6c188569e6 OcAppleKernelLib: Fix potential null reference and account for kxld symbols 2022-07-14 06:59:28 -05:00
John Davis
4c45308b3a OcAppleKernelLib: Fix codestyle 2022-07-13 20:50:35 -05:00
John Davis
9872eef1d1 OCAK: Fix ProvideCurrentCpuInfo
Changed function to use original symbol values instead of recalculating them, as segment information is not available on macOS 11 and newer. Implemented full 32-bit support for TSC value calculations.
2022-07-13 20:34:51 -05:00
PMheart
b06c6b3fcb OcAppleKernelLib: Fix kext bundle version copying, thanks @mhaeuser 2022-07-12 10:08:49 +02:00
John Davis
2d55820158 OcAppleKernelLib: Fix incorrect OSBundleLibraries_x86_64 and cacheless injected bundle version handling 2022-07-11 21:02:19 -05:00
PMheart
53c67f308c
OcAppleKernelLib: Fix user after free, thanks @mhaeuser (#368) 2022-07-11 13:29:58 +02:00
Marvin Häuser
95adcd7be7 OcAppleKernelLib: Fix ProvideCurrentCpuInfo
Fixes regression introduced by
d916dd65b8.
2022-07-10 18:06:25 +02:00
PMheart
0b806dccdf OcAppleKernelLib: Fix minor typo 2022-07-08 20:06:15 +02:00
Marvin Häuser
bd2d3f29ab OcAppleKernelLib: Do not locate __PRELINK_INFO for Kernel Collections
As of macOS 13 Developer Beta 3, the __PRELINK_INFO marker segment is
broken. It is not actually used in the Kernel Collection paths, so
just don't locate it at all to avoid future mistakes.
2022-07-07 17:52:25 +02:00
Marvin Häuser
d916dd65b8 OcMachoLib: Treat container Mach-O as reference file
As of macOS 13 Developer Beta 3, the Kernel Collection's inner kernel
references a segment that precedes itself. The current model is that
a Kernel Collection is a container format and the included files are
(mostly) separate. Hence, this was treated as an out-of-bounds issue.
Kernel Collections apparently are rather an unconventional composite
format, where the sub-files are still part of the whole. Redesign
OcMachoLib to treat the Kernel Collection as the reference file.
Patches still use only the inner file, while parsing considers the
whole file.
2022-07-07 17:52:25 +02:00
PMheart
1b24da4ebb OcAppleKernelLib: Fix minor typo 2022-07-05 19:23:14 +02:00
PMheart
9e8d2793ba
OcAppleKernelLib: Make quirk Patcher parameter optional (#359) 2022-07-03 12:58:14 +02:00
PMheart
33978d85ac
OcAppleKernelLib: Print injected kext bundle version in DEBUG builds (#358) 2022-06-23 07:48:45 +03:00
PMheart
7b1bb6dbe7 OcAppleKernelLib: Minor logging improvement to avoid confusion 2022-06-07 05:04:07 +02:00
PMheart
342f3fc9fd OcAppleKernelLib: Disable AICPUPM patches on macOS 13 2022-06-07 04:59:08 +02:00
PMheart
a825d000be OcAppleKernelLib: Correct CustomPciSerialDevice patch, thanks @joevt
Reference: https://github.com/acidanthera/bugtracker/issues/2003
2022-05-03 13:11:01 +02:00
PMheart
11232d53f5 Codestyle: Fixed by Uncrustify 2022-04-25 21:30:42 +02:00
PMheart
56f5ec84b8 Codestyle: Apply codestyle changes with Uncrustify 2022-04-25 19:34:46 +02:00
PMheart
f7c1a3d483 OcAppleKernelLib: Fix codestyle 2022-04-25 15:44:28 +02:00
PMheart
228f8ca1fb Codestyle: Apply codestyle changes with Uncrustify 2022-04-25 14:51:15 +02:00
PMheart
ad16b282ea OcAppleKernelLib: Fixed ExtendBTFeatureFlags quirk on newer macOS versions, thx @lvs1974 2022-04-22 12:27:30 +02:00
PMheart
6d0e6f5205 Docs: Add notes about ForceAquantiaEthernet compatibility 2022-04-16 23:39:36 +02:00
PMheart
097e046050
OcAppleKernelLib: Add missing CONST 2022-04-14 23:14:27 +02:00
PMheart
1ca2a9553f
OcAppleKernelLib: Added CustomPciSerialDevice quirk (#331) 2022-04-14 12:58:37 +02:00
PMheart
95596f336a Docs: Fix SetApfsTrimTimeout description 2022-04-04 20:20:33 +02:00
PMheart
8f60fd29d8 OcAppleKernelLib: Fix mApfsTimeoutPatch 2022-04-04 19:11:17 +02:00
PMheart
155321ac91
OcAppleKernelLib: Cleanup (#328) 2022-04-02 12:11:44 +03:00
PMheart
fb28ce2cae OcAppleKernelLib: Prefer Shikumo's Aquantia patch 2022-03-21 13:53:18 +01:00
PMheart
0605cdaa74 OcAppleKernelLib: Adopt Aquantia patch by Shikumo 2022-03-20 18:22:38 +01:00
PMheart
a4b0c47f13 OcAppleKernelLib: Fix version matching 2022-03-20 12:55:46 +01:00
PMheart
41882d980b OcAppleKernelLib: Added ForceAquantiaEthernet quirk 2022-03-20 12:32:47 +01:00
PMheart
89f40f6ea8 OcAppleKernelLib: Fix variable initialisation 2022-03-01 21:55:02 +01:00
vit9696
ad4414cf3b OcAppleKernelLib: Added global MSR 35h fix to ProvideCurrentCpuInfo
This allows `-cpu host` in KVM
2022-02-12 04:37:31 +03:00
PMheart
95b487a2a3
OcAppleKernelLib: Kext block strategy for prelinked (#320) 2022-02-11 10:54:30 +01:00
PMheart
9e76d91905 OcAppleKernelLib: Disable trim using new method
closes https://github.com/acidanthera/bugtracker/issues/1950
2022-02-10 20:02:50 +01:00
vit9696
b66954ed95 OcAppleKernelLib: Added ProvideCurrentCpuInfo support for ADL 2021-12-10 11:51:59 +03:00
Marvin Häuser
3db6e1b996 Fix includes to work nicer with IDEs 2021-11-23 10:55:26 +01:00
dakanji
dee3ff5ef5
OcFileLib: Standardise Function Names (#287) 2021-08-31 10:33:34 +03:00
John Davis
ca266bf2f3 OcAppleKernelLib: Fix incorrect spacing in debug print statement 2021-07-12 19:36:17 -05:00
John Davis
91439cb72d OcAppleKernelLib: Implement correct OSBundleLibraries handling
OSBundleLibraries will be used on 32-bit when OSBundleLibraries and OSBundleLibraries64 are present, and OSBundleLibraries64 will be used on 64-bit when both are present.
2021-07-09 19:36:49 -05:00
John Davis
be2d9fe75a OcAppleKernelLib: Fix incorrect offset in ProvideCurrentCpuInfo MSR patch 2021-07-02 12:27:56 -05:00
John Davis
378cc59adf OcAppleKernelLib: Fix ProvideCurrentCpuInfo MSR patch on macOS 12 2021-07-02 12:22:15 -05:00
vit9696
05351f220b Docs: Sync ExtendBTFeatureFlags requirements 2021-06-19 12:48:55 +03:00
PMheart
24214b8a0c OcAppleKernelLib: macOS 12.0 support for AppleXcpmForceBoost
closes https://github.com/acidanthera/bugtracker/issues/1685
2021-06-15 09:17:30 +08:00
vit9696
45804a2894 OcAppleKernelLib: Fixed SetApfsTrimTimeout on macOS 12 2021-06-12 22:57:32 +03:00
PMheart
e16a36f620
OcAppleKernelLib: Fix typo 2021-06-12 13:36:19 +08:00
vit9696
8b5255c082 OcAppleKernelLib: Fixed PowerTimeoutKernelPanic on macOS 12
closes acidanthera/bugtracker#1673
2021-06-12 07:11:14 +03:00
Goldfish64
9e35a94f49 OcAppleKernelLib: Add vtable patching failure debug statements 2021-05-31 20:58:56 -05:00
Goldfish64
f7d3e83f79 OcAppleKernelLib: Add CPU topology patches to ProvideCurrentCpuInfo 2021-05-29 18:59:21 -05:00