336 Commits

Author SHA1 Message Date
Goldfish64
7231e1f361 OcAppleKernelLib: Fix Windows builds 2021-05-19 19:09:44 -05:00
Goldfish64
85d453eeb1 OcAppleKernelLib: Fix previous commit 2021-05-19 18:40:55 -05:00
Goldfish64
22a42d65e0 OcAppleKernelLib: Add ProvideCurrentCpuInfo kernel quirk
This quirk provides correct TSC and FSB to the kernel, as well as disable topology validation checks. Both of these are required for Hyper-V.
2021-05-19 18:39:51 -05:00
Marvin Häuser
5cd223f03d OcAppleKernelLib: Log when requested symbol has 0 value 2021-04-07 16:43:27 +02:00
Mykola Grymalyuk
e5d0896eb8 CommonPatches: Fix typo 2021-02-24 12:08:48 -07:00
vit9696
949c6ba15f Docs: Deprecate XhciPortLimit due to macOS 11.3 issues
closes acidanthera/bugtracker#1514
2021-02-21 20:55:55 +03:00
Marvin Häuser
da40a0518c OcAppleKernelLib: Fix Jettison heuristics 2021-02-21 10:42:19 +01:00
Marvin Häuser
e1ee8d3578 OcAppleKernelLib: Fix potential NULL dereferences
Fixes Coverity 302191 and 302192
2021-02-21 10:42:19 +01:00
Marvin Häuser
3133f08db1 OcAppleKernelLib: Fix potential NULL dereference
Fixes Coverity 302189
2021-02-21 10:42:19 +01:00
PMheart
5e9ee6e261 OcAppleKernelLib: Fix return value 2021-02-15 19:57:28 +08:00
Marvin Häuser
85036254d0 OcMiscLib: Fix potential overflow in ApplyPatch() 2021-02-14 13:41:48 +01:00
vit9696
f45df2f124 OpenCoreKernelPatch: Added SetApfsTrimTimeout to tune APFS trim 2021-01-24 21:13:43 +03:00
vit9696
b8843e6dcd OcAppleKernelLib: Fix assertion when patching AppleImage4 2021-01-02 09:21:26 +03:00
PMheart
08ddaab469
Utilities: Advanced ocvalidate for error checking (#169) 2020-12-24 20:09:52 +03:00
Goldfish64
b9e08ba44b OcAppleKernelLib: Fix patching of injected kexts in mkext 2020-11-05 19:54:13 -06:00
vit9696
1b7525c7de OcAppleKernelLib: Added ForceSecureBootScheme quirk for VMs 2020-11-01 13:30:55 +03:00
vit9696
ba10b5d721 OcAppleImg4Lib: Added support for x86legacy secure boot model 2020-11-01 01:12:02 +03:00
Download-Fritz
72649849dd OcAppleKernelLib: Rebuild KC when no kexts are injected
Fixes an issue where __PRELINK_INFO (first segment) is relocated and thus renders relocations invalid (relative to the first segment's VA)
2020-10-25 14:15:01 +01:00
Download-Fritz
6ffd979500 OcAppleKernelLib: Fix invalid kremlin section 2020-10-25 14:15:01 +01:00
Download-Fritz
7732a7b6d2 OcAppleKernelLib: Zero trailing KC expansion 2020-10-25 12:43:36 +01:00
Goldfish64
7adaaa15ee OcAppleKernelLib: Fix invalid return status handling 2020-10-18 18:36:23 -05:00
Goldfish64
ff3984b2e6 OcAppleKernelLib: Fix previous commit 2020-10-13 21:05:35 -05:00
Goldfish64
9ecb761836 OcAppleKernelLib: Fix CPUID patching on 10.4.10 and 10.4.11 2020-10-13 19:57:43 -05:00
vit9696
61cc6f609e OcAppleKernelLib: Add memcpy/memmove support to legacy bcopy 2020-10-04 20:59:23 +03:00
vit9696
ecbed230e0 OcAppleKernelLib: Fix compilation (again) 2020-10-04 18:01:30 +03:00
vit9696
21fb96107e OcAppleKernelLib: Do not compile bcopy to avoid linker issues 2020-10-04 17:15:51 +03:00
vit9696
8a5342a4ea OcAppleKernelLib: Fix Windows compilation 2020-10-04 14:08:53 +03:00
vit9696
81c2818175 OcAppleKernelLib: Fix bcopy implementation for LegacyCommpage quirk 2020-10-04 13:52:48 +03:00
Goldfish64
eb56315475 OcAppleKernelLib: Fix comments from previous commit 2020-10-03 19:51:51 -05:00
Goldfish64
f18a2a73c1 OcAppleKernelLib: Add LegacyCommpage quirk
Replaces default 64-bit commpage bcopy implementation with one that does not require SSSE3, required for legacy platforms without SSSE3. Resolves a "commpage no match for last" panic due to no available bcopy implementations.
2020-10-03 19:43:35 -05:00
PMheart
e93624ab16
OcAppleKernelLib: Added ExtendBTFeatureFlags quirk (#126)
This quirk substitutes BT4LEContinuityFixup which actually fails to function properly due to late patching.
2020-10-02 11:31:03 +08:00
John Davis
676ef93d9d
OcAppleKernelLib: Add 32-bit prelinking support (#122) 2020-09-29 12:41:37 +03:00
John Davis
74062d4e0f
OcAppleKernelLib: Add 32-bit Mach-O and patching support (#118) 2020-09-13 22:57:10 +03:00
Goldfish64
18ce64b408 OcAppleKernelLib: Fix previous commit 2020-09-13 12:16:24 -05:00
Goldfish64
85d0532e17 OcAppleKernelLib: Fix previous commit 2020-09-13 11:49:02 -05:00
Goldfish64
d583e2031a OcAppleKernelLib: Only apply KC address fixup during block if KC 2020-09-13 10:57:53 -05:00
Goldfish64
c559acd81c OcAppleKernelLib: Do not abort if Info.plist is missing
Some versions of 10.4 may have kexts that do not have an Info.plist, but have plugins. We still want to scan any plugins in this case.
2020-09-12 18:52:22 -05:00
vit9696
bc6398fa30 OcAppleKernelLib: Fix typo in the previous commit 2020-09-06 12:02:30 +03:00
vit9696
2bde94afc5 OcAppleKernelLib: Added DisableLinkeditJettison quirk
This quirk is similar to keepsyms=1 but is potentially less intrusive.
Lilu needs to access __LINKEDIT to do symbol solving in the kernel.
2020-09-06 03:11:45 +03:00
vit9696
6df942413c OcAppleKernelLib: Fix issues in 11.0 kext injection and patching
- KcGetKextSize may report far larger kext size due to using segment
  address instead of kext address as a base.
- KC Mach-O header rebuild may make Context->LinkEditSegment point
  to invalid memory breaking KcGetKextSize in the kext patcher.
2020-09-04 15:28:08 +03:00
vit9696
53614abdad OcAppleKernelLib: Fix prelinked kext patches in KC mode 2020-09-02 10:21:00 +03:00
John Davis
8b452306e5
OpenCoreKernel: Implement force injection of system kexts (#111) 2020-08-27 18:52:53 +03:00
vit9696
f427a77d81 OcAppleKernelLib: Update PrelinkedStateKextsAddress after rebase
This lets kext patching work after injection on 10.6.8
2020-08-27 02:27:29 +03:00
vit9696
520d27d66d OcAppleKernelLib: Fix KPI handling in 10.6 prelinkedkernel
Resolves issues injecting AppleIntelE1000e.kext referencing IOLockLock
2020-08-27 01:38:13 +03:00
Goldfish64
8e2755f29c OpenCoreKernel: Implement kernelcache fuzzy matching 2020-08-25 05:47:41 +03:00
vit9696
ee7aaa37e1 OcAppleKernelLib: Fix CFG lock patch for SNB 2020-08-23 22:03:16 +03:00
vit9696
57fc9000ad OcAppleKernelLib: Fixed LapicKernelPanic quirk on 10.8.5 2020-08-23 18:50:54 +03:00
vit9696
444365c87c OcAppleKernelLib: Fixed IncreasePciBarSize on 10.11.5 2020-08-23 17:32:10 +03:00
vit9696
ca6c829961 OcAppleKernelLib: Rework AppleCpuPmCfgLock to support 10.6.8 2020-08-23 17:04:08 +03:00
vit9696
c8c9ee5608 OcAppleKernelLib: Fixed XhciPortLimit on 10.12.6 2020-08-23 17:03:24 +03:00