MikeBeaton
c9ba16fb98
OcVariableRuntimeDxe: Minor updates to comment lines and docs
2022-07-30 08:50:57 +01:00
vit9696
3ac28b49bb
OcConfigurationLib: Restore enabled and introduce LoadEarly
2022-07-28 23:45:17 +03:00
MikeBeaton
83123452fe
OCVAR: Refactor NVRAM code, add OpenVariableRuntimeDxe
2022-07-28 06:38:56 +01:00
John Davis
6099ed0d24
OcAppleKernelLib: Fix Windows builds
2022-07-24 22:11:50 -05:00
John Davis
ce4a8edfc3
OcAppleKernelLib: Fix Windows builds
2022-07-24 21:16:09 -05:00
John Davis
e2739bfbaa
OcAppleKernelLib: Fix uncrustify styling
2022-07-24 09:25:43 -05:00
John Davis
68de283159
OcAppleKernelLib: Provide cache info to 10.4 when using ProvideCurrentCpuInfo
2022-07-24 09:23:33 -05:00
MikeBeaton
77c6c9d409
ToggleSipEntry: Add --show-csr option
2022-07-24 14:19:52 +01:00
John Davis
b8d552f1c8
OCAB: Implement Mac OS X 10.4/10.5 relocation block support ( #373 )
2022-07-24 12:27:06 +02:00
John Davis
18a231eeb2
OcAppleKernelLib: Inject only current arch during cacheless boot
2022-07-22 19:40:01 -05:00
MikeBeaton
14c792ae8b
OcStringLib: Use OC_STRING_FORMAT consistently
2022-07-20 19:49:21 +01:00
John Davis
9dd5ad1af4
OCAK: Fixed debug printing when performing cacheless kext blocking
2022-07-20 05:16:04 -05:00
MikeBeaton
622aa07c21
OcBootManagementLib: Avoid unecessary warnings on hidden auxiliary entries, specifically warn on invalid device path
2022-07-20 08:03:28 +01:00
MikeBeaton
510fc28401
OcBootManagementLib: Add missing LF
2022-07-20 07:06:35 +01:00
PMheart
f604848c61
OcMainLib: Patch order change ( #370 )
...
The current behaviors of how our modification to Booter and Kernel are undocumented. In addition, we should ensure that:
- Deletion is always performed first, as it makes no sense to patch something that will be removed
- Integrated quirks are always applied preceding user patches (to prevent users from messing up the whole patch structure)
- Injection is performed last
2022-07-16 19:49:20 +02:00
MikeBeaton
d9e57c0e82
OcBootManagementLib: Report unsupported etc. custom entries
2022-07-15 12:21:32 +01:00
PMheart
9a255a9796
Uncrustify: Apply codestyle patch
2022-07-15 10:16:45 +02:00
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
PMheart
2f9a15d78e
OcMainLib: Fix wrong message printing
2022-07-14 11:39:37 +02: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
MikeBeaton
279f054df5
OcLog: Allow optional unsafe fast log
2022-07-10 07:10:26 +01: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
MikeBeaton
d804b31f8d
OcStringLib: Add OC_STRING_FORMAT; rename OC_STRING_BUFFER to OC_ASCII_STRING_BUFFER
2022-07-03 07:19:40 +01:00
MikeBeaton
daa3b63c22
OC: Log legacy secure boot derived ApECID; fix minor typos
2022-07-03 07:09:08 +01:00
PMheart
33978d85ac
OcAppleKernelLib: Print injected kext bundle version in DEBUG builds ( #358 )
2022-06-23 07:48:45 +03:00
Marvin Häuser
714fc69f96
OcAfterBootCompatLib: Add new KCG patch logging
2022-06-13 14:53:11 +02:00
Marvin Häuser
c4792bb6aa
OcAfterBootCompatLib: Remove dead code
2022-06-13 14:53:11 +02:00
PMheart
bfa36972a5
OcMiscLib: Fix FindPattern prototype
2022-06-13 14:45:36 +02:00
Marvin Häuser
e05a69da64
OcAfterBootCompatLib: Always use OC image loader for EfiBootRt
2022-06-12 10:35:39 +02:00
Marvin Häuser
6c641b7a4e
OcAfterBootCompatLib: Support AvoidRuntimeDefrag for macOS 13 DP1
...
macOS 13 Developer Beta 1 introduced a new driver, bootrt.efi, which
now carries the kernel call gate. It communicates with efiboot via an
info buffer passed via LoadOptions. Patch it on load with our hook to
run our kernel entry code.
2022-06-11 12:30:20 +02:00
Marvin Häuser
f8aab62e97
OcAfterBootCompatLib: Extend AllocRelocationBlock support
...
The current relocation code is only supported in conjunction with
ProvideCustomSlide. Add support for disabled ProvideCustomSlide and
slide=0 in boot-args.
2022-06-11 12:30:20 +02:00
Marvin Häuser
3d58e26acc
OcDevicePathLib: Import API to find device path terminator
2022-06-11 12:30:20 +02:00
Andrey1970AppleLife
03f545e875
DataBase: Updated builtin firmware versions
2022-06-07 20:12:10 +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
vit9696
b614d5f1fd
Build: Use ASCII symbols in copyrights
2022-05-30 08:35:03 +03:00
John Davis
436cd9b8a9
OcMainLib: Fix incorrect debug print statement
2022-05-29 11:02:13 -05:00
vit9696
c75d74bbda
Build: Fix Uncrustify warnings
2022-05-28 14:09:52 +03:00
John Davis
65569b6590
Added PIIX4 ACPI PM timer detection for TSC calculations
2022-05-26 20:57:00 -05:00
PMheart
2e2dde8e24
OcBootManagementLib: De-duplication of mOzmosisProprietary1Guid ( #354 )
2022-05-24 09:54:03 +03:00