949 Commits

Author SHA1 Message Date
vit9696
6e17338bc6 OcAppleBootCompatLib: More proper resolution to RT restoration 2019-09-02 11:40:27 +03:00
vit9696
896a6cc575 OcBootManagementLib: Permit CMD+S in any mode 2019-09-02 11:21:59 +03:00
vit9696
be2300f445 OcAppleBootCompatLib: Add support for DisableSingleUser quirk 2019-09-02 11:21:37 +03:00
vit9696
baa64133ee
OcBootManagementLib: Fix R key detection 2019-09-02 03:46:10 +03:00
vit9696
95a0166f58 OcBootManagementLib: Add support for more combinations 2019-09-02 02:57:08 +03:00
vit9696
7e9967181e OcConfigurationLib: Add entries for AllowNvramReset and PollAppleHotKeys 2019-09-02 02:55:21 +03:00
vit9696
96e02f4007 OcDebugLogLib: Update WaitForIndex contract 2019-09-02 02:50:16 +03:00
vit9696
7ee178c049 OcAppleBootCompatLib: Quick fix to protection restoration issues found with Sniki 2019-09-02 02:48:59 +03:00
vit9696
7432875e62 OcTimerLib: Implement delay functions 2019-09-02 02:47:19 +03:00
vit9696
8fe7bef825 OcBootManagement: Support OPT and CMD+R with picker 2019-09-01 22:33:14 +03:00
vit9696
a1fbe0757b OcAppleKeyMapLib: Fix modififer matching in ContainsKeyStrokes 2019-09-01 20:41:46 +03:00
Download-Fritz
3e2e480cb9 OcAppleKeysLib: Import the Apple X86 Secure Boot Root CA 2019-09-01 15:50:24 +02:00
vit9696
f07f383e4c OcBootManagementLib: Add NTFS and EXT partition types 2019-08-31 23:35:32 +03:00
vit9696
1a22ae71b2 OcCpuLib: Minor debug improvements, closes #11 2019-08-31 22:43:21 +03:00
vit9696
992589931a OcAppleKernelLib: Add patcher comments and enable them for common patches 2019-08-31 22:33:09 +03:00
vit9696
03e7a85fba OcAppleEventLib: Fix AppleEvent protocol GUID import 2019-08-31 12:11:28 +03:00
vit9696
d76463017d OcConfigurationLib: Add protocols for FV2 2019-08-31 12:11:11 +03:00
vit9696
dc14e4ed88 OcAppleBootCompatLib: Remove devirtualise hacks 2019-08-31 11:45:21 +03:00
vit9696
388987169c OcCpuLib: Migrate to August edk2 stable 2019-08-31 11:36:58 +03:00
vit9696
97b774db80
OcAppleBootCompatLib: Update NVRAM page limit and disable SKL+ hacks 2019-08-29 23:18:15 +03:00
Download-Fritz
063d984f4b OcAppleKeyMapLib: Split Aggregator and DB functions 2019-08-29 18:45:27 +02:00
Download-Fritz
8299c889e2 OcAppleKeyMapLib and OcAppleEventLib: Initial import 2019-08-29 18:05:46 +02:00
vit9696
ea27502f5b OcAppleBootCompatLib: Implement DevirtualiseMmio 2019-08-29 13:39:25 +03:00
PMheart
6df52376eb OcAppleKernelLib: Added notes for HWP and _xcpm_core_scope_msrs patch 2019-08-29 12:58:06 +08:00
Download-Fritz
ce893c085a OcMachoLib: Remove unused variable 2019-08-28 17:18:27 +02:00
Download-Fritz
27217c9a9f OcMachoLib: Revert incorrect changes from last commit 2019-08-28 17:13:51 +02:00
Download-Fritz
1c27b3a65e OcMachoLib: Prevent accidential VTable sym matches via overflow 2019-08-28 16:44:43 +02:00
Download-Fritz
c698bcb68c OcMachoLib: Fix security and parsing issues 2019-08-28 16:02:19 +02:00
Download-Fritz
4917e8d73e OcGuardLib: Introduce OC_ALIGNOF and deprecate OC_ALIGNED 2019-08-28 15:37:55 +02:00
PMheart
0a1c8b8421 OcAppleKernelLib: Added notes for MSR 0x1AA patch in Debug XNU 2019-08-27 16:48:59 +08:00
Download-Fritz
92a2919e40 OcAppleDerLib: Fix VS build warnings
Fixes https://github.com/acidanthera/bugtracker/issues/462
2019-08-27 10:43:28 +02:00
mrmiller
05479f6721 OcAppleKernelLib: Added patch for MSR MISC_PWR_MGMT (1AAh) (#12) 2019-08-27 10:32:51 +03:00
PMheart
05f9942b4f OcAppleKernelLib: Added prefix to DEBUG messages 2019-08-24 20:33:57 +08:00
PMheart
251215ba30 OcAppleKernelLib: Apply SMBIOS patches via loops 2019-08-24 20:28:40 +08:00
Download-Fritz
6575ee3062 OcCpuLib: Partially fix AMD BusRatio calculation 2019-08-22 21:45:33 +02:00
vit9696
ef39b29bb8 OcTimerLib: Add PMC detection, which is absent on B360 2019-08-22 14:41:50 +03:00
vit9696
1afdc06b5b OcTimerLib: Move OcGetPmTimerAddr to OcCpuLib 2019-08-22 13:21:50 +03:00
PMheart
2984a206cb OcAppleBootCompatLib: Fixed typo 2019-08-22 09:54:50 +08:00
vit9696
fdbb6ed367 OcTimerLib: Implement B360/Z390 timer lookup
Closes acidanthera/bugtracker#465
2019-08-21 22:03:01 +03:00
vit9696
9654b833fd OcTimerLib: Try using STH_ACPIBAR_BASE MSR to get ACPI base
Reference acidanthera/bugtracker#465
2019-08-21 14:41:05 +03:00
Michael Belyaev
958ed863ae Add ClearScreenOnModeSwitch and ReplaceTabWithSpace UEFI quirks 2019-08-21 14:24:54 +03:00
vit9696
98c08d0696 OcDebugLogLib: Increase log size to 256 KB
Reference acidanthera/bugtracker#445
2019-08-21 08:35:42 +03:00
vit9696
38156d60be OcCpuLib: Do not warn about CPU freq diff when TSC based freq is 0 2019-08-21 08:19:49 +03:00
vit9696
2657d54cb9 OcDataHubLib: Specify non 24 MHz ARTFrequency to macOS 2019-08-20 14:48:26 +03:00
M. R. Miller
5ce54f3a0f New procedure for determining the core crystal clock frequency:
1. Try obtaining crystal clock frequency from CPUID_TIME_STAMP_COUNTER (15h) leaf from ECX.
  2. On failure, take predefined values for known processor models.
  3. On failure, check for CPUID_PROCESSOR_FREQUENCY availability and divide by the TSC ratio.
  4. On failure, assume 24 MHz.

Added info about the highest supported leaf (OC_CPU_INFO::MaxId).
Fixed a few places which were incorrectly comparing standard CPUID leaves against the maximum extended function leaf (OC_CPU_INFO::MaxExtId).
Add a warning in case the TSC- and ART-derived frequency calculations are wildly different.
2019-08-20 14:11:48 +03:00
M. R. Miller
12a3975d2e More format string fixes. 2019-08-20 14:11:48 +03:00
M. R. Miller
c0af97eb8a Change AppleProcessorMajorXeonScalable back into AppleProcessorMajorXeonW into a flag on DetectAppleMajorType. 2019-08-20 14:11:48 +03:00
M. R. Miller
87ff477f5f Small formatting cleanup and remove an unnecessary space and cast. 2019-08-20 14:11:48 +03:00
M. R. Miller
68171e2e7b Fix some formatting. 2019-08-20 14:11:48 +03:00
M. R. Miller
c8d396e9f8 Fix some format specifiers.
Correct CPU frequency calculation. TSC Adjust is only for converting timestamps between ART and TSC, not calculating the CPU frequency.
Only apply the 25Mhz ART fallback if the processor is a Xeon Scalable, determined via the brand string until we can find a better method.
2019-08-20 14:11:48 +03:00