提交 360982d0 编写于 作者: V vit9696

OcDataHubLib: Add possibility to inject coprocessor info

上级 f070d6e3
......@@ -30,6 +30,7 @@
#define OC_FSB_FREQUENCY L"FSBFrequency"
#define OC_ART_FREQUENCY L"ARTFrequency"
#define OC_DEVICE_PATHS_SUPPORTED L"DevicePathsSupported"
#define OC_COPROCESSOR_VERSION L"apple-coprocessor-version"
//
// These are custom and match VirtualSMC, FakeSMC, and Clover.
......@@ -57,6 +58,7 @@ typedef struct {
CONST UINT8 *SmcRevision;
CONST UINT8 *SmcBranch;
CONST UINT8 *SmcPlatform;
CONST UINT32 *CoprocessorVersion;
} OC_DATA_HUB_DATA;
/**
......
......@@ -288,6 +288,11 @@ UpdateDataHub (
DataHubSetAppleMiscData (DataHub, OC_SMC_REVISION, Data->SmcRevision, OC_SMC_REVISION_SIZE);
DataHubSetAppleMiscData (DataHub, OC_SMC_BRANCH, Data->SmcBranch, OC_SMC_BRANCH_SIZE);
DataHubSetAppleMiscData (DataHub, OC_SMC_PLATFORM, Data->SmcPlatform, OC_SMC_PLATFORM_SIZE);
//
// Should normally be 0x20000, but it will cause issues like Recovery OS not booting
// without real coprocessor hardware present.
//
DataHubSetAppleMiscData (DataHub, OC_COPROCESSOR_VERSION, Data->CoprocessorVersion, sizeof (*Data->CoprocessorVersion));
return EFI_SUCCESS;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册