Discussion:
[edk2] [PATCH 0/3] Variable: Add SysPrepOrder and SysPrep#### to global list.
Star Zeng
2015-06-05 09:49:35 UTC
Permalink
Star Zeng (3):
MdePkg GlobalVariable.h: Add comments for L"SysPrep####".
MdeModulePkg Variable: Add SysPrepOrder and SysPrep#### to global
list.
SecurityPkg Variable: Add SysPrepOrder and SysPrep#### to global list.

.../Universal/Variable/RuntimeDxe/VarCheck.c | 22 ++++++++++++++++++++++
MdePkg/Include/Guid/GlobalVariable.h | 1 +
.../VariableAuthenticated/RuntimeDxe/VarCheck.c | 22 ++++++++++++++++++++++
3 files changed, 45 insertions(+)
--
1.9.5.msysgit.0


------------------------------------------------------------------------------
Star Zeng
2015-06-05 09:49:36 UTC
Permalink
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <***@intel.com>
Reviewed-by: Jiewen Yao <***@intel.com>
---
MdePkg/Include/Guid/GlobalVariable.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/MdePkg/Include/Guid/GlobalVariable.h b/MdePkg/Include/Guid/GlobalVariable.h
index b7e37e7..1e4fbc8 100644
--- a/MdePkg/Include/Guid/GlobalVariable.h
+++ b/MdePkg/Include/Guid/GlobalVariable.h
@@ -36,6 +36,7 @@ extern EFI_GUID gEfiGlobalVariableGuid;
// Note: except the globally defined variables defined below, the spec also defines
// L"Boot####" - A boot load option.
// L"Driver####" - A driver load option.
+// L"SysPrep####" - A System Prep application load option.
// L"Key####" - Describes hot key relationship with a Boot#### load option.
// The attribute for them is NV+BS+RT, #### is a printed hex value, and no 0x or h
// is included in the hex value. They can not be expressed as a #define like other globally
--
1.9.5.msysgit.0


------------------------------------------------------------------------------
Star Zeng
2015-06-05 09:49:37 UTC
Permalink
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <***@intel.com>
Reviewed-by: Jiewen Yao <***@intel.com>
---
.../Universal/Variable/RuntimeDxe/VarCheck.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)

diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/VarCheck.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/VarCheck.c
index 01ca55a..b2f5572 100644
--- a/MdeModulePkg/Universal/Variable/RuntimeDxe/VarCheck.c
+++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/VarCheck.c
@@ -404,6 +404,17 @@ UEFI_DEFINED_VARIABLE_ENTRY mGlobalVariableList[] = {
InternalVarCheckSizeArray
},
{
+ EFI_SYS_PREP_ORDER_VARIABLE_NAME,
+ {
+ VAR_CHECK_VARIABLE_PROPERTY_REVISION,
+ 0,
+ VARIABLE_ATTRIBUTE_NV_BS_RT,
+ sizeof (UINT16),
+ MAX_UINTN
+ },
+ InternalVarCheckSizeArray
+ },
+ {
EFI_HW_ERR_REC_SUPPORT_VARIABLE_NAME,
{
VAR_CHECK_VARIABLE_PROPERTY_REVISION,
@@ -582,6 +593,17 @@ UEFI_DEFINED_VARIABLE_ENTRY mGlobalVariableList2[] = {
InternalVarCheckLoadOption
},
{
+ L"SysPrep####",
+ {
+ VAR_CHECK_VARIABLE_PROPERTY_REVISION,
+ 0,
+ VARIABLE_ATTRIBUTE_NV_BS_RT,
+ sizeof (UINT32) + sizeof (UINT16),
+ MAX_UINTN
+ },
+ InternalVarCheckLoadOption
+ },
+ {
L"Key####",
{
VAR_CHECK_VARIABLE_PROPERTY_REVISION,
--
1.9.5.msysgit.0


------------------------------------------------------------------------------
Star Zeng
2015-06-05 09:49:38 UTC
Permalink
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <***@intel.com>
Reviewed-by: Jiewen Yao <***@intel.com>
---
.../VariableAuthenticated/RuntimeDxe/VarCheck.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)

diff --git a/SecurityPkg/VariableAuthenticated/RuntimeDxe/VarCheck.c b/SecurityPkg/VariableAuthenticated/RuntimeDxe/VarCheck.c
index da834e1..740632f 100644
--- a/SecurityPkg/VariableAuthenticated/RuntimeDxe/VarCheck.c
+++ b/SecurityPkg/VariableAuthenticated/RuntimeDxe/VarCheck.c
@@ -405,6 +405,17 @@ UEFI_DEFINED_VARIABLE_ENTRY mGlobalVariableList[] = {
InternalVarCheckSizeArray
},
{
+ EFI_SYS_PREP_ORDER_VARIABLE_NAME,
+ {
+ VAR_CHECK_VARIABLE_PROPERTY_REVISION,
+ 0,
+ VARIABLE_ATTRIBUTE_NV_BS_RT,
+ sizeof (UINT16),
+ MAX_UINTN
+ },
+ InternalVarCheckSizeArray
+ },
+ {
EFI_HW_ERR_REC_SUPPORT_VARIABLE_NAME,
{
VAR_CHECK_VARIABLE_PROPERTY_REVISION,
@@ -583,6 +594,17 @@ UEFI_DEFINED_VARIABLE_ENTRY mGlobalVariableList2[] = {
InternalVarCheckLoadOption
},
{
+ L"SysPrep####",
+ {
+ VAR_CHECK_VARIABLE_PROPERTY_REVISION,
+ 0,
+ VARIABLE_ATTRIBUTE_NV_BS_RT,
+ sizeof (UINT32) + sizeof (UINT16),
+ MAX_UINTN
+ },
+ InternalVarCheckLoadOption
+ },
+ {
L"Key####",
{
VAR_CHECK_VARIABLE_PROPERTY_REVISION,
--
1.9.5.msysgit.0


------------------------------------------------------------------------------
Loading...