khronokernel / Opencore-Vanilla-Desktop-Guide

Host for files for the OpenCore Vanilla Desktop Guide
https://khronokernel-2.gitbook.io/opencore-vanilla-desktop-guide/
289 stars 70 forks source link

xcpm #32

Closed technicalflaw closed 4 years ago

technicalflaw commented 4 years ago

In the Clover Conversion guide, Kernel and Kext Patches => KernelXCPM is stated as being equivalent to Kernel -> Quirks -> AppleXcpmExtraMsrs -> YES. It might be helpful to link to https://github.com/acidanthera/bugtracker/issues/365 which references additional _xcpm_bootstrap patches which may be needed.

It's probably not practical to list the many possible XCPM patches, but they can be converted from rEFIt_UEFI/Platform/kernel_patcher.c in the Clover source (although, for Google's sake, here's the Ivy Bridge patch for Catalina, taken from the KernelIvyBridgeXCPM() method of the aforementioned file)

Base: _xcpm_bootstrap
Comment: _xcpm_bootstrap (Ivy Bridge) 10.15
Count: 1
Enabled: YES
Find: 8D43C43C22
Identifier: kernel
Limit: 0
Mask: FFFF00FF
MinKernel: 19.
MaxKernel: 19.99.99
Replace: 8D43C63C22
ReplaceMask: 0000FF0000
Skip: 0
khronokernel commented 4 years ago

Thank you for this! Its been added in the latest commit: 3cd95b0