John Davis
18a231eeb2
OcAppleKernelLib: Inject only current arch during cacheless boot
2022-07-22 19:40:01 -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
53c67f308c
OcAppleKernelLib: Fix user after free, thanks @mhaeuser ( #368 )
2022-07-11 13:29:58 +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
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
342f3fc9fd
OcAppleKernelLib: Disable AICPUPM patches on macOS 13
2022-06-07 04:59:08 +02:00
PMheart
228f8ca1fb
Codestyle: Apply codestyle changes with Uncrustify
2022-04-25 14:51:15 +02:00
PMheart
1ca2a9553f
OcAppleKernelLib: Added CustomPciSerialDevice quirk ( #331 )
2022-04-14 12:58:37 +02:00
PMheart
155321ac91
OcAppleKernelLib: Cleanup ( #328 )
2022-04-02 12:11:44 +03:00
PMheart
41882d980b
OcAppleKernelLib: Added ForceAquantiaEthernet quirk
2022-03-20 12:32:47 +01:00
PMheart
95b487a2a3
OcAppleKernelLib: Kext block strategy for prelinked ( #320 )
2022-02-11 10:54:30 +01:00
vit9696
45804a2894
OcAppleKernelLib: Fixed SetApfsTrimTimeout on macOS 12
2021-06-12 22:57:32 +03: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
vit9696
f45df2f124
OpenCoreKernelPatch: Added SetApfsTrimTimeout to tune APFS trim
2021-01-24 21:13:43 +03: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
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
d583e2031a
OcAppleKernelLib: Only apply KC address fixup during block if KC
2020-09-13 10:57:53 -05: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
b5c74d3e62
OcBootManagementLib: Add some callback stubs for image loader
2020-08-29 10:45:17 +03:00
John Davis
8b452306e5
OpenCoreKernel: Implement force injection of system kexts ( #111 )
2020-08-27 18:52:53 +03:00
vit9696
5ded24b71f
OcAppleKernelLib: Expose kernel version to quirks
2020-08-22 22:28:28 +03:00
vit9696
dc923bc895
OcAppleKernelLib: Partially fix kext blocking for 11.0
2020-08-22 09:54:29 +03:00
vit9696
dde7432b62
OcAppleKernelLib: Implement KXLD symbolic solver
2020-08-22 09:11:28 +03:00
John Davis
818f9e3f57
32-bit kernel switching support ( #104 )
...
* OcMacInfoLib: Add 64-bit model compatibility function
* OcMacInfoLib: Fix previous commit
* OpenCorePlatform: Store current SMBIOS platform
* OpenCorePlatform: Fix variable
* OpenCoreKernel: Implement 32-bit kernel switching
* OpenCoreKernel: Force 32-bit on EFI32
* OpenCoreKernel: Fix previous commit
2020-08-21 22:31:19 -05:00
Goldfish64
342773ef34
OcAppleKernelLib: Use library FAT parsing
2020-08-20 12:05:56 -05:00
Goldfish64
f545a348a0
OpenCoreKernel: Block cache types via ForceKernelCache option
2020-08-19 15:17:54 -05:00
vit9696
04fa1c2394
OcAppleKernelLib: Implement cacheless & mkext kext patching and quirks ( #102 )
2020-08-18 23:47:38 +03:00
vit9696
70c55e03bb
OcAppleKernelLib: Implement CPUID patching for 10.6 64-bit
2020-08-16 04:59:47 +03:00
vit9696
b5dcbd32d1
OcAppleKernelLib: Implement KXLD link state handling ( #101 )
2020-08-16 00:33:56 +03:00
vit9696
c3e14b6824
OcAppleKernelLib: Implement mkext injection support ( #99 )
2020-08-15 00:40:06 +03:00
vit9696
459a769f83
OpenCoreUefi: Add immutablekernel loading support
...
references acidanthera/bugtracker#1071
2020-08-09 23:11:00 +03:00
vit9696
7e965893bd
OcAppleKernelLib: Implement 64-bit cacheless kext injection ( #96 )
...
references acidanthera/bugtracker#358
2020-08-08 20:05:23 +03:00
vit9696
1ef945991a
OcAppleKernelLib: Fix __LINKEDIT handling in KC mode
2020-07-04 19:04:06 +03:00
vit9696
605878e57a
OcAppleKernelLib: Partially fix symbol resolution from kexts
2020-07-04 17:10:03 +03:00
vit9696
e09b29d7e0
OcAppleKernelLib: Fix legacy kernel injection
2020-07-04 15:29:38 +03:00
vit9696
0271bacc27
OcAppleKernelLib: More progress with 11.0, many thx to @Download-Fritz
2020-07-04 01:58:04 +03:00
vit9696
764c5c2277
OcAppleKernelLib: Continue working on KC prelinking
2020-06-29 08:45:42 +03:00
vit9696
44081eb08b
OcAppleKernelLib: Make more progress with KC context init
2020-06-29 00:27:35 +03:00
vit9696
ebdc3fa056
OcAppleKernelLib: Start building new Mach-O functions
2020-06-27 20:55:16 +03:00
vit9696
a9cbcd9ae8
Build: Drop EfiPkg
2020-05-17 14:28:41 +03:00