47 Commits

Author SHA1 Message Date
John Davis
b8d552f1c8
OCAB: Implement Mac OS X 10.4/10.5 relocation block support (#373) 2022-07-24 12:27:06 +02: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
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
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
PMheart
228f8ca1fb Codestyle: Apply codestyle changes with Uncrustify 2022-04-25 14:51:15 +02:00
PMheart
4c995bb1ba
OcDebugLogLib: Split into OcLogAggregatorLib and OcDebugLibProtocol (#325) 2022-03-02 15:04:20 +03:00
vit9696
d51442406c Fixed AppleInternal CSR bit being set with ProvideCustomSlide enabled
Only happened with SIP disabled.
2022-01-16 11:13:27 +03:00
MikeBeaton
4f214ab1e5 AudioDxe:
- Fix broken in-OS sound in Windows after AudioDxe with some firmware (closes https://github.com/acidanthera/bugtracker/issues/1909)
 - Add Pcds for some AudioDxe code
 - Other minor updates
OcDebugLogLib:
 - Add DebugPrintDevicePathForHandle
2022-01-02 08:53:17 +00:00
vit9696
e70048cc76 OcDeviceMiscLib: Implement PCI RBAR configuration support 2021-10-11 04:53:03 +03:00
Marvin Häuser
6b27ad1be4 Add missing new-lines to error output 2021-07-16 18:48:59 +02:00
vit9696
7bb41aa2fd OcAfterBootCompatLib: Added ForceBooterSignature quirk for Mac EFI
Also fixed enabling `DisableSingleUser` when related quirks are off.
2021-03-07 00:41:54 +03:00
@cecekpawon
bb6a760938
OcAfterBootCompatLib: Store BootCompat CpuInfo (#223)
Fixes a regression introduced in e2f219e07592ba1f0f1c763d68db1eb264d19fae
2021-02-28 11:59:04 +03:00
vit9696
e2f219e075 OcCpuLib: Fixed FSBFrequency calculation with fractional multiplier
closes acidanthera/bugtracker#1529
2021-02-25 19:45:38 +03:00
dakanji
7642ceb681
Docs: Fix 'Firmware' Pluralisation (#209) 2021-02-15 21:03:57 +03:00
Marvin Häuser
85036254d0 OcMiscLib: Fix potential overflow in ApplyPatch() 2021-02-14 13:41:48 +01:00
vit9696
20aebce6b1 OcAfterBootCompatLib: Fixed non-RT SetVirtualAddressMap for non-macOS 2021-01-28 03:17:41 +03:00
PMheart
8a0323c6be
OcAfterBootCompatLib: Implement booter patch (#165) 2020-12-05 23:30:29 +08:00
vit9696
77808cc2de OcAfterBootCompatLib: Fix macOS version detection
macOS 10.11 has Mac OS X in the first half.
macOS 11.0 has macOS in the first half.
Kill the error-prone optimisation for the time being
2020-12-01 15:21:19 +03:00
vit9696
43d40493e0 OcAfterBootCompatLib: Provide cleaner patches for sur safe mode 2020-12-01 02:34:18 +03:00
Vitaly Cheptsov
260cd29426
OcAfterBootCompatLib: Fix warning with MSVC 2020-12-01 01:05:01 +03:00
vit9696
ee11910915 OcAfterBootCompatLib: Fix regression with Big Sur safe mode quirk
closes acidanthera/bugtracker#1327
2020-12-01 00:26:57 +03:00
Vitaly Cheptsov
258fb83ec7
OcAfterBootCompatLib: Implement relocation block support (#153)
closes acidanthera/bugtracker#1125
2020-11-13 19:49:57 +03:00
vit9696
e8cc05f5c3 OcAfterBootCompatLib: Fixed EnableSafeModeSlide on macOS 11.0
closes acidanthera/bugtracker#1276
2020-11-12 21:31:30 +03:00
vit9696
13ec6ae95a OcAfterBootCompatLib: Drop legacy memory location trackers 2020-11-08 22:46:45 +03:00
vit9696
6d0c49e84c OcMemoryLib: Allow overriding page allocator for allocate from top 2020-11-08 20:11:43 +03:00
vit9696
9a2c66969e OcAfterBootCompatLib: Fix MSVC compiler moaning 2020-11-08 05:03:50 +03:00
vit9696
05dc52acd2 OcAfterBootCompatLib: Start using call gate for kernel interception 2020-11-08 04:30:58 +03:00
vit9696
c8bf19dc80 OcAfterBootCompatLib: Increased slide allocation reserve to 200 MB
This is required for Big Sur b10, which kernel cache is much larger.
2020-10-16 01:31:42 +03:00
dakanji
d9cc30567c
Library: Firmware pluralisation fixes in the code (#136) 2020-10-13 01:42:59 +03:00
vit9696
29d5b9d781 OcAfterBootCompatLib: Fix VMware compatibility with Apple Secure Boot 2020-08-30 17:59:28 +03:00
vit9696
b5c74d3e62 OcBootManagementLib: Add some callback stubs for image loader 2020-08-29 10:45:17 +03:00
Goldfish64
1ecceb0068 OpenCoreKernel: Implement 32-bit switching based on boot args 2020-08-22 16:53:00 -05:00
vit9696
602e540968 OcAfterBootCompatLib: Fix 32-bit dead loop 2020-07-25 18:39:54 +03:00
vit9696
50abfc2f28 OcMemoryLib: Fix typo 2020-07-17 02:39:44 +03:00
vit9696
9f59339e7e OcAfterCompatLib: Added 11.0 support for AvoidRuntimeDefrag 2020-06-24 21:17:40 +03:00
zhen-zen
d8c59684fc
OcAfterBootCompatLib: Allow specification of max slide for unavailable range (#76) 2020-06-20 07:41:52 +03:00
vit9696
bf5cea16f8 Build: Fix IA32 -> Ia32 naming to conform UDK 2020-05-31 05:32:18 +03:00
vit9696
e6bec3ae80 Debug: Fix some log tags 2020-05-17 16:53:02 +03:00
vit9696
a9cbcd9ae8 Build: Drop EfiPkg 2020-05-17 14:28:41 +03:00
vit9696
86a49fb2f3 OpenRuntime: Replaced RequestBootVarFallback with DeduplicateBootOrder due to bugs 2020-05-13 16:07:37 +03:00
vit9696
796765ca7c
OcBootManagementLib: Rework boot management (#42)
Co-authored-by: vit9696 <vit9696@users.noreply.github.com>
Co-authored-by: Download-Fritz <download-fritz@outlook.com>
2020-05-05 19:45:32 +03:00
vit9696
5fc0905af9 OcAfterBootCompatLib: Create events with TPL_CALLBACK priority
Logging may save to file, and file services must be invoked with TPL
lower or equal to TPL_CALLBACK. Failing to do so causes OVMF crash.

closes acidanthera/bugtracker#831
2020-04-17 09:39:32 +03:00
vit9696
99b002b391 OcAppleBootCompatLib: Fix event closing 2020-04-12 08:42:51 +03:00
vit9696
6a86ea2148 OcAfterBootCompatLib: Renamed from OcAppleBootCompatLib 2020-04-04 23:41:51 +03:00