mirror of https://github.com/acidanthera/audk.git
MdeModulePkg VarCheck: #### in L"Boot####" are upper case hex
UEFI spec: Each load option entry resides in a Boot####, Driver####, SysPrep####, OsRecovery#### or PlatformRecovery#### variable where #### is replaced by a unique option number in printable hexadecimal representation using the digits 0-9, and the upper case versions of the characters A-F (0000-FFFF). The patch also makes L"HwErrRec####" follow this rule. Cc: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
This commit is contained in:
parent
86079a4d21
commit
6c59c7c2f4
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Implementation functions and structures for var check services.
|
Implementation functions and structures for var check services.
|
||||||
|
|
||||||
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -96,17 +96,17 @@ VARIABLE_ENTRY_PROPERTY mVarCheckVariableWithWildcardName[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check if a Unicode character is a hexadecimal character.
|
Check if a Unicode character is an upper case hexadecimal character.
|
||||||
|
|
||||||
This function checks if a Unicode character is a
|
This function checks if a Unicode character is an upper case
|
||||||
hexadecimal character. The valid hexadecimal character is
|
hexadecimal character. The valid upper case hexadecimal character is
|
||||||
L'0' to L'9', L'a' to L'f', or L'A' to L'F'.
|
L'0' to L'9', or L'A' to L'F'.
|
||||||
|
|
||||||
|
|
||||||
@param[in] Char The character to check against.
|
@param[in] Char The character to check against.
|
||||||
|
|
||||||
@retval TRUE If the Char is a hexadecmial character.
|
@retval TRUE If the Char is an upper case hexadecmial character.
|
||||||
@retval FALSE If the Char is not a hexadecmial character.
|
@retval FALSE If the Char is not an upper case hexadecmial character.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
|
@ -115,7 +115,7 @@ VarCheckInternalIsHexaDecimalDigitCharacter (
|
||||||
IN CHAR16 Char
|
IN CHAR16 Char
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (BOOLEAN) ((Char >= L'0' && Char <= L'9') || (Char >= L'A' && Char <= L'F') || (Char >= L'a' && Char <= L'f'));
|
return (BOOLEAN) ((Char >= L'0' && Char <= L'9') || (Char >= L'A' && Char <= L'F'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -678,17 +678,17 @@ EFI_GUID *mUefiDefinedGuid[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check if a Unicode character is a hexadecimal character.
|
Check if a Unicode character is an upper case hexadecimal character.
|
||||||
|
|
||||||
This function checks if a Unicode character is a
|
This function checks if a Unicode character is an upper case
|
||||||
hexadecimal character. The valid hexadecimal character is
|
hexadecimal character. The valid upper case hexadecimal character is
|
||||||
L'0' to L'9', L'a' to L'f', or L'A' to L'F'.
|
L'0' to L'9', or L'A' to L'F'.
|
||||||
|
|
||||||
|
|
||||||
@param[in] Char The character to check against.
|
@param[in] Char The character to check against.
|
||||||
|
|
||||||
@retval TRUE If the Char is a hexadecmial character.
|
@retval TRUE If the Char is an upper case hexadecmial character.
|
||||||
@retval FALSE If the Char is not a hexadecmial character.
|
@retval FALSE If the Char is not an upper case hexadecmial character.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
|
@ -697,7 +697,7 @@ VarCheckUefiIsHexaDecimalDigitCharacter (
|
||||||
IN CHAR16 Char
|
IN CHAR16 Char
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (BOOLEAN) ((Char >= L'0' && Char <= L'9') || (Char >= L'A' && Char <= L'F') || (Char >= L'a' && Char <= L'f'));
|
return (BOOLEAN) ((Char >= L'0' && Char <= L'9') || (Char >= L'A' && Char <= L'F'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue