OcAppleKernelLib: Apple SMBIOS patch on AppleACPIPlatform as well
Closes acidanthera/bugtracker#410
@@ -934,12 +934,29 @@ PatchCustomSmbiosGuid (
if (!RETURN_ERROR (Status)) {
Status = PatcherApplyGenericPatch (&Patcher, &mCustomSmbiosGuidPatch);
if (RETURN_ERROR (Status)) {
- DEBUG ((DEBUG_INFO, "Failed to apply patch com.apple.driver.AppleSMBIOS - %r\n", Status));
+ DEBUG ((DEBUG_INFO, "Failed to apply SMBIOS patch com.apple.driver.AppleSMBIOS - %r\n", Status));
} else {
- DEBUG ((DEBUG_INFO, "Patch success com.apple.driver.AppleSMBIOS\n"));
+ DEBUG ((DEBUG_INFO, "SMBIOS Patch success com.apple.driver.AppleSMBIOS\n"));
}
} else {
- DEBUG ((DEBUG_INFO, "Failed to find com.apple.driver.AppleSMBIOS - %r\n", Status));
+ DEBUG ((DEBUG_INFO, "Failed to SMBIOS find com.apple.driver.AppleSMBIOS - %r\n", Status));
+ }
+
+ Status = PatcherInitContextFromPrelinked (
+ &Patcher,
+ Context,
+ "com.apple.driver.AppleACPIPlatform"
+ );
+
+ if (!RETURN_ERROR (Status)) {
+ Status = PatcherApplyGenericPatch (&Patcher, &mCustomSmbiosGuidPatch);
+ if (RETURN_ERROR (Status)) {
+ DEBUG ((DEBUG_INFO, "Failed to apply SMBIOS patch com.apple.driver.AppleACPIPlatform - %r\n", Status));
+ } else {
+ DEBUG ((DEBUG_INFO, "Patch success SMBIOS com.apple.driver.AppleACPIPlatform\n"));
+ }
+ } else {
+ DEBUG ((DEBUG_INFO, "Failed to find SMBIOS com.apple.driver.AppleACPIPlatform - %r\n", Status));
}
return Status;
