2198 Commits

Author SHA1 Message Date
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
MikeBeaton
7d0e3d4039 Various: Static string optimisations 2022-05-17 08:50:08 +01:00
MikeBeaton
19ef39ecf5 BootEntryProtocol: Add system action and hotkey support; implement Reset NVRAM and Toggle SIP as drivers 2022-05-16 22:23:49 +01:00
MikeBeaton
bcd2558686 OcAudio: Convert from int ids to string ids 2022-05-05 04:33:54 +01:00
PMheart
5c5056694a Codestyle: Apply Uncrustify patch 2022-05-03 13:12:55 +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
Marvin Häuser
61e7d0c977 OcCryptoLib: Centralise dynamic scratch buffer allocation 2022-04-25 19:34:05 +02:00
Marvin Häuser
9d152dc686 OcCryptoLib: Fix potential Mont BN overflows 2022-04-25 19:32:19 +02:00
Marvin Häuser
409544921b OcCryptoLib: Don't pack internally aligned structs 2022-04-25 19:28:47 +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
6825e9a449
OcMainLib: Read and set serial PCD values from config (#330) 2022-04-04 23:43:11 +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
Andrey1970AppleLife
2e4f3bbb7c DataBase: Updated builtin firmware versions 2022-03-21 00:48:09 +03: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
vit9696
093dd76d59 OcCryptoLib: Trim spaces 2022-03-20 14:46:14 +03:00
PMheart
41882d980b OcAppleKernelLib: Added ForceAquantiaEthernet quirk 2022-03-20 12:32:47 +01:00
vit9696
719507f76e Utilities: Switch to python 3 b default
closes acidanthera/bugtracker#1980
2022-03-20 14:09:54 +03:00
PMheart
ae7198101c
OcDebugLibProtocol: Early log preservation support (#327) 2022-03-09 16:15:58 +01:00
vit9696
6fdd6dab9b OcCryptoLib: Avoid memory allocation but in RsaVerifySigDataFromData 2022-03-06 17:19:08 +03:00