variable driver doesn't support EFI_AUTHENTICATED_WRITE_ACCESS. we use:

1. EFI_INVALID_PARAMETER as a return value of SetVariable() to indicate it does not support this feature.
2. EFI_NOT_FOUND will be a return value of QueryVariableInfo() to indicate it does not support this feature.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10281 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
erictian 2010-03-18 08:58:48 +00:00
parent ff19726366
commit 8e38f18ef7
2 changed files with 24 additions and 0 deletions

View File

@ -1158,6 +1158,13 @@ EmuSetVariable (
return EFI_INVALID_PARAMETER;
}
//
// Not support authenticated variable write yet.
//
if ((Attributes & EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS) != 0) {
return EFI_INVALID_PARAMETER;
}
//
// Make sure if runtime bit is set, boot service bit is set also
//
@ -1275,6 +1282,11 @@ EmuQueryVariableInfo (
// Make sure Hw Attribute is set with NV.
//
return EFI_INVALID_PARAMETER;
} else if ((Attributes & EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS) != 0) {
//
// Not support authentiated variable write yet.
//
return EFI_UNSUPPORTED;
}
AcquireLockOnlyAtBootTime(&Global->VariableServicesLock);

View File

@ -1934,6 +1934,13 @@ RuntimeServiceSetVariable (
return EFI_INVALID_PARAMETER;
}
//
// Not support authenticated variable write yet.
//
if ((Attributes & EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS) != 0) {
return EFI_INVALID_PARAMETER;
}
//
// Make sure if runtime bit is set, boot service bit is set also
//
@ -2065,6 +2072,11 @@ RuntimeServiceQueryVariableInfo (
// Make sure Hw Attribute is set with NV.
//
return EFI_INVALID_PARAMETER;
} else if ((Attributes & EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS) != 0) {
//
// Not support authentiated variable write yet.
//
return EFI_UNSUPPORTED;
}
AcquireLockOnlyAtBootTime(&mVariableModuleGlobal->VariableGlobal.VariableServicesLock);