2384 Commits

Author SHA1 Message Date
netanelc305
cdaf9a2302
OcCpuLib: Add TSC frequency calculation for xen hypervisor (#521) 2024-01-21 16:46:31 +03:00
Mike Beaton
b25928342c OcApfsLib: Always load JumpStart APFS directly
apfs.efi has W^X errors which require fixup for strict loaders, however
we were only passing the post-sanitised image to OC-wrapped
platform loader, therefore the wrapper in ImageLoader.c cannot
detect that it is an Apple signed binary which should be fixed up.
2024-01-21 13:31:42 +00:00
Mike Beaton
e1b2cb49b5 BuiltinPicker: Avoid responding to possibly multiple keys pressed before menu is read out, if using audio assist 2024-01-17 10:01:35 +00:00
Mike Beaton
d748c4a76e Platform: Add Firmware Settings entry driver 2024-01-17 09:52:29 +00:00
John Davis
b227a85420 OcAppleKernelLib: Fix previous commit 2024-01-09 21:51:25 -06:00
John Davis
22b851e589 OcAppleKernelLib: Add Exclude strategy for mkext 2024-01-09 20:52:12 -06:00
Alex James
fe5fc3320b
OcCpuLib: Fix cpu-type detection on Raptor Lake (#518) 2024-01-06 14:56:52 +03:00
John Davis
5ce824b291 OcCpuLib: Fix CPU frequency calculation on AMD 0Fh family 2024-01-04 22:52:32 -06:00
Mike Beaton
2b66a703a0 BootPickers: Swap positions of Shutdown and Restart buttons
to better match newer macOS.
Add OC_ATTR_USE_REVERSED_UI bit to use old layout.
2024-01-01 16:00:30 +00:00
John Davis
b585ba824b OcCpuLib: Fix CPU frequency calculation on AMD 10h family 2023-12-30 22:37:48 -06:00
Mike Beaton
fc9a5ece42 OcSerializeLib: Remove non-needed MDEPKG_NDEBUG conditional code
Which was designed to avoid warnings caused by apparently unused
variables when DEBUG statements are compiled with MDEPKG_NDEBUG
defined, but which is actually causing compilation errors with
improved DEBUG macro.
2023-12-13 07:57:12 +00:00
MikhailKrichanov
0a62573bea
Library: Fixed UEFI_IMAGE_SOURCE semantics. (#508) 2023-12-04 07:49:48 +03:00
Mikhail Krichanov
c65fb5bbfd Library: Fixed ImageOrigin types. 2023-11-24 09:42:11 +03:00
Mikhail Krichanov
43c4931957 User: Defined PcdImageProtectionPolicy for ImageTool in audk, adopted new API. 2023-11-23 14:04:16 +03:00
Mike Beaton
b5984a3d30 OcPeCoffExtLib: Add code path to OcPeCoffFixupInitializeContext which generates fixed image context without fixing image in memory
- Required to allow AppleEfiSignTool to verify rare (but actually existing) Apple signed binaries with overlapping section errors
2023-11-20 11:52:03 +00:00
John Davis
be646fa83c OcAppleKernelLib: Fix codestyle 2023-11-19 17:48:45 -06:00
John Davis
1a26c99b76 OcAppleKernelLib: Fix 10.6 cache size patch getting applied on 10.5 2023-11-19 17:44:20 -06:00
Mike Beaton
11c45d89d9 OcBootManagementLib: In order to detect files such as signed apfs.efi,
test for sutiability for fixup for all loaded images, not just boot image
2023-11-19 14:43:56 +00:00
John Davis
dc7927d981 OcAppleKernelLib: Fix coverity 2023-11-18 22:27:42 -06:00
John Davis
c899f746b3 OcAppleKernelLib: Fix Windows builds 2023-11-18 22:24:27 -06:00
John Davis
30d6d89692 OcAppleKernelLib: Add leaf 0x2 cache sizes to ProvideCurrentCpuInfo 2023-11-18 19:24:24 -06:00
Mike Beaton
d1e1fe7cd2 OcBootManagementLib: Trigger FixupAppleEfiImages quirk on default Apple boot path as well
- Allows for very early Mac OS X 32-bit images which are neither signed nor in a fat binary
2023-11-18 19:46:14 +00:00
Mike Beaton
125d8e8df3
OcBootManagementLib: Store ImageLoaderCaps in protocol (#504) 2023-11-18 19:42:20 +00:00
Mike Beaton
87da1b1329
Utilities/OcPeCoffExtLib: Update AppleEfiSignTool to work with new PE COFF loader (#502) 2023-11-15 11:30:05 +00:00
Andrey1970
9215e5c28a DataBase: Updated builtin firmware versions 2023-11-12 01:43:11 +03:00
Mike Beaton
9d05c7f5ae OpenDuet/OcBootManagementLib: Disable W^X auto-fix in Duet, and move fix for all Apple images to FixupAppleEfiImages quirk
Duet then matches behaviour of OVMF, and quirk can be used in both Duet and OVMF to load legacy Apple images.
2023-11-08 07:21:40 +00:00
Mike Beaton
5f15e839f8
OcPeCoffExtLib: Add support for FixupAppleEfiImages quirk (#498) 2023-11-03 11:06:56 +03:00
Mike Beaton
7f08cc7c22
OcBootManagementLib: Add missing explicit initialisation of mImageLoaderCaps in OcImageLoaderLoad (#496)
Fix mentioned in changelog incorporates this and the previous commit
2023-10-30 12:30:52 +03:00
Mike Beaton
c6060b25bb OcBootManagementLib: Add guard for static mImageLoaderCaps 2023-10-29 14:34:49 +00:00
vit9696
5a7edbe321 OcGuardLib: Remove legacy code after BaseOverflowLib migration 2023-10-14 23:59:53 +03:00
Mike Beaton
36b2cea412 OcBootManagementLib: Fix incorrect handling of optional DataLength parameter
Introduced by 546aa5ba6415902ed05db02f8a5448c5e7ff67cf
2023-10-14 20:15:22 +01:00
Andrey1970
cfd127aefe DataBase: Updated builtin firmware versions 2023-09-27 22:22:07 +03:00
John Davis
bb44e89add
Implement legacy OS booting support (#482) 2023-09-07 20:00:30 -05:00
Mike Beaton
2bbda9de78 OcVariableLib: Add option to set bs-only var ShimLockGuid:ShimRetainProtocol
If set by bootloader chained from shim before further image is loaded, instructs
shim to keep its protocol and its security overrides (if enabled) present for all
image loads, not just the first.
2023-08-31 22:27:01 +01:00
John Davis
1d5b1736fe OcCpuLib: Fix previous commit 2023-08-28 18:30:43 -05:00
John Davis
fa08f7e7bf OcCpuLib: Fallback to DUET on AMD with invalid PM timer address 2023-08-28 18:23:55 -05:00
Mike Beaton
b71e159eee OcHiiDatabaseLib: Fix incorrect AllocateCopyPool size 2023-08-24 05:29:25 +01:00
vit9696
3a52965fb5 OcVariableRuntimeLib: Fix SectionGuid formatting, thx @Goldfish64 2023-08-22 08:12:28 +03:00
Mikhail Krichanov
5afed6eb16 Build: Fixed compilation after adding UE draft into AUDK master. 2023-07-20 10:20:16 +03:00
John Davis
de4b1d1b2b OcAcpiLib: Fix FadtEnableReset on nForce platforms
Use reset register 0x64 (keyboard controller) instead of 0xCF9.
2023-07-09 18:45:41 -05:00
John Davis
34496a047d OcCpuLib: Fix ACPI HOB size check 2023-07-09 10:28:41 -05:00
John Davis
fcc28d70c0 OcCpuLib: Get PM timer address from OpenDuet for non-Intel chipsets 2023-07-08 20:58:49 -05:00
Mikhail Krichanov
2495a7aacc OcCompressionLib: Fixed CLANGDWARF compilation after rebasing audk upon edk2-stable202305. 2023-07-07 12:23:36 +03:00
John Davis
dc5165b660 OcCpuLib: Fix incorrect core count and ACPI timer on Silvermont
Closes https://github.com/acidanthera/bugtracker/issues/2062 and https://github.com/acidanthera/bugtracker/issues/1643
2023-07-06 23:06:39 -05:00
PMheart
e68e3dfbad OcAppleKernelLib: Do not report AICPUPM patch error on macOS 13+ 2023-07-07 02:00:22 +02:00
Mike Beaton
546aa5ba64 OcBootManagementLib: Unify boot meta file loading code;
Optionally allow .contentVisibility in same boot fs root locations
as searched for .VolumeIcon.icns, since file next to boot.efi is
deleted on macOS update.
2023-07-04 01:23:42 +01:00
PMheart
5b7d4d0f2c
OcAppleKernelLib: Lapic patch cleanup (#477) 2023-07-02 01:38:18 +02:00
Mike Beaton
dc182df42c OcBootManagementLib: Add InstanceIdentifier, and ability to target .contentVisibility to specific instances 2023-06-23 19:54:33 +01:00
PMheart
d4bd64ccd7 OcAppleKernelLib: FixForceAquantiaEthernet patch by @Mieze
`__ZN30AppleEthernetAquantiaAqtion10718checkConfigSupportERiS0_` does not exist on macOS 10.15.4; dropping it makes the patch unique.
2023-06-22 18:22:54 +02:00
PMheart
b249bc702a OcAppleKernelLib: Fix codestyle 2023-06-22 17:43:52 +02:00