提交 d00a73b9 编写于 作者: M Mike Beaton

OpenVariableRuntimeDxe: Avoid setting UEFI 2.x interface member on EFI 1.x

上级 5f0ef0f5
......@@ -682,10 +682,11 @@ VariableServiceInitialize (
SystemTable->RuntimeServices->GetNextVariableName = VariableServiceGetNextVariableName;
SystemTable->RuntimeServices->SetVariable = VariableServiceSetVariable;
//
// Avoid setting UEFI 2.0 interface members, since this must run on older and Apple firmware.
// TODO: Possibly add this back on version check, but nothing we are aware of uses this.
// Avoid setting UEFI 2.x interface member on EFI 1.x.
//
// SystemTable->RuntimeServices->QueryVariableInfo = VariableServiceQueryVariableInfo;
if (SystemTable->RuntimeServices->Hdr.Revision >= EFI_2_00_SYSTEM_TABLE_REVISION) {
SystemTable->RuntimeServices->QueryVariableInfo = VariableServiceQueryVariableInfo;
}
//
// Now install the Variable Runtime Architectural protocol on a new handle.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册