mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
Only check the unsupported IFR opcode for framework HII form package.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9659 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d338a721cb
commit
6d207823bf
@ -12,24 +12,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <PiDxe.h>
|
#include "HiiDatabase.h"
|
||||||
|
|
||||||
#include <Protocol/HiiConfigAccess.h>
|
|
||||||
#include <Protocol/HiiConfigRouting.h>
|
|
||||||
#include <Protocol/HiiDatabase.h>
|
|
||||||
#include <Protocol/HiiString.h>
|
|
||||||
|
|
||||||
#include <Library/BaseLib.h>
|
|
||||||
#include <Library/BaseMemoryLib.h>
|
|
||||||
#include <Library/DebugLib.h>
|
|
||||||
#include <Library/HiiLib.h>
|
|
||||||
#include <Library/MemoryAllocationLib.h>
|
|
||||||
#include <Library/PrintLib.h>
|
|
||||||
#include <Library/UefiBootServicesTableLib.h>
|
|
||||||
|
|
||||||
#include <Guid/MdeModuleHii.h>
|
|
||||||
|
|
||||||
#include "UefiIfrParser.h"
|
|
||||||
|
|
||||||
#include "UefiIfrParserExpression.h"
|
#include "UefiIfrParserExpression.h"
|
||||||
|
|
||||||
@ -518,12 +501,14 @@ ParseOpCodes (
|
|||||||
ONE_OF_OPTION_MAP_ENTRY *OneOfOptionMapEntry;
|
ONE_OF_OPTION_MAP_ENTRY *OneOfOptionMapEntry;
|
||||||
UINT8 OneOfType;
|
UINT8 OneOfType;
|
||||||
EFI_IFR_ONE_OF *OneOfOpcode;
|
EFI_IFR_ONE_OF *OneOfOpcode;
|
||||||
|
HII_THUNK_CONTEXT *ThunkContext;
|
||||||
|
|
||||||
mInScopeSubtitle = FALSE;
|
mInScopeSubtitle = FALSE;
|
||||||
mInScopeSuppress = FALSE;
|
mInScopeSuppress = FALSE;
|
||||||
mInScopeGrayOut = FALSE;
|
mInScopeGrayOut = FALSE;
|
||||||
CurrentDefault = NULL;
|
CurrentDefault = NULL;
|
||||||
CurrentOption = NULL;
|
CurrentOption = NULL;
|
||||||
|
ThunkContext = UefiHiiHandleToThunkContext ((CONST HII_THUNK_PRIVATE_DATA*) mHiiThunkPrivateData, FormSet->HiiHandle);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set to a invalid value.
|
// Set to a invalid value.
|
||||||
@ -631,8 +616,12 @@ ParseOpCodes (
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case EFI_IFR_VARSTORE_NAME_VALUE_OP:
|
case EFI_IFR_VARSTORE_NAME_VALUE_OP:
|
||||||
ASSERT (FALSE);
|
//
|
||||||
|
// Framework IFR doesn't support Name/Value VarStore opcode
|
||||||
|
//
|
||||||
|
if (ThunkContext != NULL && ThunkContext->ByFrameworkHiiNewPack) {
|
||||||
|
ASSERT (FALSE);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EFI_IFR_VARSTORE_EFI_OP:
|
case EFI_IFR_VARSTORE_EFI_OP:
|
||||||
@ -907,8 +896,12 @@ ParseOpCodes (
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case EFI_IFR_DISABLE_IF_OP:
|
case EFI_IFR_DISABLE_IF_OP:
|
||||||
ASSERT (FALSE);
|
//
|
||||||
|
// Framework IFR doesn't support DisableIf opcode
|
||||||
|
//
|
||||||
|
if (ThunkContext != NULL && ThunkContext->ByFrameworkHiiNewPack) {
|
||||||
|
ASSERT (FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Expression
|
// Expression
|
||||||
|
Loading…
x
Reference in New Issue
Block a user