26 Commits

Author SHA1 Message Date
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
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
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
Marvin Häuser
95adcd7be7 OcAppleKernelLib: Fix ProvideCurrentCpuInfo
Fixes regression introduced by
d916dd65b8.
2022-07-10 18:06: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
228f8ca1fb Codestyle: Apply codestyle changes with Uncrustify 2022-04-25 14:51:15 +02:00
vit9696
ad4414cf3b OcAppleKernelLib: Added global MSR 35h fix to ProvideCurrentCpuInfo
This allows `-cpu host` in KVM
2022-02-12 04:37:31 +03:00
vit9696
b66954ed95 OcAppleKernelLib: Added ProvideCurrentCpuInfo support for ADL 2021-12-10 11:51:59 +03:00
John Davis
be2d9fe75a OcAppleKernelLib: Fix incorrect offset in ProvideCurrentCpuInfo MSR patch 2021-07-02 12:27:56 -05:00
John Davis
378cc59adf OcAppleKernelLib: Fix ProvideCurrentCpuInfo MSR patch on macOS 12 2021-07-02 12:22:15 -05:00
Goldfish64
f7d3e83f79 OcAppleKernelLib: Add CPU topology patches to ProvideCurrentCpuInfo 2021-05-29 18:59:21 -05:00
Vitaly Cheptsov
acd32171f4
OcAppleKernelLib: Silence MSVC 2021-05-27 07:54:21 +03:00
Goldfish64
90f7fbb14a OcAppleKernelLib: Fix previous commit 2021-05-26 21:23:35 -05:00
Goldfish64
f3f7bb6e76 OcAppleKernelLib: Directly patch TSC and FSB variables 2021-05-26 20:17:20 -05:00
Goldfish64
7231e1f361 OcAppleKernelLib: Fix Windows builds 2021-05-19 19:09:44 -05:00
Goldfish64
85d453eeb1 OcAppleKernelLib: Fix previous commit 2021-05-19 18:40:55 -05:00
Goldfish64
22a42d65e0 OcAppleKernelLib: Add ProvideCurrentCpuInfo kernel quirk
This quirk provides correct TSC and FSB to the kernel, as well as disable topology validation checks. Both of these are required for Hyper-V.
2021-05-19 18:39:51 -05:00
Goldfish64
ff3984b2e6 OcAppleKernelLib: Fix previous commit 2020-10-13 21:05:35 -05:00
Goldfish64
9ecb761836 OcAppleKernelLib: Fix CPUID patching on 10.4.10 and 10.4.11 2020-10-13 19:57:43 -05:00
John Davis
74062d4e0f
OcAppleKernelLib: Add 32-bit Mach-O and patching support (#118) 2020-09-13 22:57:10 +03:00